mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #1119] Certbot DNS challenge error: unexpected keyword argument 'type' #924
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#924
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @drx1x2 on GitHub (May 24, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1119
TypeError: create_record() got an unexpected keyword argument 'type'
Please see the logfiles in /var/log/letsencrypt for more details.
[5/24/2021] [9:03:31 AM] [Nginx ] › ℹ info Reloading Nginx
[5/24/2021] [9:03:31 AM] [Express ] › ⚠ warning Command failed: /opt/certbot/bin/certbot certonly --non-interactive --cert-name "npm-10" --agree-tos --email "mymail@gmail.com" --domains "domain" --authenticator dns-luadns --dns-luadns-credentials "/etc/letsencrypt/credentials/credentials-10" --dns-luadns-propagation-seconds 120
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-luadns, Installer None
Performing the following challenges:
dns-01 challenge for domain.com
Cleaning up challenges
Encountered exception during recovery: TypeError: delete_record() got an unexpected keyword argument 'type'
An unexpected error occurred:
need help
@chaptergy commented on GitHub (May 24, 2021):
This was an issue with certbot. There is nothing we can do about that. A new version of certbot with a fix is now available, so you will need to update your npm image with
docker-compose pulland then start the container back up. Or you can manually update certbot inside the container withpip install certbot --upgrade.@gitmors commented on GitHub (May 30, 2021):
Fix the file .../certbot/plugins/dns_common_lexicon.py
Change the argument name type with rtype line 48 :
and line 70 :
@spennell commented on GitHub (Jun 3, 2021):
I can confirm @gitmors solution works. I was facing a similar issue when trying to configure certs for DNSimple.
@Trollwut commented on GitHub (Jun 8, 2021):
Hey mates!
Can confirm that this solution also works for me. So yes, we have to wait for
certbothaving this fixed, but as a workaround, one can do it quite simply.Just adding this information for newcomers with the same problem.
If you have your NPM dockered, go into your container like this:
Then you might need some kind of text editor, install it like:
Substitute with your editor of choice.
Then locate the
certbotlibrary and open that file in your text editor (check the folder twice, it might have another location for you):(If it's not there, you can check for its location with command
find / -type f -name "dns_common_lexicon.py")In this file, edit it like @gitmors told us in this comment.
Save and exit.
It should be working by now. But it could be that your
certbothas exited due to the error and hasn't deleted it's lockfiles (which will prevent it from running again).You can see if you have lock files on your system:
Please doublecheck if only files are listed that you really don't want!
You can delete them with that:
Now, exit your docker shell, go to NPM webpage and try to get your new DNS certificate. :)