[GH-ISSUE #5139] certbot.errors.PluginError: An error occurred adding the DNS TXT record: Unable to get base domain #3126

Open
opened 2026-02-26 07:37:54 +03:00 by kerem · 2 comments
Owner

Originally created by @vlan0ping on GitHub (Jan 13, 2026).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/5139

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
Internal error creating a new entry with SSL certificate creation request (GANDI). Inspecting NPM docker container:
cat /tmp/letsencrypt-log/letsencrypt.log
File "/opt/certbot/lib/python3.11/site-packages/certbot_plugin_gandi/main.py, line 72, in _perform raise errors.PluginError(An error occurred adding the DNS TXT record: {0}.format(error)) certbot.errors.PluginError: An error occurred adding the DNS TXT record: Unable to get base domain for test.domain.co.za 2026-01-13 14:39:19,562:ERROR:certbot._internal.log:An error occurred adding the DNS TXT record: Unable to get base domain for test.domain.co.za

Nginx Proxy Manager Version
V2.12.3

To Reproduce
Steps to reproduce the behavior:

  1. Creating new proxy host
  2. Setup request new certificate

Expected behavior
Get a working proxy host entry, proxying my service

Screenshots
See attached
Image

Operating System
Docker compose with latest image

Additional context
Docker Compose version 5.0.1

Originally created by @vlan0ping on GitHub (Jan 13, 2026). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/5139 **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** Internal error creating a new entry with SSL certificate creation request (GANDI). Inspecting NPM docker container: `cat /tmp/letsencrypt-log/letsencrypt.log` `File "/opt/certbot/lib/python3.11/site-packages/certbot_plugin_gandi/main.py, line 72, in _perform raise errors.PluginError(An error occurred adding the DNS TXT record: {0}.format(error)) certbot.errors.PluginError: An error occurred adding the DNS TXT record: Unable to get base domain for test.domain.co.za 2026-01-13 14:39:19,562:ERROR:certbot._internal.log:An error occurred adding the DNS TXT record: Unable to get base domain for test.domain.co.za` **Nginx Proxy Manager Version** V2.12.3 **To Reproduce** Steps to reproduce the behavior: 1. Creating new proxy host 2. Setup request new certificate **Expected behavior** Get a working proxy host entry, proxying my service **Screenshots** See attached <img width="520" height="838" alt="Image" src="https://github.com/user-attachments/assets/18da0453-1e6e-4542-b192-f22b9b30a5a2" /> **Operating System** Docker compose with latest image **Additional context** Docker Compose version 5.0.1
Author
Owner

@Syll-GH commented on GitHub (Jan 19, 2026):

It works for me for a specific domain like test.domain.tld and gandi API.
Did you set the correct permissions at gandi token ?

<!-- gh-comment-id:3768701841 --> @Syll-GH commented on GitHub (Jan 19, 2026): It works for me for a specific domain like test.domain.tld and gandi API. Did you set the correct permissions at gandi token ?
Author
Owner

@davidsenouf commented on GitHub (Feb 24, 2026):

I am having the same issue.

<!-- gh-comment-id:3953714559 --> @davidsenouf commented on GitHub (Feb 24, 2026): I am having the same issue.
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#3126
No description provided.