Plesk Diagnose & Repair

Whenever I add more domains to the system, I seem to screw up certain files/folders attributes, so I run “Diagnose & Repair” trying to fix things up. This time, I have two additional problems.

Problem 1

“Checking the consistency of the Plesk database Inconsistency in the table ‘smb_roleServicePermissions’ for the column servicePermissionId: No rows in the table ‘smb_servicePermissions’ with id = 1”

https://talk.plesk.com/threads/checking-the-consistency-of-the-plesk-database-inconsistency-in-the-table-smb_roleservicepermissions.358088/ has the solution.

“plesk repair db -verbose
Remove unnecessary rows from the table ‘smb_roleServicePermissions’? [Y/n]”

Problem 2

“nginx fails to start/reload on a Plesk server: Too many open files.”

https://support.plesk.com/hc/en-us/articles/213938485-nginx-fails-to-start-reload-on-a-Plesk-server-Too-many-open-files has the solution.

“Connect to the server via SSH
Set open files limit to 4096 for both Apache and Nginx:
/usr/local/psa/admin/sbin/websrv_ulimits –set 4096 –no-restart
Restart Apache and nginx services at Plesk > Tools & Settings > Services Management to apply changes.
Check that ‘Max open files limit’ was applied properly, after web services restarting:
grep ‘Max open files’ /proc/$(cat /var/run/nginx.pid)/limits
Max open files 4096 4096 file”

Then I re-run “Diagnose & Repair”. Both problems are gone.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.