Unable to publish the website: Unable to connect to Web Presence Builder. Please contact the server administrator

Created:

2016-11-16 13:15:56 UTC

Modified:

2017-08-16 18:34:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to publish the website: Unable to connect to Web Presence Builder. Please contact the server administrator

Applicable to:

  • Web Presence Builder for Linux

Symptoms

  1. Unable to publish the website in Web Presence Builder, the following error occurs in Editor:

    Unable to connect to Web Presence Builder. Please contact the server administrator.
  2. max_execution_time was increased in /usr/local/psa/admin/conf/php.ini

    # grep 'max_execution_time' /usr/local/psa/admin/conf/php.ini
    max_execution_time = 1200

    , however it did not help.3. There is no any error records in /usr/local/psa/admin/logs/sitebuilder.log 4. Record about successfull publishing exist in /usr/local/psa/admin/logs/sitebuilder.log :

    [INFO]  /sitebuilder/JsonApi/   The site with UUID '0142b23e-3e09-0017-dfca-62b38bfa3e12' has been successfully published.
    The site UUID: 0142b23e-3e09-0017-dfca-62b38bfa3e12
    The publication target: pp://0142b23e-3e09-0017-dfca-62b38bfa3e12
    The publication URL: http://example.com/ 1.2.3.4 https://server.example.com:8443/sitebuilder/Editor Mozilla/5.0
  3. The following error record can be found in /var/log/sw-cp-server/error.log :

    [error] 882361#0: *3346046 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 1.2.3.4, server: , request: "POST /sitebuilder/JsonApi/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "server.example.com:8443", referrer: "https://server.example.com:8443/sitebuilder/Editor"

Cause

The issue was caused by timeout from sw-cp-server service.

Resolution

  1. Increase fastcgi_buffers , fastcgi_buffer_size , fastcgi_read_timeout and fastcgi_send_timeout in /etc/sw-cp-server/config , for example:

    fastcgi_buffers 32 32k;
    fastcgi_buffer_size 64k;

    fastcgi_read_timeout 1200;
    fastcgi_send_timeout 1200;
  2. Restart sw-cp-server and sw-engine :

    # service sw-cp-server restart
    Stopping sw-cp-serverd: [ OK ]
    Starting sw-cp-serverd: [ OK ]
    # service sw-engine restart
    Stopping sw-engine-fpm: [ OK ]
    Starting sw-engine-fpm: [ OK ]
  3. Try to publish the website again.

Have more questions? Submit a request
Please sign in to leave a comment.