• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Open fails logged in /var/log/nginx/error.log

TimReeves

Regular Pleskian
I've noticed that on most of my servers, /var/log/nginx/error.log accumulates error messages like this:

2015/06/01 04:13:45 [emerg] 28449#0: open() "/var/www/vhosts/system/DOMAIN/logs/proxy_access_log" failed (13: Permission denied)

This happens in the early hours of the morning, for most servers where the Nginx module is installed, once for each domain, and whether PHP-FPM package is installed or not. More specifically:
  • At 2 Servers on Ubuntu 12.04.5 LTS / Plesk 12.0.18 Update #48 / Nginx + PHP-FPM
  • At 1 Server on Ubuntu 14.04.2 LTS / Plesk 12.0.18 Update #48 / Nginx (no PHP-FPM)
The ownerships are
  • /var/www/vhosts/system/DOMAIN/logs = drwx------ psaadm root
  • /var/www/vhosts/system/DOMAIN/logs/proxy_* = rw-r--r-- nginx root
BUT it does NOT happen on another Server, otherwise identical to the first 2 noted, the difference there is that the proxy_* log files belong to root:root (not nginx:root).

Something is a bit weird somewhere, howcome otherwise more or less identical servers have different log owners? Which is correct?

I rather suspect that the messages may stop if I added all "psa" groups to the nginx group in /etc/group, or made root the log owner. But I don't feel comfortable with the latter, and anyway the problem should be solved, not worked around.

Any help would be much appreciated!

Cheers, Tim
 
Try to reset all default vhosts structure permissions with

# plesk bin repair --restore-vhosts-permissions
 
Thanks Igor, have tried that, but I can't see any change in the relevant directory and file ownership/permissions.

The log files are HARD-LINKED from two places:

1 /var/www/vhosts/system/(SUB)DOMAIN/logs drwx------ 2 psaadm root

2a /var/www/vhosts/system/DOMAIN/logs drwx------ 3 {webspace-ftp-user} root
2b /var/www/vhosts/system/DOMAIN/SUB/logs drwx------ 3 {webspace-ftp-user} root (SUB same rights as "logs")

These permissions are set correctly as noted here.
I can't find any place saying what the ownership/permissions of the log files themselves should be.
Perhaps that is the inherent problem - no one ever decided or documented that aspect...

AHA - this is a long-known and still-unfixed problem in Plesk!

Igor, could you escalate that a teeny-weeny bit more forcefully to the developers please?
I have a script monitoring a lot of the logs for any non-zero size, so that I can react to any problems.
And these spurious entries (or not spurious, depending on what is actually happening there) cause mails to be sent to me every night...

Thanks!
 
Last edited:
Hi all,

any chance of a reply on this one? After all, it really does seem like a bug in Plesk, and it is filling up lots of logs unneccessarily...

Alternatively, is there another place where I can register bugs directly to the developers?

Cheers,

Tim
 
Hi all,

any chance of a reply on this one? After all, it really does seem like a bug in Plesk, and it is filling up lots of logs unneccessarily...

Alternatively, is there another place where I can register bugs directly to the developers?

Cheers,

Tim
You can submit your bugreport here http://www.odin.com/support/plesk/bugreport/
Also I can recommend to create a request to support team to do in-depth investigation to find the reason and to fix it. Please create a ticket to support at https://www.odin.com/support/request/ .
You may have free support, please check what kind of Plesk license you use for available support options at http://kb.odin.com/en/121580 .
If there’s no free support in your case, you can order Plesk per-incident support at http://www.odin.com/support/buy-support/ Support team will contact you as soon as purchase is processed, and they will do the best to resolve it.
If it is found that your problem was caused by product bug w/o available solution or workaround from Parallels, then your purchase will be re-funded.
 
Back
Top