NginxProxyManager / NginxProxyManager/nginx-proxy-manager

cPanel DNS SSL plugin give errors

Open
#2,493 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug stale
Dominant language
TypeScript
Stars
34.2k
Forks
3.9k
Avg merge
21h 12m
Merged PRs (30d)
20

Description

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    No
  • 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
If the module is enabled its give this error in the docker log

app_1 | [12/20/2022] [10:09:08 PM] [SSL ] › ✖ error Error: Command failed: certbot renew --non-interactive --quiet --config "/etc/letsencrypt.ini" --preferred-challenges "dns,http" --disable-hook-validation
app_1 | An unexpected error occurred:
app_1 | AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'
app_1 |
app_1 | at ChildProcess.exithandler (node:child_process:402:12)
app_1 | at ChildProcess.emit (node:events:513:28)
app_1 | at maybeClose (node:internal/child_process:1100:16)
app_1 | at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
app_1 | QueryBuilder#allowEager method is deprecated. You should use allowGraph instead. allowEager method will be removed in 3.0
app_1 | QueryBuilder#eager method is deprecated. You should use the withGraphFetched method instead. eager method will be removed in 3.0
app_1 | QueryBuilder#omit is deprecated. This method will be removed in version 3.0
app_1 | Model#$omit is deprected and will be removed in 3.0.

Nginx Proxy Manager Version
v2.9.19

To Reproduce
Steps to reproduce the behavior:

  1. Go to SSL cert and add
  2. Type domain.com and *.domain.com
  3. Select DNS challenge
  4. Select cPanel and set all settings

Error in NPM

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-2" --agree-tos --email "email@domain.com" --domains "*.domain.com,domain.com" --authenticator cpanel --cpanel-credentials "/etc/letsencrypt/credentials/credentials-2"
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-ok7p235n/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)

Operating System
Ubuntu X86

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the cPanel DNS challenge using the reported Docker image and certbot command, then inspect the Docker log for the certbot.interfaces.IAuthenticator error. Done means both certificate creation and renewal complete without that AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, node.js
Domain
infrastructure, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.