mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1365] Internal error when requesting new certificate #1081
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#1081
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 @EricGuic on GitHub (Aug 30, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1365
Hi,
I get an "internal error" when I try to request a ssl certificate after setting up a proxy host.
It was working fine in july (I've created multiple host with working certificate the 16th july 2021), but now it seems to be broken.
I'm running NPM on a raspberry pi, inside Docker (alongside Watchtower, AdGuard Home and Portainer other containers). Being not very good at docker things and ssh command, I manage my container with Portainer GUI.
I've try to find a similar issue here, but without succes. Here are the first clues I can provide to you (sorry for my english from France).
My router is ok, 80 and 443 redirected to my Pi.
I can reach some services from outside my network.
So my images :
jc21/nginx-proxy-manager:latest
yobasystems/alpine-mariadb:10.4.17-arm32v7 (I try with :latest, but never get it working. I finally found some advice online saying that on the raspberry pi, you have to use this version. It works for me, but if you have advice, I will take it.
NPM container settings :

When I try to get the certificate, here are the logs inside Portainer :
Inside the console, if I run certbot renew, I get :
Those certificate correspond (I guess) to the working certificate I've already set up the 16th july 2021 and which are valid until october.
After that, I'm a bit lost. I don't know how to reach the Lets'Encrypt log, or other specific log which could be useful.
Thanks for your help.
(edit : clarify syntax, anonymised personnal email and domain)
@EricGuic commented on GitHub (Sep 6, 2021):
Hi, anyone to give me some advice ? In your opinion, is this a known issue, or more likely a misconfiguration (maybe in the database) ?
I've seen the post about the v3 developpment : should I understand that this problem won't be adress and I have to wait for the v3 release ?
Are other people using also the yobasystem databse instead of the jc21 one ? (as already mentionned, I've followed a guide online for my Raspberry pi). Do you think that the jc21 databse will fix this ?
Thanks for your advice.
@Kirk1984 commented on GitHub (Sep 6, 2021):
The last console outputs states that your certs are still valid so they are skipped for renewal.
On the database topic: you don't need it really. npm 3 will switch to an internal sqlite (as far as i unterstand). i used the official mariadb initially but i tossed it and i use the sqlite database. runs fine.
EDIT: I think the jc21 database is only there because he added the aria storage engine. but that is standard in mariadb since 10.4. So i guess that maybe that database might vanish :)
@wtrdk commented on GitHub (Sep 7, 2021):
I experience a similar issue. An advise from another user was to delete the certificate and request a new one, but it's not working. For some subdomains renewing worked fine, for some it failed and requesting a new one worked fine. And for some both options didn't work. Below a part of the logfile for requesting a new certificate after deleting the expired one through the webinterface.
@EricGuic commented on GitHub (Sep 7, 2021):
Hi, thanks both of you for your replies.
Today I've tried another way, by requesting a wildcart certificate through a DNS Challenge.
My domain name provider is OVH, I've correctly generate and copy/paste the key/secrets in NPM fields :
(I've of course replaced it by stars ;-)
And after a few minutes, here is the error message NPM gives me :
Do you find any clues in this error message ?
Thanks per advance. Eric
@thebiblelover7 commented on GitHub (Sep 8, 2021):
@EricGuic Seems like your DNS isn't working well as you can see in the
Temporary failure in name resolutionAre you sure you have pointed your DNS to the correct IP?Edit: On second reading I noticed that it is the command to install
certbotthat is failing. This means that your container/npm cannot get an IP address from which to install certbot. Check https://stackoverflow.com/a/46629043/16625037 and see if that solves your problem. Let me know how it goes!@EricGuic commented on GitHub (Sep 8, 2021):
@thebiblelover7 , thanks to take time to read the log, I will check your link.
@EricGuic commented on GitHub (Sep 8, 2021):
@thebiblelover7
I think I’m maybe not good enough to fully understand your link.
But from the first day I installed this raspberry, I was wondering on how to correctly setup the network part.
As I said, this raspberry run Adguard Home in a docker container on bridge network, and the pi has the 192.168.1.10 ip adress. The router is set up with this .10 ip adress as a dns provider.
Nginx PM is in another container, also on bridge network.
Do I have to set somewhere in the NPM container to use the DNS of the host, or another DNS set manually (like 8.8.8.8) ?
Maybe my Adguard Home is blocking some access to certbot or to Let’sEncrypt ? (but I’ve never find online a list of ip or domains used by LE for the certification process).
@thebiblelover7 commented on GitHub (Sep 12, 2021):
@EricGuic Let me try to simplfy this:
Just watch the video below and afterwards reboot
https://user-images.githubusercontent.com/61815862/132990877-92072d0e-d2e6-4bd0-93b8-5d8220012ebc.mp4
I hope this makes sense
@EricGuic commented on GitHub (Sep 12, 2021):
Hi @thebiblelover7 , thank you very much for taking the time to do this little video.
I've followed your guide, and modified the DNS like you show me (primary the raspberry itself with Adguard home, and as a "plan B" the Cloudflare DNS).
I've also run this command to change the default settings of the pi :
sudo nano /etc/dhcpcd.confI've set a fallback to a static ip (192.168.1.10) and I set this two DNS again.
I've update+upgrade the pi, reboot it, but I still have the same error in the log of the container :
(I've only copied the relevant lines IMHO)
Any idea ? Should I try to completely erase and re-deploy my NPM container ? (with the mariaDB one) ?
(If that can help, I've also tried to request a wildcard certificate using the DNS Challenge method, by providing the token from my provider OVH). No way to make it work neither.)
@thebiblelover7 commented on GitHub (Sep 13, 2021):
@EricGuic Check this video, hope it helps!
https://user-images.githubusercontent.com/61815862/133076566-b7e92e93-a364-4091-867b-75e1a2981540.mp4
@EricGuic commented on GitHub (Sep 13, 2021):
Hi @thebiblelover7 , thanks again for your tip, it force me to go back to the basics (which I did'nt master apparently).
So I was only getting ping respond for 8.8.8.8 but not from google.com.
After settings the DNS of the host, I've search how to force the DNS of the docker container and found that guide online :
https://robinwinslow.uk/fix-docker-networking-dns
You can set the default DNS settings options for the docker daemon by creating a daemon configuration file at /etc/docker/daemon.json.
I've choosed to completely "overpassed" my AdGuardHome DNS (running on another container on the same raspberry pi) to see if it could be the problem (so Cloudflare as primary, and Google as secondary DNS)
And with that settings (and maybe in addition with the previous one made on /etc/dhcpcd.conf), everything is now working as expected. Hourra !
I've successfully setup a wildcard certificate for my domain (with the DNS challenge).
A've also tested LinuxServer SWAG, and it was giving me the same error until I set the daemon.json files.
So thank you again for your help :-)
(may I try a last thing : what is your advice about the network config : with only AdGuard Home, watchtower (mode notify only) and NPM on the Pi, should I run NPM under the bridge network or under the specific network created by Portainer when I deployed the stack ? (see capture attached of my current config).
@S1M8N commented on GitHub (Oct 10, 2021):
Hello,
I rewrite into this issue because I don't have inter connection with my docker and my server and into my portainer network list, I don't have brige system :
Do you have an idea how can I import the brige system configuration ?
Thank you in advenced
@thebiblelover7 commented on GitHub (Oct 11, 2021):
@S1M8N This is not a nginx-proxy-manager issue, please pass this on to portainer/docker