Closed aniel300 closed 8 months ago
Have a look at https://github.com/jc21/nginx-proxy-manager/issues/1271, especially the certificate section and provide some the letsencrypt logs, otherwise the issue could be anything.
ok will do sir, is it safe to share my logs here ?
The only sensitive information in the letsencrypt logs should be the domain and maybe the email address you entered as the notification address. You can search and replace them with placeholders if you like. The other information is ramdomly generated challenge data which is useless by the time you have posted the logs.
Hello,
I'm also having some issues and hoping you could give me some assistant, here is my log.
Thanks!
@lildevilx Your issue seems to be related to your docker container being misconfigured and not being able to connect to the internet / a dns server. Have a look at https://github.com/jc21/nginx-proxy-manager/issues/1482 or https://github.com/jc21/nginx-proxy-manager/issues/1365.
I am having the same issue when trying to manually renew my cerfts, I have 11 days left on them, so it looks like the auto renew has not been work either. I am running NPM v2.9.13 in a unraid docker, using cloudflare for dns,
My docker log shows this,
[12/28/2021] [9:10:34 AM] [SSL ] › ℹ info Renewing Let'sEncrypt certificates for Cert #12: tautulli.xxx.com
[12/28/2021] [9:10:34 AM] [SSL ] › ℹ info Command: certbot renew --force-renewal --config "/etc/letsencrypt.ini" --cert-name "npm-12" --preferred-challenges "dns,http" --no-random-sleep-on-renew --disable-hook-validation
[12/28/2021] [9:10:34 AM] [Express ] › ⚠ warning Command failed: certbot renew --force-renewal --config "/etc/letsencrypt.ini" --cert-name "npm-12" --preferred-challenges "dns,http" --no-random-sleep-on-renew --disable-hook-validation
An unexpected error occurred:
pkg_resources.ContextualVersionConflict: (cryptography 36.0.1 (/usr/lib/python3.8/site-packages), Requirement.parse('cryptography<4,>=2'), {'dns-lexicon'})
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmpy2mllf8d/log or re-run Certbot with -v for more details.
certbot logs show
2021-12-28 09:37:47,142:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 1593, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 241, in find_all
plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
File "/usr/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 261, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point, with_prefix)
File "/usr/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 60, in __init__
self.plugin_cls: Type[interfaces.Plugin] = entry_point.load()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2464, in load
self.require(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2487, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 782, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 36.0.1 (/usr/lib/python3.8/site-packages), Requirement.parse('cryptography<4,>=2'), {'dns-lexicon'})
2021-12-28 09:37:47,142:ERROR:certbot._internal.log:An unexpected error occurred:
2021-12-28 09:37:47,142:ERROR:certbot._internal.log:pkg_resources.ContextualVersionConflict: (cryptography 36.0.1 (/usr/lib/python3.8/site-packages), Requirement.parse('cryptography<4,>=2'), {'dns-lexicon'})
sorry for my ignorance where is it that i find the required logs ? maybe here ?: \docker\proxymanager\data\logs
here is the docker logs, let me know if u need anything else and also if i have included any sensible info.
@aniel300 Your logs say
Failed to renew certificate npm-1 with error: Error determining zone_id: 9109 Invalid access token. Please confirm that you have supplied valid Cloudflare API credentials. (Did you enter a valid Cloudflare Token?)
Have you provided valid credentials?
Yes. this wildcard cert was created by the first host i did.
Then your issue is either related to https://github.com/jc21/nginx-proxy-manager/pull/1697, or it is not an npm issue at all. Go ahead and try using docker image jc21/nginx-proxy-manager:github-pr-1697
. If that does not work, try it with your own installation of certbot to see if that works.
EDIT: sorry, I got confused by all the different issues in this thread, forgot that you are the original author.
It could also be possible that the reason is the slightly changed namespace syntax in certbot. You should connect to the database, go to the certificate
table, and the meta
column for your certificates row should contain your credentials. Make sure it says dns_cloudflare_api_token = ...
and not something like certbot-dns-cloudflare:dns_cloudflare_api_token = ...
Then your issue is either related to #1697, or it is not an npm issue at all. Go ahead and try using docker image
jc21/nginx-proxy-manager:github-pr-1697
. If that does not work, try it with your own installation of certbot to see if that works.
ahh ok. so does this response still valid ?
Sure, so first check the database, if that does not work try the different docker image, and if that still does not work try it with a custom certbot installation on a different machine.
i can try to do few of those things except for the one of using a different machine since this is a dedicated server
Hi, I don't know if this is related but I ran into the same problem. It is important to configure your DNS entry In Cloudflare as "DNS only" as long as you don't have a certificate and once the certificate is created, switch to "Proxied". Hope that helps
@christofkac i tried with dsn only and issue still happening
Issue is now considered stale. If you want to keep it open, please comment :+1:
closing as i never got it fix or got the time to attempt to fix it. long time has passed and I now use traefik. still this project is amazing for pp looking to get into reverse proxies and want/ need a ui to help them trough the journey. thank u to the devs and keep up the good work.
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug when i tried to renew ssl cert i get "internal error". note: am using wildcard with Cloudflare.
Nginx Proxy Manager Version latest as the time of this posting
To Reproduce Steps to reproduce the behavior:
Expected behavior be able to renew cert which also bring me to a question. isn't npm supposed to auto do this ?
Screenshots https://i.imgur.com/3KpuUjy.png
Operating System ubuntu 18/docker
Additional context i did tried to find a similar issue to this and found some but i cant figure out if there is a fix for this or not some post i found: https://github.com/jc21/nginx-proxy-manager/issues/1659 https://github.com/jc21/nginx-proxy-manager/issues/1625
thank you in advance.