Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add any SSL certificate #2420

Closed
andrewhaji opened this issue Nov 22, 2022 · 10 comments
Closed

Unable to add any SSL certificate #2420

andrewhaji opened this issue Nov 22, 2022 · 10 comments

Comments

@andrewhaji
Copy link

andrewhaji commented Nov 22, 2022

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

I am having issues with creating SSL certificates. Both HTTP and DNS certificates cannot be created despite the server being reachable. I am receiving the following error no matter what kind of certificate I try to generate:

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-15" --agree-tos --authenticator webroot --email "MYEMAIL" --preferred-challenges "dns,http" --domains "THE.DOMAIN" 
An unexpected error occurred:
AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-3c90t_tk/log or re-run Certbot with -v for more details.

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

Nginx Proxy Manager Version

2.9.19

To Reproduce
Steps to reproduce the behavior:
Go to SSL Certificates
Add SSL Certificate
Type in domain, agree to terms, and click Save
Error is displayed

Expected behavior

It should be generating the SSL certificate

Screenshots

Operating System

Using docker latest image running on Ubuntu 22.04

Additional context

What's strange is that certificate generation works on ONE of my installs running 2.9.19, but THREE other installs all fail. They have all been able to generate SSL certificates in the past. Never been an issue until now.

@andrewhaji andrewhaji added the bug label Nov 22, 2022
@andrewhaji
Copy link
Author

During my troubleshooting process I wiped out my NPM configuration and started from scratch. When starting from scratch I had no trouble generating the necessary SSL certificates.

So something in my existing NPM installations must be causing this issue - it's happening on 3 different machines that were set up at different times.

@Gedimz
Copy link

Gedimz commented Nov 22, 2022

I have the same problem and the same solution seems to help, for a short period of time

@ghost
Copy link

ghost commented Nov 22, 2022

me it's simple fresh install never made a cert, and it won't do, same problem with 2.9.18 btw

@spoit
Copy link

spoit commented Nov 24, 2022

I have this issue too. Tried reinstalling but did not help

Could this be related?

@andrewhaji
Copy link
Author

andrewhaji commented Nov 24, 2022

Could this be related?

The error message is the same as what I'm seeing. Does Nginx Proxy Manager use Certbot 2.0 internally? Version 2.0.0 was released only 3 days ago, and the latest Nginx Proxy Manager docker image was built over 2 weeks ago. Unless the docker image downloads the latest Certbot upon first run? I admit I'm not a docker expert.

EDIT: I checked my installs and they're all still running certbot 1.31.0.

Additionally, the breaking change seems to be related to DNS certificates only, not HTTP? I'm getting this error message even when generating an HTTP certificate.

@spoit
Copy link

spoit commented Nov 24, 2022

I'm only getting the error when trying to add SSL certificates (via gandi livedns):

Error: Command failed: certbot renew --non-interactive --quiet --config "/etc/letsencrypt.ini" --preferred-challenges "dns,http" --disable-hook-validation  

An unexpected error occurred:

AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'
    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Socket.<anonymous> (node:internal/child_process:458:11)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:301:12)

@sam-semillia
Copy link

same issue on my side, using netcup dns :/

@spoit
Copy link

spoit commented Nov 28, 2022

Possibly related to #2430 and/or #2427

Copy link

github-actions bot commented Feb 4, 2024

Issue is now considered stale. If you want to keep it open, please comment 👍

@github-actions github-actions bot added the stale label Feb 4, 2024
Copy link

Issue was closed due to inactivity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants