Errors suggesting nginx isn't started as root
Maxim Dounin
mdounin at mdounin.ru
Thu Sep 5 18:52:31 UTC 2019
Hello!
On Wed, Sep 04, 2019 at 03:59:41PM -0700, Palvelin Postmaster wrote:
> This is still a big mystery to me. Upgrading to nginx 1.16.1 didn’t help.
>
> As far as I can understand, the nginx master process IS running with root privileges.
The error is from process 22399, and no information available to
find out the user started it. The errors suggest it wasn't root.
> > 2018/09/19 11:38:47 [warn] 22399#22399: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:21
> > 2018/09/19 11:38:47 [emerg] 22399#22399: SSL_CTX_use_PrivateKey_file("/etc/ssl/private/nginx-selfsigned.key") failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen('/etc/ssl/private/nginx-selfsigned.key','r') error:20074002:BIO routines:file_ctrl:system lib error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib)
[...]
> > root at k2:~# ps -auxw |grep nginx
> > root 22317 0.0 0.2 359680 9300 ? Ss 11:38 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
> > www-data 22322 0.0 0.3 361980 15356 ? S 11:38 0:00 nginx: worker process
> > www-data 22323 0.2 0.4 362244 18984 ? S 11:38 0:00 nginx: worker process
> > www-data 22326 0.0 0.3 361980 14760 ? S 11:38 0:00 nginx: cache manager process
> > www-data 22327 0.0 0.3 361980 14760 ? S 11:38 0:00 nginx: cache loader process
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list