opnsense / plugins

OPNsense plugin collection
https://opnsense.org/
BSD 2-Clause "Simplified" License
839 stars 629 forks source link

ACME-Client: Can not find dns api hook for: dns_transip #4218

Open mikelock opened 1 month ago

mikelock commented 1 month ago

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug The problem is the acme client in combination with TransIP cannot add/edit the TXT data of my subdomain. I have to copy and paste the command in the terminal with --debug, and cp the TXT data manually. The message that seems to indicate the problem is 'Can not find dns api hook for: dns_transip'. This doesn't show when I add the TXT data manually.

Not sure whether this has ever worked in previous versions, this is my first try.

Relevant log files Acmeclient latest.log:

[Tue Sep  3 21:37:58 CEST 2024] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[Tue Sep  3 21:38:07 CEST 2024] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Tue Sep  3 21:38:07 CEST 2024] Single domain='x.xxx.nl'
[Tue Sep  3 21:38:07 CEST 2024] Getting domain auth token for each domain
[Tue Sep  3 21:38:09 CEST 2024] Getting webroot for domain='x.xxx.nl'
[Tue Sep  3 21:38:09 CEST 2024] Can not find dns api hook for: dns_transip
[Tue Sep  3 21:38:09 CEST 2024] You need to add the txt record manually.
[Tue Sep  3 21:38:09 CEST 2024] Add the following TXT record:
[Tue Sep  3 21:38:09 CEST 2024] Domain: '_acme-challenge.x.xxx.nl'
[Tue Sep  3 21:38:09 CEST 2024] TXT value: 'xxxxxxxxxxxxxxxxxx'
[Tue Sep  3 21:38:09 CEST 2024] Please be aware that you prepend _acme-challenge. before your domain
[Tue Sep  3 21:38:09 CEST 2024] so the resulting subdomain will be: _acme-challenge.x.xxx.nl
[Tue Sep  3 21:38:09 CEST 2024] Please add the TXT records to the domains, and re-run with --renew.
[Tue Sep  3 21:38:09 CEST 2024] Please add '--debug' or '--log' to check more details.
[Tue Sep  3 21:38:09 CEST 2024] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

Environment Software version used and hardware type if relevant. e.g.:

OPNsense 24.7.3_1-amd64 Intel(R) Celeron(R) J4125 CPU @ 2.00GHz (4 cores, 4 threads) Network Intel® I225-V

fraenki commented 2 weeks ago

Cannot find dns api hook for:

Although I have not been able to reproduce this, the following patch may fix this issue:

opnsense-patch -c plugins d1ef1f93ce318926c14e14291a50c09ac6421f15

Please apply the patch and report whether or not this fixes the infamous Cannot find dns api hook for: error message.

If this does not fix this error, please use the Acme Client GUI to change Log Level to debug 3 and try again. Afterwards please provide the resulting ACME Log.