acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.37k stars 4.97k forks source link

Latest version of acme.sh still fails to get proper domain id #2916

Open narthur opened 4 years ago

narthur commented 4 years ago

I'm experiencing an issue where acme.sh where it's failing to get the correct domain ID. I saw in other issues that this was fixed, so I upgraded acme.sh to the latest version (2.8.6) but it still wasn't working. The logs showed that it thought this was the domain ID:

[Thu May 7 13:15:24 PDT 2020] _domain_id='"created":1271721600000,"delegateNameServers":["ns1.audioverse.net.","ns2.audioverse.net.","ns3.audioverse.net.","ns4.audioverse.net.","ns5.audioverse.net.","ns6.audioverse.net."],"processMulti":false,"activeThirdParties":[],"folderId":6086,"gtdEnabled":false,"nameServers":[]'

For now I hard-coded the correct domain ID as suggested in this issue, but I think the bug should be fixed.

Debug log

[Thu May 7 13:15:22 PDT 2020] **===Starting cron===**

[Thu May 7 13:15:22 PDT 2020] Using config home:/root/.acme.sh

[Thu May 7 13:15:22 PDT 2020] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'

[Thu May 7 13:15:22 PDT 2020] GET

[Thu May 7 13:15:22 PDT 2020] url='https://api.github.com/repos/acmesh-official/acme.sh/git/refs/heads/master'

[Thu May 7 13:15:22 PDT 2020] timeout=

[Thu May 7 13:15:22 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:22 PDT 2020] ret='0'

[Thu May 7 13:15:22 PDT 2020] Already uptodate!

[Thu May 7 13:15:22 PDT 2020] Upgrade success!

[Thu May 7 13:15:22 PDT 2020] Using config home:/root/.acme.sh

[Thu May 7 13:15:22 PDT 2020] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'

[Thu May 7 13:15:22 PDT 2020] Auto upgraded to: 2.8.6

[Thu May 7 13:15:22 PDT 2020] Using config home:/root/.acme.sh

[Thu May 7 13:15:22 PDT 2020] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'

[Thu May 7 13:15:22 PDT 2020] _stopRenewOnError

[Thu May 7 13:15:22 PDT 2020] _set_level='2'

[Thu May 7 13:15:22 PDT 2020] di='/root/.acme.sh/*.audioverse.net/'

[Thu May 7 13:15:22 PDT 2020] d='*.audioverse.net'

[Thu May 7 13:15:22 PDT 2020] Using config home:/root/.acme.sh

[Thu May 7 13:15:22 PDT 2020] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'

[Thu May 7 13:15:22 PDT 2020] DOMAIN_PATH='/root/.acme.sh/*.audioverse.net'

[Thu May 7 13:15:22 PDT 2020] **Renew: '*.audioverse.net'**

[Thu May 7 13:15:22 PDT 2020] Le_API

[Thu May 7 13:15:22 PDT 2020] _main_domain='*.audioverse.net'

[Thu May 7 13:15:22 PDT 2020] _alt_domains='no'

[Thu May 7 13:15:22 PDT 2020] Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory

[Thu May 7 13:15:22 PDT 2020] _init api for server: https://acme-v02.api.letsencrypt.org/directory

[Thu May 7 13:15:22 PDT 2020] GET

[Thu May 7 13:15:23 PDT 2020] url='https://acme-v02.api.letsencrypt.org/directory'

[Thu May 7 13:15:23 PDT 2020] timeout=

[Thu May 7 13:15:23 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:23 PDT 2020] ret='0'

[Thu May 7 13:15:23 PDT 2020] ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'

[Thu May 7 13:15:23 PDT 2020] ACME_NEW_AUTHZ

[Thu May 7 13:15:23 PDT 2020] ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'

[Thu May 7 13:15:23 PDT 2020] ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'

[Thu May 7 13:15:23 PDT 2020] ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'

[Thu May 7 13:15:23 PDT 2020] ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf'

[Thu May 7 13:15:23 PDT 2020] ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'

[Thu May 7 13:15:23 PDT 2020] ACME_VERSION='2'

[Thu May 7 13:15:23 PDT 2020] Le_NextRenewTime='1583828249'

[Thu May 7 13:15:23 PDT 2020] _on_before_issue

[Thu May 7 13:15:23 PDT 2020] _chk_main_domain='*.audioverse.net'

[Thu May 7 13:15:23 PDT 2020] _chk_alt_domains

[Thu May 7 13:15:23 PDT 2020] Le_LocalAddress

[Thu May 7 13:15:23 PDT 2020] d='*.audioverse.net'

[Thu May 7 13:15:23 PDT 2020] Check for domain='*.audioverse.net'

[Thu May 7 13:15:23 PDT 2020] _currentRoot='dns_me'

