Re: Weird privilege errors on Ubuntu 20.04

2021-06-14 Thread hgv
Yes, it is reproducible on Ubuntu 20.04 as the headline of this thread implicates :) Sergey A. Osokin Wrote: --- > On Fri, Jun 11, 2021 at 07:29:10PM -0400, hgv wrote: > > Out of curiosity, I launched a fresh Ubuntu 20.04 AWS instance. Its >

Re: Weird privilege errors on Ubuntu 20.04

2021-06-11 Thread Sergey A. Osokin
On Fri, Jun 11, 2021 at 07:29:10PM -0400, hgv wrote: > Out of curiosity, I launched a fresh Ubuntu 20.04 AWS instance. Its file > system structure matches the one you have. My installation is upgraded > originally from 16.04 to 18.04 to 20.04. Therefore, I also checked a fresh > Ubuntu 16.04. Its

Re: Weird privilege errors on Ubuntu 20.04

2021-06-11 Thread hgv
Out of curiosity, I launched a fresh Ubuntu 20.04 AWS instance. Its file system structure matches the one you have. My installation is upgraded originally from 16.04 to 18.04 to 20.04. Therefore, I also checked a fresh Ubuntu 16.04. Its file system structure matches mine. Hence, it looks like

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread Sergey A. Osokin
On Wed, Jun 09, 2021 at 05:16:17PM -0400, hgv wrote: > Are you suggesting not having symbolic links to various subdirectories of > /usr at the file system root is the cause of my issue? I don't think I can recommend that. > I don't have those symbolic links in any of my Ubuntu 20.04 instances.

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread hgv
Are you suggesting not having symbolic links to various subdirectories of /usr at the file system root is the cause of my issue? I don't have those symbolic links in any of my Ubuntu 20.04 instances. Sergey A. Osokin Wrote: --- > On Wed, Jun

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread Sergey A. Osokin
On Wed, Jun 09, 2021 at 04:57:08PM -0400, hgv wrote: > root@k2# ls -la / | grep usr > drwxr-xr-x 13 root root usr And I have a bit different layout here: $ ls -al / | grep usr lrwxrwxrwx 1 root root 7 Feb 1 17:20 bin -> usr/bin lrwxrwxrwx 1 root root 7 Feb 1 17:20 lib ->

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread hgv
root@k2# ls -la / | grep usr drwxr-xr-x 13 root root usr Sergey A. Osokin Wrote: --- > On Wed, Jun 09, 2021 at 02:55:57PM -0400, hgv wrote: > > /lib/systemd/system/nginx-debug.service and > > /lib/systemd/system/nginx.service exist (different

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread Sergey A. Osokin
On Wed, Jun 09, 2021 at 02:55:57PM -0400, hgv wrote: > /lib/systemd/system/nginx-debug.service and > /lib/systemd/system/nginx.service exist (different path then what you > previously asked, sorry for the misunderstanding) That's coming more and more interested than I expected, so could you show

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread hgv
/lib/systemd/system/nginx-debug.service and /lib/systemd/system/nginx.service exist (different path then what you previously asked, sorry for the misunderstanding) /lib/systemd/system/nginx-debug.service [Unit] Description=nginx - high performance web server

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread Sergey A. Osokin
On Wed, Jun 09, 2021 at 01:50:08PM -0400, hgv wrote: > In case it's relevant, I believe the initially installed version was 1.16 on > Ubuntu 18.04. Both have since been upgraded to current versions. dpkg-deb(1) shows the following files in the package you've installed: % dpkg-deb -c

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread hgv
In case it's relevant, I believe the initially installed version was 1.16 on Ubuntu 18.04. Both have since been upgraded to current versions. hgv Wrote: --- > Nginx has been installed from the official Nginx repository. > >

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread hgv
Nginx has been installed from the official Nginx repository. /etc/apt/sources.list.d/nginx.list deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ focal nginx Sergey A. Osokin Wrote: --- > On Wed, Jun 09, 2021 at 11:46:32AM

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread Sergey A. Osokin
On Wed, Jun 09, 2021 at 11:46:32AM -0400, hgv wrote: > /etc/systemd/system/nginx.service.d/override.conf and > /usr/lib/systemd/system/nginx.service don't exist Thanks for the update. Not sure how nginx package has been installed on that box. So, I'd recommend to follow the instruction and

Re: Weird privilege errors on Ubuntu 20.04

2021-06-09 Thread hgv
/etc/systemd/system/nginx.service.d/override.conf and /usr/lib/systemd/system/nginx.service don't exist /etc/nginx/nginx.conf below user www-data; worker_processes auto; pid /run/nginx.pid; worker_rlimit_nofile 16384; events { worker_connections 1024; use epoll;

Re: Weird privilege errors on Ubuntu 20.04

2021-06-08 Thread Sergey A. Osokin
Looks good to me. I'd like to request more files: - /etc/systemd/system/nginx.service.d/override.conf - /usr/lib/systemd/system/nginx.service - /etc/nginx/nginx.conf Thanks. On Tue, Jun 08, 2021 at 06:02:29PM -0400, hgv wrote: > Yes, certainly. > > drwxr-xr-x root root /etc > drwxr-xr-x root

Re: Weird privilege errors on Ubuntu 20.04

2021-06-08 Thread hgv
Yes, certainly. drwxr-xr-x root root /etc drwxr-xr-x root root /etc/ssl drwxr-x--- root ssl-cert /etc/ssl/private Sergey A. Osokin Wrote: --- > Hi, > > Could you check and show permissions on /etc/ssl/private, /etc/ssl, > and /etc

Re: Weird privilege errors on Ubuntu 20.04

2021-06-08 Thread Sergey A. Osokin
Hi, Could you check and show permissions on /etc/ssl/private, /etc/ssl, and /etc directories. Thanks. -- Sergey On Tue, Jun 08, 2021 at 03:57:59PM -0400, hgv wrote: > Hi Sergey, > > Adding www-data user to ssl-cert group doesn't help. > > root@k2# usermod -a -G ssl-cert www-data > >

Re: Weird privilege errors on Ubuntu 20.04

2021-06-08 Thread hgv
Hi Sergey, Adding www-data user to ssl-cert group doesn't help. root@k2# usermod -a -G ssl-cert www-data root@k2# getent group ssl-cert ssl-cert:x:112:postgres,www-data Sergey A. Osokin Wrote: --- > Hi there, > > hope you're doing well. >

Re: Weird privilege errors on Ubuntu 20.04

2021-06-08 Thread Sergey A. Osokin
Hi there, hope you're doing well. On Tue, Jun 08, 2021 at 11:46:32AM -0700, Palvelin Postmaster wrote: > I wonder what can cause these weird error log entries? The log entries > indicate a PID which doesn’t exist. Does nginx launch some temporary process > when it starts? > > Nginx 1.21.0 on

Weird privilege errors on Ubuntu 20.04

2021-06-08 Thread Palvelin Postmaster
I wonder what can cause these weird error log entries? The log entries indicate a PID which doesn’t exist. Does nginx launch some temporary process when it starts? Nginx 1.21.0 on Ubuntu 20.04. root@k2:~# systemctl restart nginx root@k2:~# tail /var/log/nginx/error.log 2021/06/08 21:25:32