[GH-ISSUE #107] Nginx server crashes right from the start (getpwnam("abc") failed ??) #147

Closed
opened 2026-03-01 18:33:31 +03:00 by kerem · 2 comments
Owner

Originally created by @stsichler on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/netbootxyz/docker-netbootxyz/issues/107

I just downloaded a fresh install of netbootxyz (0.7.6-nbxyz7).
Menu works, booting from netboot.xyz.efi works, hosting local assets works, but booting from local assets does NOT work, because the nginx server does not run.

systemctl status netbootxyz.service says:
(...) 198 WARN exited: nginx (exit status 1; not expected)
(...) INFO gave up: nginx entered FATAL state, too many start retries too>

Examination of docker container shows that /var/log/nginx/error.log says:
nginx: [emerg] getpwnam("abc") failed in /config/nginx/nginx.conf:1

Any ideas?
I found this: nginx won't start: getpwnam("nginx") failed in /etc/nginx/nginx.conf:5

Originally created by @stsichler on GitHub (Sep 3, 2025). Original GitHub issue: https://github.com/netbootxyz/docker-netbootxyz/issues/107 I just downloaded a fresh install of netbootxyz (0.7.6-nbxyz7). Menu works, booting from netboot.xyz.efi works, hosting local assets works, but booting from local assets does NOT work, because the nginx server does not run. `systemctl status netbootxyz.service` says: `(...) 198 WARN exited: nginx (exit status 1; not expected)` `(...) INFO gave up: nginx entered FATAL state, too many start retries too>` Examination of docker container shows that `/var/log/nginx/error.log` says: `nginx: [emerg] getpwnam("abc") failed in /config/nginx/nginx.conf:1` Any ideas? I found this: [nginx won't start: getpwnam("nginx") failed in /etc/nginx/nginx.conf:5](https://unix.stackexchange.com/questions/386548/nginx-wont-start-getpwnamnginx-failed-in-etc-nginx-nginx-conf5)
kerem closed this issue 2026-03-01 18:33:31 +03:00
Author
Owner

@stsichler commented on GitHub (Sep 3, 2025):

Ok, I think I found the problem:
/config/nginx/nginx.conf starts with the line
user abc;

I think this should read
user nbxyz;

<!-- gh-comment-id:3248639135 --> @stsichler commented on GitHub (Sep 3, 2025): Ok, I think I found the problem: `/config/nginx/nginx.conf` starts with the line `user abc;` I think this should read `user nbxyz;`
Author
Owner

@stsichler commented on GitHub (Sep 3, 2025):

Ok, this file was a local remnant of some older (obviously broken) installation. Sorry for bothering.

<!-- gh-comment-id:3248668036 --> @stsichler commented on GitHub (Sep 3, 2025): Ok, this file was a local remnant of some older (obviously broken) installation. Sorry for bothering.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-netbootxyz#147
No description provided.