[Thu May 7 13:15:23 PDT 2020] d

[Thu May 7 13:15:23 PDT 2020] _saved_account_key_hash is not changed, skip register account.

[Thu May 7 13:15:23 PDT 2020] Read key length:

[Thu May 7 13:15:23 PDT 2020] _createcsr

[Thu May 7 13:15:23 PDT 2020] Single domain='*.audioverse.net'

[Thu May 7 13:15:23 PDT 2020] Getting domain auth token for each domain

[Thu May 7 13:15:23 PDT 2020] d

[Thu May 7 13:15:23 PDT 2020] url='https://acme-v02.api.letsencrypt.org/acme/new-order'

[Thu May 7 13:15:23 PDT 2020] payload='{"identifiers": [{"type":"dns","value":"*.audioverse.net"}]}'

[Thu May 7 13:15:23 PDT 2020] RSA key

[Thu May 7 13:15:23 PDT 2020] HEAD

[Thu May 7 13:15:23 PDT 2020] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'

[Thu May 7 13:15:23 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g -I '

[Thu May 7 13:15:23 PDT 2020] _ret='0'

[Thu May 7 13:15:23 PDT 2020] POST

[Thu May 7 13:15:23 PDT 2020] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'

[Thu May 7 13:15:23 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:23 PDT 2020] _ret='0'

[Thu May 7 13:15:23 PDT 2020] code='201'

[Thu May 7 13:15:23 PDT 2020] Le_LinkOrder='https://acme-v02.api.letsencrypt.org/acme/order/71627285/3277901806'

[Thu May 7 13:15:23 PDT 2020] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/71627285/3277901806'

[Thu May 7 13:15:24 PDT 2020] url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/4432709018'

[Thu May 7 13:15:24 PDT 2020] payload

[Thu May 7 13:15:24 PDT 2020] POST

[Thu May 7 13:15:24 PDT 2020] _post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/4432709018'

[Thu May 7 13:15:24 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:24 PDT 2020] _ret='0'

[Thu May 7 13:15:24 PDT 2020] code='200'

[Thu May 7 13:15:24 PDT 2020] d='*.audioverse.net'

[Thu May 7 13:15:24 PDT 2020] Getting webroot for domain='*.audioverse.net'

[Thu May 7 13:15:24 PDT 2020] _w='dns_me'

[Thu May 7 13:15:24 PDT 2020] _currentRoot='dns_me'

[Thu May 7 13:15:24 PDT 2020] entry='"type":"dns-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/4432709018/9hv-VA","token":"Pi1ysGSDe1WFN0IPxxQtjKSF7cp3YnpoiV23K0aukLw"'

[Thu May 7 13:15:24 PDT 2020] token='Pi1ysGSDe1WFN0IPxxQtjKSF7cp3YnpoiV23K0aukLw'

[Thu May 7 13:15:24 PDT 2020] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/4432709018/9hv-VA'

[Thu May 7 13:15:24 PDT 2020] keyauthorization='Pi1ysGSDe1WFN0IPxxQtjKSF7cp3YnpoiV23K0aukLw.AHH7zadccEljZObodbe62DAdpkMvy-4C2gTt1x_rRyI'

[Thu May 7 13:15:24 PDT 2020] dvlist='*.audioverse.net#Pi1ysGSDe1WFN0IPxxQtjKSF7cp3YnpoiV23K0aukLw.AHH7zadccEljZObodbe62DAdpkMvy-4C2gTt1x_rRyI#https://acme-v02.api.letsencrypt.org/acme/chall-v3/4432709018/9hv-VA#dns-01#dns_me'

[Thu May 7 13:15:24 PDT 2020] d

[Thu May 7 13:15:24 PDT 2020] vlist='*.audioverse.net#Pi1ysGSDe1WFN0IPxxQtjKSF7cp3YnpoiV23K0aukLw.AHH7zadccEljZObodbe62DAdpkMvy-4C2gTt1x_rRyI#https://acme-v02.api.letsencrypt.org/acme/chall-v3/4432709018/9hv-VA#dns-01#dns_me,'

[Thu May 7 13:15:24 PDT 2020] d='*.audioverse.net'

[Thu May 7 13:15:24 PDT 2020] _d_alias

[Thu May 7 13:15:24 PDT 2020] txtdomain='_acme-challenge.audioverse.net'

[Thu May 7 13:15:24 PDT 2020] txt='BoWQ_JKO07Qwdfk_DFjNufpfByUUeHwULg-z33SfUtA'

[Thu May 7 13:15:24 PDT 2020] d_api='/root/.acme.sh/dnsapi/dns_me.sh'

[Thu May 7 13:15:24 PDT 2020] Found domain api file: /root/.acme.sh/dnsapi/dns_me.sh

[Thu May 7 13:15:24 PDT 2020] Adding txt value: BoWQ_JKO07Qwdfk_DFjNufpfByUUeHwULg-z33SfUtA for domain: _acme-challenge.audioverse.net

[Thu May 7 13:15:24 PDT 2020] First detect the root zone

[Thu May 7 13:15:24 PDT 2020] name?domainname=audioverse.net

[Thu May 7 13:15:24 PDT 2020] GET

[Thu May 7 13:15:24 PDT 2020] url='https://api.dnsmadeeasy.com/V2.0/dns/managed/name?domainname=audioverse.net'

[Thu May 7 13:15:24 PDT 2020] timeout=

[Thu May 7 13:15:24 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:24 PDT 2020] ret='0'

[Thu May 7 13:15:24 PDT 2020] _domain_id='"created":1271721600000,"delegateNameServers":["ns1.audioverse.net.","ns2.audioverse.net.","ns3.audioverse.net.","ns4.audioverse.net.","ns5.audioverse.net.","ns6.audioverse.net."],"processMulti":false,"activeThirdParties":[],"folderId":6086,"gtdEnabled":false,"nameServers":[]'

[Thu May 7 13:15:24 PDT 2020] _sub_domain='_acme-challenge'

[Thu May 7 13:15:24 PDT 2020] _domain='audioverse.net'

[Thu May 7 13:15:24 PDT 2020] Getting txt records

[Thu May 7 13:15:24 PDT 2020] "created":1271721600000,"delegateNameServers":["ns1.audioverse.net.","ns2.audioverse.net.","ns3.audioverse.net.","ns4.audioverse.net.","ns5.audioverse.net.","ns6.audioverse.net."],"processMulti":false,"activeThirdParties":[],"folderId":6086,"gtdEnabled":false,"nameServers":[]/records?recordName=_acme-challenge&type=TXT

[Thu May 7 13:15:24 PDT 2020] GET

[Thu May 7 13:15:24 PDT 2020] url='https://api.dnsmadeeasy.com/V2.0/dns/managed/"created":1271721600000,"delegateNameServers":["ns1.audioverse.net.","ns2.audioverse.net.","ns3.audioverse.net.","ns4.audioverse.net.","ns5.audioverse.net.","ns6.audioverse.net."],"processMulti":false,"activeThirdParties":[],"folderId":6086,"gtdEnabled":false,"nameServers":[]/records?recordName=_acme-challenge&type=TXT'

[Thu May 7 13:15:24 PDT 2020] timeout=

[Thu May 7 13:15:24 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:25 PDT 2020] ret='0'

[Thu May 7 13:15:25 PDT 2020] Error

[Thu May 7 13:15:25 PDT 2020] Error add txt for domain:_acme-challenge.audioverse.net

[Thu May 7 13:15:25 PDT 2020] _on_issue_err

[Thu May 7 13:15:25 PDT 2020] Please check log file for more details: /root/.acme.sh/acme.sh.log

[Thu May 7 13:15:25 PDT 2020] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/4432709018/9hv-VA'

[Thu May 7 13:15:25 PDT 2020] payload='{}'

[Thu May 7 13:15:25 PDT 2020] POST

[Thu May 7 13:15:25 PDT 2020] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/4432709018/9hv-VA'

[Thu May 7 13:15:25 PDT 2020] _CURL='curl -L --silent --dump-header /root/.acme.sh/http.header -g '

[Thu May 7 13:15:25 PDT 2020] _ret='0'

[Thu May 7 13:15:25 PDT 2020] code='200'

[Thu May 7 13:15:25 PDT 2020] pid

[Thu May 7 13:15:25 PDT 2020] No need to restore nginx, skip.

[Thu May 7 13:15:25 PDT 2020] _clearupdns

[Thu May 7 13:15:25 PDT 2020] dns_entries

[Thu May 7 13:15:25 PDT 2020] skip dns.

[Thu May 7 13:15:25 PDT 2020] Return code: 1

[Thu May 7 13:15:25 PDT 2020] Error renew *.audioverse.net.

[Thu May 7 13:15:25 PDT 2020] _error_level='1'

[Thu May 7 13:15:25 PDT 2020] _set_level='2'

[Thu May 7 13:15:25 PDT 2020] The NOTIFY_HOOK is empty, just return.

[Thu May 7 13:15:25 PDT 2020] **===End cron===**
auto-comment[bot] commented 4 years ago

If this is a bug report, please upgrade to the latest code and try again: 如果有 bug, 请先更新到最新版试试: acme.sh --upgrade please also provide the log with --debug 2. 同时请提供调试输出 --debug 2 see: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh Without --debug 2 log, your issue will NEVER get replied. 没有调试输出, 你的 issue 不会得到任何解答.