- Web Presence Builder for Linux
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.
max_execution_timewas increased in
# 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.log4. Record about successfull publishing exist in
[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/ 188.8.131.52 https://server.example.com:8443/sitebuilder/Editor Mozilla/5.0
The following error record can be found in
[error] 882361#0: *3346046 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 184.108.40.206, 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"
The issue was caused by timeout from
/etc/sw-cp-server/config, for example:
fastcgi_buffers 32 32k;
# 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 ]
Try to publish the website again.