System info: influxd 1.0.0 on Ubuntu 16.04.1.
Steps to reproduce:
[stop web server if any &&] apt install letsencrypt && letsencrypt certonly -d mydomain.com
ls -al /etc/letsencrypt/archive/mydomain.com/cert.pem
ls -al /etc/letsencrypt/archive/mydomain.com/cert1.pem` will show `-rw-r--r--`
[http] section:systemctl restart influxdb # wait ~10 secondsjournalctl -u influxdbI see the service failing, and somewhere up buried in the logs is this error:
run: open server: open service: open /etc/letsencrypt/archive/mydomain.com/cert1.pem: permission denied
If I execute influxd as root (not a good idea), it launches successfully, and SSL works.
I've even created a special group to give access to the .pem files, but I keep getting the same error.
addgroup sslapps
adduser influxdb sslapps
chown -vR :sslapps /etc/letsencrypt/archive/yourdomain/
chmod -vR g+r /etc/letsencrypt/archive/yourdomain/
Solution: make sure that all directories leading up to the .pem file(s) are executable by the group. For example, using namei:
namei -l /etc/letsencrypt/live/yourdomain/cert.pem
You Sir, are a scholar and a gentleman. Hvala & Danke!
I tried everything, I encounter the same issue and nothing helped so far.
These aren't working for me either
Please give me a solution
[ErrorException]
file_get_contents(C:\wamp64\bin\php\php7.1.9\extras\ssl): failed to open stream: Permission denied
Most helpful comment
Solution: make sure that all directories leading up to the
.pemfile(s) are executable by the group. For example, usingnamei: