Nginx Proxy Manager 2.12.4 – Multiple Issues and Unresolved DNS Failure (Rollback Required)
Im going to lay out all the problems that i have had trying to update to NPM 2.12.4 because i seem to have many bugs that other people don't seem mentioned.
TrueNas Scale ElectricEel-24.10.2.2 NPM 2.12.4
Im using cloudflare and letsencrypt.
- Problem 1: Cloudflare plugin fails to work because plugin definition is broken
- Cause: The file /app/global/certbot-dns-plugins.json gets rewritten at startup and the cloudflare plugin entry is stripped or malformed
- Fix: Run this command after container start to repair the JSON entry:
- sudo docker exec -it ix-nginx-proxy-manager-npm-1 sh -c “sed -i ‘s/cloudflare==4.0.*/cloudflare/’ /app/global/certbot-dns-plugins.json”
The above resolution seems to be all that is needed for a complete working NMP for most people. However i have several other problems. (possibly because im on Truenas scale using Docker apps).
- Problem 2: Nginx fails to start due to permission denied on nginx.pid
- Cause: Running the container with non-root PUID and PGID (such as 568) prevents it from writing to /run/nginx/nginx.pid
- Fix: Set User ID and Group ID in the app configuration to 0 so the container runs as root
- Problem 3: Cloudflare plugin support breaks due to stripped ownership script
- Cause: The startup script /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh gets fully stripped of content, removing necessary lines for certbot plugins
- Fix: Set the following environment variable in the app config:
- S6_STAGE2_HOOK = sed -i 2,$d /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh
- This keeps the shebang line and prevents plugin wipe
- Problem 4: Container marked unhealthy due to DNS failures
- Cause: DNS servers like 217.169.20.21 and 217.169.20.20 are unreachable from inside the container, even though they work fine in older NPM versions
- Fix: Not resolved yet. Rolling back to NPM version 2.11.1 avoids the issue. Possibly caused by new container network behavior in 2.12.4
I post this so i can refer to it each time in need to try a "new fix" and have to redo all this again just to test. Also so that i hope none of these problems are overlooked before the next update.
I shall remain on the previous version of NPM until the next version is pushed to Truenas app's, unless anyone has any other "fix" that i can try.
I'm also having very similar symptoms to you. While the actual proxy is still working (and hence I didn't notice), it's flooding my DNS query logs and I can't log into the webUI due to a bad gateway error. Probably will also have issues when it comes time to renew certs too on this version.
Hi, Yep they made a real "pigs ear" of that one. Others have said they are actually looking for alternatives to NPM specifically because of this mess and the number of times they mess up an update. I have no choice really, I don't have the time or inclination to learn a new reverse proxy.
Same here, i had to rollback to 2.12.3 in my homelab setup
Same here, i had to rollback to 2.12.3 in my homelab setup
For anyone using the truenas app, 2.12.3_1.1.14 is stable. It took me a few tries since the rollback option offered several intermediate versions.
Yea its been stable ever since I first installed the instance/app, which must have been more than a year ago. So I'm sure any of them from the last year would work. But 2.12.3 is fine (if you have it).
I learned my lesson, I usually just click update all on TrueNAS and it emails me when the update notification is cleared. Usually that's enough to tell me everything went okay but I will have to be much more careful and check everything after updates. My public Nextcloud was down for 3 days without me noticing 🤦
Rolled back to 2.12.3.
Rolled back to 2.12.3 which works perfectly
Thanks for posting this. My issue is that I had 2 domains being managed by NPM, one with a public IP and one with a private IP, after the update the private IP no longer resolves but public one still does.
Truenas is now showing that the TN version has been updated but that NPM itself is still the same version.
The update is now showing as:-
2.12.4_1.2.5
2.12.4 same NPM version 1.2.5 but now with chart version 1.2.5
Does this mean that Truenas have attempted to fix this ? Im concerned if i should even test it.
Truenas is now showing that the TN version has been updated but that NPM itself is still the same version.
The update is now showing as:-
2.12.4_1.2.52.12.4 same NPM version 1.2.5 but now with chart version 1.2.5
Does this mean that Truenas have attempted to fix this ? Im concerned if i should even test it.
I've tried updating to this version to see if the issue had been fixed but I ran into the same errors. Had to roll back to v.2.12.3 / 1.2.3 again.
Looks like we shall be waiting for the actual NPM update then.
Thx for taking a look.
Thanks... was getting the same thing. Noticed my nodes that both had the update at the same exact time had higher load than normal and running hotter.
Downgraded to 2.12.3 image and issue gone and normal
How to go back to version 2.12.3 from Truenas I am new
I did rollback to 2.12.3 but now, I receive a "Invalidd usernanme or password" message...
Strange...
in roll back there is just 1.2.4
in roll back there is just 1.2.4
It's there. https://hub.docker.com/r/jc21/nginx-proxy-manager/tags
in roll back there is just 1.2.4
It's there. https://hub.docker.com/r/jc21/nginx-proxy-manager/tags
what is the procedure ?
1.2.5 does not work :frowning:
tested leaving the
sed -i $d /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh
got console output
2025-07-07 09:04:10.632922+00:00[1;34m❯ [1;36mConfiguring npm user ...[0m
2025-07-07 09:04:11.542509+00:00useradd warning: npm's uid 568 outside of the UID_MIN 1000 and UID_MAX 60000 range.
2025-07-07 09:04:12.447397+00:00[1;34m❯ [1;36mConfiguring npm group ...[0m
2025-07-07 09:04:12.662400+00:00[1;34m❯ [1;36mChecking paths ...[0m
2025-07-07 09:04:12.892216+00:00[1;34m❯ [1;36mSetting ownership ...[0m
2025-07-07 09:04:15.826341+00:00/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh: line 41: syntax error: unexpected end of file
2025-07-07 09:04:15.826813+00:00s6-rc: warning: unable to start service prepare: command exited 2
2025-07-07 09:04:15.828907+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.
Tried with the new sed line
sed -i 2,$d /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh
got output
jack@TruenasScale ~ $ sudo docker ps | grep nginx
92b4689f6c20 jc21/nginx-proxy-manager:2.12.4 "/init" 3 minutes ago Up 3 minutes (unhealthy) 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:30020->81/tcp, :::30020->81/tcp ix-nginx-proxy-manager-npm-1
jack@TruenasScale ~ $
gives no logs at all!
No logs yet
I also tried with no environment variable at all. It still does not start and gives no logs at all.
Im back on 1.2.3 again as that works just fine.
Same here, on unraid container with 2.12.4 seems not working. Rolled back to 2.12.3.
Goddamnit. I don't use cloudflare and I really shouldn't trust the community to update the plugins anymore. I won't be merging any plugin changes without at least 2 verifications now.
Problem 1: I've reverted the cloudflare config change in #4645, looks like some of you have done so in your forks but I didn't see a PR come through.
Problem 2: This is another commit that I tested on my instances, but I don't have a TrueNAS ...
Problem 3: See #4642, I am trying to discover why this script isn't correct within the image for some of you. It's there for me.
Problem 4: I don't know what these 217.169.20.21 and 217.169.20.20 servers are, but they aren't DNS reachable from anything I have access to, not just inside the NPM container. I can reach 1.1.1.1 and 8.8.8.8 from inside, though. Have you tested that? Nothing I do with my releases affects Docker networking.