Get an error trying to renew (list index out of range) #368

Closed
opened 2025-12-29 01:23:48 +01:00 by adam · 2 comments
Owner

Originally created by @simkin on GitHub (Aug 6, 2018).

See the output below, somehow the renewal fails. Would appreciate some input how to fix this

Global API Key (cloudflare)

+ Checking domain name(s) of existing cert... unchanged.
+ Checking expire date of existing cert...
+ Valid till Sep  3 09:21:56 2018 GMT Certificate will expire
(Less than 30 days). Renewing!
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting new certificate order from CA...
+ Received 1 authorizations URLs from the CA
+ Handling authorization for domain.tld
+ 1 pending challenge(s)
+ Deploying challenge tokens...
+ CloudFlare hook executing: deploy_challenge
+ Creating TXT record: domain.tld => ouuWOE1aylFr_vHvPrdQkFVukrXvXTOQpxxxxxxxxx
+ Challenge: mxAGSLEWLXvkVJeG2FKPSLxSKabwTDy-xxxxxxxxx
Traceback (most recent call last):
 File "/opt/dehydrated/hooks/cloudflare/hook.py", line 206, in <module>
   main(sys.argv[1:])
 File "/opt/dehydrated/hooks/cloudflare/hook.py", line 203, in main
   ops[argv[0]](argv[1:])
 File "/opt/dehydrated/hooks/cloudflare/hook.py", line 167, in create_all_txt_records
   create_txt_record(args[i:i+X])
 File "/opt/dehydrated/hooks/cloudflare/hook.py", line 105, in create_txt_record
   zone_id = _get_zone_id(domain)
 File "/opt/dehydrated/hooks/cloudflare/hook.py", line 83, in _get_zone_id
   return r.json()['result'][0]['id']
IndexError: list index out of range

Origin CA Key (cloudflare)

 + CloudFlare hook executing: startup_hook
Processing *.domain.tld
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Sep  3 09:21:56 2018 GMT Certificate will expire
(Less than 30 days). Renewing!
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 1 authorizations URLs from the CA
 + Handling authorization for domain.tld
 + 1 pending challenge(s)
 + Deploying challenge tokens...
 + CloudFlare hook executing: deploy_challenge
 + Creating TXT record: vault13.eu => ouuWOE1aylFr_vHvPrdQkFVukrXvXTOQp1FJxxxxx
 + Challenge: mxAGSLEWLXvkVJeG2FKPSLxSKabwTDy-M47DWxxxxx
Traceback (most recent call last):
  File "/opt/dehydrated/hooks/cloudflare/hook.py", line 206, in <module>
    main(sys.argv[1:])
  File "/opt/dehydrated/hooks/cloudflare/hook.py", line 203, in main
    ops[argv[0]](argv[1:])
  File "/opt/dehydrated/hooks/cloudflare/hook.py", line 167, in create_all_txt_records
    create_txt_record(args[i:i+X])
  File "/opt/dehydrated/hooks/cloudflare/hook.py", line 105, in create_txt_record
    zone_id = _get_zone_id(domain)
  File "/opt/dehydrated/hooks/cloudflare/hook.py", line 82, in _get_zone_id
    r.raise_for_status()
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.cloudflare.com/client/v4/zones?name=eu
Originally created by @simkin on GitHub (Aug 6, 2018). See the output below, somehow the renewal fails. Would appreciate some input how to fix this Global API Key (cloudflare) ``` + Checking domain name(s) of existing cert... unchanged. + Checking expire date of existing cert... + Valid till Sep 3 09:21:56 2018 GMT Certificate will expire (Less than 30 days). Renewing! + Signing domains... + Generating private key... + Generating signing request... + Requesting new certificate order from CA... + Received 1 authorizations URLs from the CA + Handling authorization for domain.tld + 1 pending challenge(s) + Deploying challenge tokens... + CloudFlare hook executing: deploy_challenge + Creating TXT record: domain.tld => ouuWOE1aylFr_vHvPrdQkFVukrXvXTOQpxxxxxxxxx + Challenge: mxAGSLEWLXvkVJeG2FKPSLxSKabwTDy-xxxxxxxxx Traceback (most recent call last): File "/opt/dehydrated/hooks/cloudflare/hook.py", line 206, in <module> main(sys.argv[1:]) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 203, in main ops[argv[0]](argv[1:]) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 167, in create_all_txt_records create_txt_record(args[i:i+X]) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 105, in create_txt_record zone_id = _get_zone_id(domain) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 83, in _get_zone_id return r.json()['result'][0]['id'] IndexError: list index out of range ``` Origin CA Key (cloudflare) ``` + CloudFlare hook executing: startup_hook Processing *.domain.tld + Checking domain name(s) of existing cert... unchanged. + Checking expire date of existing cert... + Valid till Sep 3 09:21:56 2018 GMT Certificate will expire (Less than 30 days). Renewing! + Signing domains... + Generating private key... + Generating signing request... + Requesting new certificate order from CA... + Received 1 authorizations URLs from the CA + Handling authorization for domain.tld + 1 pending challenge(s) + Deploying challenge tokens... + CloudFlare hook executing: deploy_challenge + Creating TXT record: vault13.eu => ouuWOE1aylFr_vHvPrdQkFVukrXvXTOQp1FJxxxxx + Challenge: mxAGSLEWLXvkVJeG2FKPSLxSKabwTDy-M47DWxxxxx Traceback (most recent call last): File "/opt/dehydrated/hooks/cloudflare/hook.py", line 206, in <module> main(sys.argv[1:]) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 203, in main ops[argv[0]](argv[1:]) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 167, in create_all_txt_records create_txt_record(args[i:i+X]) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 105, in create_txt_record zone_id = _get_zone_id(domain) File "/opt/dehydrated/hooks/cloudflare/hook.py", line 82, in _get_zone_id r.raise_for_status() File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 935, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.cloudflare.com/client/v4/zones?name=eu ```
adam closed this issue 2025-12-29 01:23:48 +01:00
Author
Owner

@pastukhov commented on GitHub (Aug 6, 2018):

Looks like cloudflare hook does something wrong.

@pastukhov commented on GitHub (Aug 6, 2018): Looks like cloudflare hook does something wrong.
Author
Owner

@lukas2511 commented on GitHub (Aug 6, 2018):

This is an issue with your hook-script, not with dehydrated itself.

@lukas2511 commented on GitHub (Aug 6, 2018): This is an issue with your hook-script, not with dehydrated itself.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#368