Nginx Amplify permissions errors with letsencrypt certificates and access log

Dan Randa randa.dan at gmail.com
Tue Aug 29 02:07:13 UTC 2023


I am running Ubuntu 22.04 server. I have installed Nginx Amplify. In my /var/log/amplify-agent/agent.log I am getting permissions errors with letsencrypt certificates.

cat /var/log/amplify-agent/agent.log

2023-08-28 20:34:50,140 [8851] supervisor ssl certificate found /etc/letsencrypt/live/example.com/fullchain.pem
2023-08-28 20:34:50,140 [8851] supervisor could not read /etc/letsencrypt/live/example.com/fullchain.pem (maybe permissions?)
2023-08-28 20:34:50,943 [8851] supervisor failed to initialize pipeline for "/var/log/nginx/access.log" due to PermissionError (maybe has no rights?)
2023-08-28 20:34:50,953 [8851] supervisor failed to initialize pipeline for "/var/log/nginx/mail.example.com.access.log" due to PermissionError (maybe has no rights?)
2023-08-28 20:34:50,954 [8851] supervisor failed to initialize pipeline for "/var/log/nginx/mail.example.com.error.log" due to PermissionError (maybe has no rights?)

How can I fix all of these permissions errors so nginx can view my certificates from letsencrypt? Also, how can I fix the pipeline errors?

Thanks in advance for any help.

Dan


More information about the nginx mailing list