Symptoms

  1. WPB publishing fails with error:

    Cannot connect to Parallels Presence Builder Server. Please contact the server administrator.
    
  2. Despite the error sitebuilder log contains the evidence of successful operation: (/usr/local/pem/vhosts/xxxxx/webspace/siteapps/ParallelsAutomationforWebPresence-72/htdocs/tmp/sitebuilder.log)

    2017-11-26T05:47:41+01:00       [INFO]  /JsonApi/       The site with UUID '973c2541-fd88-e099-618c-07a16a996efa' has been successfully published.
    The site UUID: 973c2541-fd88-e099-618c-07a16a996efa
    The publication target: ftp://ftp01@203.0.113.2/webspace/httpdocs/bebelins.com
    The publication URL: http://example.com        203.0.113.2 http://wpb.srv-hostalia.com/Editor      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
    2017-11-26T05:47:41+01:00       [DEBUG] /JsonApi/       The publication process was finished.
    

Cause

The site publishing takes more time that Apache timeout is. WPB session expires by the time publishing script completes and Apache cannot handle its response.

Resolution

  1. Find Apache configuration file:

    $  ps auxffww | grep httpd.conf
    root       730  0.0  0.0 147580  3808 ?        Ss    2016  16:53 /usr/sbin/httpd -f /usr/local/pem/etc/apache/httpd.conf_pem
    
  2. Increase the timeout value in it.
  3. Reload the web server configuration: $ /etc/init.d/pemhttpd reload ... reload succeeded root@linsb:~/odin

Internal content