nginx not starting - LXC container

Bobbbb

Well-Known Member
Jul 13, 2018
70
1
48
28
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.
 
mmm no one knows?
can someone please confirm how to disable apparmor?
 
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 !!!!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!