[GH-ISSUE #4642] NGINX Proxy Manager won't start after upgrading from v2.12.3 to v2.12.4 #2953

Closed
opened 2026-02-26 07:37:23 +03:00 by kerem · 2 comments
Owner

Originally created by @googlejam on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4642

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

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❯ Configuring npm user ...
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❯ Configuring npm group ...
2025-07-07 19:07:02.358665+00:00❯ Checking paths ...
2025-07-07 19:07:02.515136+00:00❯ Setting ownership ...
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.

Originally created by @googlejam on GitHub (Jul 7, 2025). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4642 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **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❯ Configuring npm user ... 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❯ Configuring npm group ... 2025-07-07 19:07:02.358665+00:00❯ Checking paths ... 2025-07-07 19:07:02.515136+00:00❯ Setting ownership ... 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.
kerem 2026-02-26 07:37:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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:

docker run --rm -ti \
 --entrypoint= \
  jc21/nginx-proxy-manager:2.12.4 \
  cat /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh

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 develop branch build image and see if it's still happening:

nginxproxymanager/nginx-proxy-manager-dev:develop
<!-- gh-comment-id:3046919040 --> @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: ``` docker run --rm -ti \ --entrypoint= \ jc21/nginx-proxy-manager:2.12.4 \ cat /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh ``` The output should be the same as the [repo file](https://raw.githubusercontent.com/NginxProxyManager/nginx-proxy-manager/refs/heads/develop/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh). 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 `develop` branch build image and see if it's still happening: ``` nginxproxymanager/nginx-proxy-manager-dev:develop ```
Author
Owner

@focustense commented on GitHub (Jul 8, 2025):

The "unexpected end of file" error is the result of trying to run the S6_STAGE2_HOOK sed workaround described in #3154 on the new version of the ownership script. In the old version, the chown command was on the last line but as of 2.12.4 the last line is a fi, so removing it breaks the loop. Unclosed loop = unexpected EOF.

Lots of discussion in the latest comments on the other thread.

<!-- gh-comment-id:3047626349 --> @focustense commented on GitHub (Jul 8, 2025): The "unexpected end of file" error is the result of trying to run the `S6_STAGE2_HOOK` `sed` workaround described in #3154 on the new version of the ownership script. In the old version, the `chown` command was on the last line but as of 2.12.4 the last line is a `fi`, so removing it breaks the loop. Unclosed loop = unexpected EOF. Lots of discussion in the latest comments on the other thread.
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/nginx-proxy-manager-NginxProxyManager#2953
No description provided.