[GH-ISSUE #2493] cPanel DNS SSL plugin give errors #1742

Open
opened 2026-02-26 07:32:17 +03:00 by kerem · 5 comments
Owner

Originally created by @jhaveDK on GitHub (Dec 20, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2493

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

Originally created by @jhaveDK on GitHub (Dec 20, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2493 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **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
Author
Owner

@jhaveDK commented on GitHub (Dec 21, 2022):

Its look like the problem its newer create /etc/letsencrypt/credentials/credentials-2

<!-- gh-comment-id:1362224162 --> @jhaveDK commented on GitHub (Dec 21, 2022): Its look like the problem its newer create /etc/letsencrypt/credentials/credentials-2
Author
Owner

@dormancygrace commented on GitHub (Dec 29, 2022):

https://github.com/NginxProxyManager/docker-nginx-full/pull/10

<!-- gh-comment-id:1367035961 --> @dormancygrace commented on GitHub (Dec 29, 2022): https://github.com/NginxProxyManager/docker-nginx-full/pull/10
Author
Owner

@github-actions[bot] commented on GitHub (Feb 1, 2024):

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

<!-- gh-comment-id:1920342739 --> @github-actions[bot] commented on GitHub (Feb 1, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@godsgood33 commented on GitHub (Mar 11, 2025):

I don't know if this will help or if you're still having the issue. I tried a shot in the dark and found "Manage API Tokens" on my cPanel instance (v118). I created a token, then I copied the credentials for username and password on to the Credentials File Content box, and added a line for "cpanel_api_token = {token}" and it worked.

<!-- gh-comment-id:2712454659 --> @godsgood33 commented on GitHub (Mar 11, 2025): I don't know if this will help or if you're still having the issue. I tried a shot in the dark and found "Manage API Tokens" on my cPanel instance (v118). I created a token, then I copied the credentials for username and password on to the Credentials File Content box, and added a line for "cpanel_api_token = {token}" and it worked.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 11, 2025):

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

<!-- gh-comment-id:3392742606 --> @github-actions[bot] commented on GitHub (Oct 11, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1742
No description provided.