mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #4642] NGINX Proxy Manager won't start after upgrading from v2.12.3 to v2.12.4 #2953
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2953
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @googlejam on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4642
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
NGINX Proxy Manager won't start after upgrading from v2.12.3 to v2.12.4
Here is the log
2025-07-07 19:07:01.188640+00:00[1;34m❯ [1;36mConfiguring npm user ...[0m
2025-07-07 19:07:01.734356+00:00useradd warning: npm's uid 568 outside of the UID_MIN 1000 and UID_MAX 60000 range.
2025-07-07 19:07:02.286829+00:00[1;34m❯ [1;36mConfiguring npm group ...[0m
2025-07-07 19:07:02.358665+00:00[1;34m❯ [1;36mChecking paths ...[0m
2025-07-07 19:07:02.515136+00:00[1;34m❯ [1;36mSetting ownership ...[0m
2025-07-07 19:07:04.599315+00:00/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh: line 41: syntax error: unexpected end of file
2025-07-07 19:07:04.599518+00:00s6-rc: warning: unable to start service prepare: command exited 2
2025-07-07 19:07:04.600893+00:00/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
Nginx Proxy Manager Version
v2.12.4
Operating System
TrueNAS 25.04.1
Additional context
Rolled back to v2.12.3 and was able to start the proxy manager.
@jc21 commented on GitHub (Jul 8, 2025):
This error is very perplexing.. It suggests that the file contents are incomplete, yet I can confirm that the bash script is full and syntactically correct, passing shellcheck as well.
On my production servers (amd64 and arm64) this script runs and completes successfully.
Can you run this on your NAS:
The output should be the same as the repo file.
The script was missing a trailing newline, which is common practice. There's a slim chance that it's a problem with your setup, so try using the
developbranch build image and see if it's still happening:@focustense commented on GitHub (Jul 8, 2025):
The "unexpected end of file" error is the result of trying to run the
S6_STAGE2_HOOKsedworkaround described in #3154 on the new version of the ownership script. In the old version, thechowncommand was on the last line but as of 2.12.4 the last line is afi, so removing it breaks the loop. Unclosed loop = unexpected EOF.Lots of discussion in the latest comments on the other thread.