Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report bugs to hosting.de dns api #2058

Open
Neilpang opened this issue Jan 25, 2019 · 7 comments
Open

Report bugs to hosting.de dns api #2058

Neilpang opened this issue Jan 25, 2019 · 7 comments
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks

Comments

@Neilpang
Copy link
Member

Any bugs found hosting.de in dnsapi.

@Neilpang
Copy link
Member Author

@membero please watch to this issue.

Any future bugs will be reported here.

Thanks.

@Neilpang Neilpang added the 3rd party api report bugs to dns api, deploy hooks and notification hooks label Jan 25, 2019
@Schmuuu
Copy link

Schmuuu commented Feb 9, 2019

Hello,

I hope I correctly understand that everybody who finds issues with hosting.de dns api should post them here.

I executed the following command and ran into an API error:

acme.sh --issue --dns dns_hostingde --dnssleep 600 --keylength ec-384 -d ##REMOVED##.de -d '*.##REMOVED##.de' --debug --log

Zone find and everything before was successful, only setting the TXT record failed. Here is the log entry:

...
[Sun Feb 10 00:06:07 CET 2019] zoneStatus 'active'
[Sun Feb 10 00:06:07 CET 2019] Result of zoneStatus: 'active'
[Sun Feb 10 00:06:07 CET 2019] POST
[Sun Feb 10 00:06:07 CET 2019] _post_url='https://secure.hosting.de/api/dns/v1/json/zoneUpdate'
[Sun Feb 10 00:06:07 CET 2019] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header  -g '
[Sun Feb 10 00:06:07 CET 2019] _ret='0'
[Sun Feb 10 00:06:07 CET 2019] Calling zoneUpdate: '{"authToken":"##REMOVED##","zoneConfig":{"id":"##REMOVED##","name":"##REMOVED##.de","type":"NATIVE","dnsServerGroupId":" null,","dnsSecMode":"off","emailAddress":"hostmaster@##REMOVED##.de","soaValues":{"expire": 3600000,"negativeTtl": 900,"refresh": 86400,"retry": 7200,"ttl": 86400}},"recordsToAdd":[{"name":"_acme-challenge.##REMOVED##.de","type":"TXT","content":"\"##REMOVED##\"","ttl":3600}]}' 'https://secure.hosting.de/api/dns/v1/json/zoneUpdate'
[Sun Feb 10 00:06:07 CET 2019] Result of zoneUpdate: '{
    "errors": [
        {
            "code": 11008,
            "contextObject": "",
            "contextPath": "zoneConfig.dnsServerGroupId",
            "details": [
            ],
            "text": "'zoneConfig.dnsServerGroupId' may not be edited. The value must match the currently stored value.",
            "value": ""
        }
    ],
    "metadata": {
        "clientTransactionId": "",
        "serverTransactionId": "20190209230607679-dnsrobot-robots1-24061-0"
    },
    "status": "error",
    "warnings": [
    ]
}'
[Sun Feb 10 00:06:07 CET 2019] UNKNOWN API ERROR
[Sun Feb 10 00:06:07 CET 2019] Error add txt for domain:_acme-challenge.##REMOVED##.de
[Sun Feb 10 00:06:07 CET 2019] _on_issue_err

I can't issue a cert right now via dns-api and I fear to use the manual mode, because I don't know how to activate auto renewal later.

Thanks a lot for any help.

@membero
Copy link
Contributor

membero commented Feb 10, 2019

Hello Schmuuu,

I have created a PR for this: #2077

@Schmuuu
Copy link

Schmuuu commented Feb 10, 2019

Hello membero,

Thank you so much. I manually applied the changes from the pull request and it solved my problem. I was now successfully able to issue a certificate with dns challenge for hosting.de.
Thanks a lot.

@gubiq
Copy link

gubiq commented May 8, 2019

Hi,

there seems to be something wrong while talking to the API:
./acme.sh --staging --debug --issue --dns dns_hostingde -d ##removed##.de -d '*.##removed##.de'

[...]       # everything okay up to here

[Wed May  8 11:16:09 CEST 2019] zoneStatus '"active"'
[Wed May  8 11:16:09 CEST 2019] Result of zoneStatus: '"active"'
[Wed May  8 11:16:09 CEST 2019] POST
[Wed May  8 11:16:09 CEST 2019] _post_url='https://secure.hosting.de/api/dns/v1/json/zoneUpdate'
[Wed May  8 11:16:09 CEST 2019] _WGET='wget -q --content-on-error '
[Wed May  8 11:16:09 CEST 2019] Using sed  -i
[Wed May  8 11:16:09 CEST 2019] _ret='0'
[Wed May  8 11:16:09 CEST 2019] Calling zoneUpdate: '{"authToken":"##removed##","zoneConfig":{"id":"##removed##","name":"##removed##.de","type":"NATIVE","dnsServerGroupId":null,"dnsSecMode":"off","emailAddress":"hostmaster@##removed##.de","soaValues":{"expire":2419200,"negativeTtl":900,"refresh":86400,"retry":7200,"ttl":86400},"templateValues":{"templateId":,"templateName":,"templateReplacements":{"ipv4Replacement":,"ipv6Replacement":,"mailIpv4Replacement":,"mailIpv6Replacement":},"tieToTemplate":}},"recordsToAdd":[{"name":"_acme-challenge.##removed##.de","type":"TXT","content":"\"##removed##\"","ttl":3600}]}' 'https://secure.hosting.de/api/dns/v1/json/zoneUpdate'
[Wed May  8 11:16:09 CEST 2019] Result of zoneUpdate: '{
    "errors": [
        {
            "code": 11001,
            "contextObject": "",
            "contextPath": "",
            "details": [
                {
                    "key": "parse error",
                    "value": "illegal value"
                },
                {
                    "key": "request",
                    "value": "zoneUpdate"
                }
            ],
            "text": "The request document is invalid in zoneUpdate request.",
            "value": "request"
        }
    ],
    "metadata": {
        "clientTransactionId": "",
        "serverTransactionId": "20190508091609953-dnsrobot-robots1-32421-0"
    },
    "status": "error",
    "warnings": [
    ]
}'
[Wed May  8 11:16:09 CEST 2019] UNKNOWN API ERROR
[Wed May  8 11:16:09 CEST 2019] Error add txt for domain:_acme-challenge.##removed##.de
[Wed May  8 11:16:09 CEST 2019] _on_issue_err

Thank you for looking into it.

@membero
Copy link
Contributor

membero commented May 8, 2019

Hello @gubiq,

this seems to be a problem in the following PR: #2207

Could you please test the patch which I attached to this PR? Thanks!

@gubiq
Copy link

gubiq commented May 8, 2019

Hi @membero,
the patch in #2207 fixes it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks
Projects
None yet
Development

No branches or pull requests

4 participants