Not all images get published in Parallels Presence Builder

Refers to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:44:19 UTC

Modified:

2016-12-21 19:05:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Not all images get published in Parallels Presence Builder

Symptoms

There are many (more than 1000) pictures on a Web Presence Builder site (in Plesk ). After publishing, some images are missing on a publishing side. No error occurs in GUI when published.

After enabling debug logging according to this article , following records appear in /usr/local/psa/admin/logs/panel.log

Failed to copy file contents of //attachments/Image/1.jpg
Failed to copy file contents of //attachments/Image/2.jpg
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/3.jpg for reading: Too many open files
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/4.jpg for reading: Too many open files
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/5.jpg for reading: Too many open files
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/6.jpg for reading: Too many open files
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/7.jpg for reading: Too many open files
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/8.jpg for reading: Too many open files
Cannot open file /usr/local/psa/tmp/531561561235hj3oi13513h/attachments/Image/9.jpg for reading: Too many open files
Failed to set permissions or owner to //attachments/Image/10.jpgBad file descriptor
Failed to set permissions or owner to //attachments/Image/11.jpgBad file descriptor

Cause

Allowed number of file descriptors used for Nginx is low. Not all image files can be opened and therefore not all are transferred.

Resolution

Add " worker_rlimit_nofile 16384; " string into http{} section of /etc/nginx/nginx.conf as shown below:

...
http {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log /var/log/nginx/access.log main;
worker_rlimit_nofile 16384;
sendfile on;
#tcp_nopush on;
...

Restart the services:

# /etc/init.d/sw-cp-server restart
# /etc/init.d/sw-engine restart
# /etc/init.d/nginx restart
Have more questions? Submit a request
Please sign in to leave a comment.