nginx not starting - LXC container

Bobbbb

Well-Known Member
Jul 13, 2018
78
1
48
29
Hi, i was messing around a bit with the config due the proxmox freezing randomly.
now i can't get nginx started on my lxc container.

nginx: [emerg] chown("/var/lib/nginx/body", 33) failed (1: Operation not permitted)

chown -R www-data:www-data /var/lib/nginx
chown: cannot read directory '/var/lib/nginx/body': Permission denied
chown: cannot read directory '/var/lib/nginx/fastcgi': Permission denied
chown: cannot read directory '/var/lib/nginx/proxy': Permission denied
chown: cannot read directory '/var/lib/nginx/scgi': Permission denied
chown: cannot read directory '/var/lib/nginx/uwsgi': Permission denied

Disabling AppArmor makes not difference.
 
the error message seems clear. please provide more details and the community can help.
 
the error message seems clear. please provide more details and the community can help.
Hello tom,
i just wanted to usb an usb key with our CT (LXC) ... and the nightmare suddenly begun !!!
i read some advices that only privileged containers can mount then write read usb key ...
So decide to change this in Ct conf (nano ....)
And all some uid mapping have becum broken ...
unable to start nginx ... some nobody nogroup owner appears ...

I did not find any suitable solution ...
So i have decide to rebuild entierly the CT from scratch.
Thanks to backup !!!!