mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #584] Internal error while getting Lets Encrypt certificate / SQlite database #490
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#490
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 @AnthoBalitrand on GitHub (Aug 26, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/584
When trying to get a new certificate from Let's Encrypt, I get an "Internal Error" message.
Using latest docker image (2.4.0).
By looking at the /var/log/letsencrypt/letsencrypt.log file, I can see that the challenges has been successfully completed :
The certificate is then displayed on the certificates list as expired with an expiration date being the current day.
By looking at the certificate file on /etc/letsencrypt/live/..., I can see the certificate being valid :
[root@docker-nginx:/etc/letsencrypt/live/npm-2]# openssl x509 -in cert.pem -text Certificate: Data: Version: 3 (0x2) Serial Number: <removed> Signature Algorithm: sha256WithRSAEncryption Issuer: C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3 Validity Not Before: Aug 26 20:54:16 2020 GMT Not After : Nov 24 20:54:16 2020 GMT@AnthoBalitrand commented on GitHub (Aug 27, 2020):
More information :
After manually editing the expiration date of the generated certificate on my SQlite database file (to make it match the real expiration date of the certificate signed by Let's Encrypt), everything goes well.
It seems that the issue appears when nginx-proxy-manager tries to update the expiration date on the database after the certificate is generated, when using an SQlite database file (didn't tested with a mySQL one).
@RichardDern commented on GitHub (Aug 29, 2020):
Apparently, it's caused by
FROM_UNIXTIME:@cristiangauma commented on GitHub (Aug 29, 2020):
I can confirm, that I also have the problem with
3 - SQLITE_ERROR: no such function: FROM_UNIXTIMEand somehow it makes the domain to reach the letsencrypt rate-limit (so in my case until the next week I won't be able to get a new SSL certificate for the domain that I was configuring.).It worked properly before start using SQLITE.
Related: https://github.com/jc21/nginx-proxy-manager/issues/557
@AnonJervis commented on GitHub (Aug 31, 2020):
I can confirm as well showing the same error caused by FROM_UNIXTIME
@d33pjs commented on GitHub (Sep 1, 2020):
Same Problem for me.
@meichthys commented on GitHub (Sep 8, 2020):
Same here.
@tg44 Did you also face this issue when implementing SQLite?
@meichthys commented on GitHub (Sep 8, 2020):
It looks like this may be fixed in #560
@meichthys commented on GitHub (Sep 8, 2020):
I can confirm this is fixed in v2.5.0 🚀
@tg44 commented on GitHub (Sep 8, 2020):
I dont use certs, probably this is the reason why I didn't catch that...
Yes the problem is the sql function (sqlite is really limited and sonetimes dumb), and the linked PR is the fix for this (I did the same with the current time function anno).
@meichthys commented on GitHub (Sep 10, 2020):
@jc21 i think we can close this 👍
@docfactory37 commented on GitHub (Sep 17, 2020):
also have the same issue
@meichthys commented on GitHub (Sep 17, 2020):
@docfactory37 The issue was fixed in v2.5.0
Make sure you're updated to that version. If you're still having the issue, you may want to open a different issue and include some logs for further troubleshooting.
@ionescu77 commented on GitHub (May 10, 2021):
Thank you everyone.
I think this issue can be closed.
I've been running on
sqlitesuccessfully with letzencrypt (& cloudflare) since 1y (Note: currently on n-p-m dockerv3.8.0)@meichthys commented on GitHub (May 10, 2021):
Agreed. I've also been using SQlite without any issues.
@AnthoBalitrand can you confirm that this issue is fixed? If so, could you close this issue?
@AnthoBalitrand commented on GitHub (May 12, 2021):
I confirm, it's now working properly :-)
Thanks for your help !