Presence Builder Missing files on published site

Created:

2016-11-16 12:51:50 UTC

Modified:

2017-04-24 12:09:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Presence Builder Missing files on published site

Applicable to:

  • Web Presence Builder 12.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux
  • Web Presence Builder 11.5 for Linux

Symptoms

  • The site looks fine in the builder, but the published version is missing some files.
  • The entries from the css folder are not available with ' 404 Not Found ' message.
  • Images are not shown after site publication.
  • The following errors can be observed in /var/log/plesk/panel.log during publishing the website:

    Failed to recreate destination file //css/text-eff649a1-f632-47ee-820d-785886fbbb72.css: Too many open files
    Cannot open file 201554716555f5ad27f3207/attachments/Image/picture.gif for reading: Too many open files
  • Also the following error message may appear when opening a website:

    Your browser version is outdated. We recommend that you update your browser to the latest version.

Diagnostic

Check ' Max open files ' limits for sw-engine process:

# SWEPID=`ps aux | grep -E "sw-engine-fpm. master process" | grep -v 'grep' | awk '{print $2}'`
# grep -E "^Max open files" /proc/$SWEPID/limits
Max open files 1024 4096 files

Cause

File descriptor limit set too low for the sw-engine Plesk web server. Such behavior is considered as a software issue with id #PPPM-2027 which will be fixed in future Plesk updates.

Workaround

Increase file descriptor limits by editing sw-engine startup script:

  1. Right after the start () section add ulimit variable like below:

    # vi /etc/init.d/sw-engine

    start () {
    ulimit -n 262144
  2. Restart /etc/init.d/sw-engine service and republish the website:

    # service sw-engine restart
Have more questions? Submit a request
Please sign in to leave a comment.