Entware / Entware-ng

Entware-ng
GNU General Public License v2.0
1.21k stars 153 forks source link

nginx: [emerg] getgrnam("nobody") failed in /opt/etc/nginx/nginx.conf:2 #870

Closed ProBackup-nl closed 6 years ago

ProBackup-nl commented 6 years ago

Package: nginx

For existing package:

Platform:

mipsel

ProBackup-nl commented 6 years ago

getgrnam is short for "get group name". In short the error tells that the group name "nobody" does not exist.

You can have a look at: $ cat /etc/group and see that there is no line starting with "nobody:x:". That is why this error occurred.

When /etc/group lists a line starting with "nogroup:x:", you might wish to start nginx using that group.

Edit the nginx configuration by: $ nano /opt/etc/nginx/nginx.conf and change the line:

user  nobody;

to:

user  nobody nogroup;
ProBackup-nl commented 6 years ago

Or create a new nobody group?

zyxmon commented 6 years ago

Create a new group if you firmware supports it, or use an existing one in config. It is your choise. This is device and firmware specific and is not a part of Entware.