- Plesk 11.5 for Linux
- Plesk 12.0 for Linux
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
, following records appear in
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
Allowed number of file descriptors used for Nginx is low. Not all image files can be opened and therefore not all are transferred.
" string into
as shown below:
#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;
Restart the services:
# /etc/init.d/sw-cp-server restart
# /etc/init.d/sw-engine restart
# /etc/init.d/nginx restart