question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError after run

See original GitHub issue

Since I’ve upgraded to version 3.9.1 I encounter an error that hangs dnsrobocert silently. I run the dockerized version. Reverted to version 3.9.0, tomorrow I’ll update this issue with the result of the next run.

Here the full log

2021-05-12 20:59:34 d9a9170daea1 dnsrobocert.core.main[1] INFO Exiting DNSroboCert.
2021-05-12 20:59:37 d9a9170daea1 dnsrobocert.core.main[1] INFO Starting DNSroboCert.
2021-05-12 20:59:37 d9a9170daea1 dnsrobocert.core.main[1] INFO Registering ACME account if needed.
2021-05-12 20:59:37 d9a9170daea1 dnsrobocert.core.utils[1] INFO Launching command: /usr/local/bin/python -m dnsrobocert.core.certbot register -n --user-agent-comment DNSroboCert/3.9.1 --config-dir /etc/letsencrypt --work-dir /etc/letsencrypt/workdir --logs-dir /etc/letsencrypt/logs -m ***@***.com --agree-tos --server https://acme-v02.api.letsencrypt.org/directory
----------
Saving debug log to /etc/letsencrypt/logs/letsencrypt.log
There is an existing account; registration of a duplicate account with this command is currently unsupported.
----------
2021-05-12 20:59:39 d9a9170daea1 dnsrobocert.core.main[1] INFO Creating missing certificates if needed (~1min for each)
2021-05-12 20:59:39 d9a9170daea1 dnsrobocert.core.main[1] INFO Handling the certificate for domain(s): ******
2021-05-12 20:59:39 d9a9170daea1 dnsrobocert.core.utils[1] INFO Launching command: /usr/local/bin/python -m dnsrobocert.core.certbot certonly -n --user-agent-comment DNSroboCert/3.9.1 --config-dir /etc/letsencrypt --work-dir /etc/letsencrypt/workdir --logs-dir /etc/letsencrypt/logs --manual --preferred-challenges=dns --manual-auth-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t auth -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"******\"" --manual-cleanup-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t cleanup -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"******\"" --expand --deploy-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t deploy -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"******\"" --server https://acme-v02.api.letsencrypt.org/directory --cert-name ****** -d ******
----------
Saving debug log to /etc/letsencrypt/logs/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate for ******
Performing the following challenges:
dns-01 challenge for ******
Running manual-auth-hook command: /usr/local/bin/python -m dnsrobocert.core.hooks -t auth -c "/tmp/tmp8yauys6w/dnsrobocert-runtime.yml" -l "******"
Output from manual-auth-hook command python:
Executing auth hook for domain ******, lineage ******.
Wait 30 seconds to let all challenges be propagated: ['_acme-challenge.******']

Waiting for verification...
Cleaning up challenges
Running manual-cleanup-hook command: /usr/local/bin/python -m dnsrobocert.core.hooks -t cleanup -c "/tmp/tmp8yauys6w/dnsrobocert-runtime.yml" -l "******"
Output from manual-cleanup-hook command python:
Executing cleanup hook for domain ******, lineage ******.

Running deploy-hook command: /usr/local/bin/python -m dnsrobocert.core.hooks -t deploy -c "/tmp/tmp8yauys6w/dnsrobocert-runtime.yml" -l "******"
IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/******/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/******/privkey.pem
   Your certificate will expire on ******. To obtain a new or
   tweaked version of this certificate in the future, simply run
   certbot again. To non-interactively renew *all* of your
   certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

----------
2021-05-12 21:00:24 d9a9170daea1 dnsrobocert.core.main[1] INFO Handling the certificate for domain(s): ******
2021-05-12 21:00:24 d9a9170daea1 dnsrobocert.core.utils[1] INFO Launching command: /usr/local/bin/python -m dnsrobocert.core.certbot certonly -n --user-agent-comment DNSroboCert/3.9.1 --config-dir /etc/letsencrypt --work-dir /etc/letsencrypt/workdir --logs-dir /etc/letsencrypt/logs --manual --preferred-challenges=dns --manual-auth-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t auth -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"***\"" --manual-cleanup-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t cleanup -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"***\"" --expand --deploy-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t deploy -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"***\"" --server https://acme-v02.api.letsencrypt.org/directory --cert-name *** -d ******
----------
Saving debug log to /etc/letsencrypt/logs/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Cert not yet due for renewal
Keeping the existing certificate

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate not yet due for renewal; no action taken.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
----------
2021-05-12 21:00:26 d9a9170daea1 dnsrobocert.core.main[1] INFO Handling the certificate for domain(s): ******
2021-05-12 21:00:26 d9a9170daea1 dnsrobocert.core.utils[1] INFO Launching command: /usr/local/bin/python -m dnsrobocert.core.certbot certonly -n --user-agent-comment DNSroboCert/3.9.1 --config-dir /etc/letsencrypt --work-dir /etc/letsencrypt/workdir --logs-dir /etc/letsencrypt/logs --manual --preferred-challenges=dns --manual-auth-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t auth -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"***\"" --manual-cleanup-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t cleanup -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"***\"" --expand --deploy-hook "/usr/local/bin/python -m dnsrobocert.core.hooks -t deploy -c \"/tmp/tmp8yauys6w/dnsrobocert-runtime.yml\" -l \"***\"" --server https://acme-v02.api.letsencrypt.org/directory --cert-name *** -d ******
----------
Saving debug log to /etc/letsencrypt/logs/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Cert not yet due for renewal
Keeping the existing certificate

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate not yet due for renewal; no action taken.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
----------
2021-05-12 21:00:28 d9a9170daea1 dnsrobocert.core.main[1] INFO Revoke and delete certificates if needed
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/site-packages/dnsrobocert/core/background.py", line 47, in run
    schedule.run_pending()
  File "/usr/local/lib/python3.9/site-packages/schedule/__init__.py", line 563, in run_pending
    default_scheduler.run_pending()
  File "/usr/local/lib/python3.9/site-packages/schedule/__init__.py", line 94, in run_pending
    self._run_job(job)
  File "/usr/local/lib/python3.9/site-packages/schedule/__init__.py", line 147, in _run_job
    ret = job.run()
  File "/usr/local/lib/python3.9/site-packages/schedule/__init__.py", line 466, in run
    ret = self.job_func()
TypeError: _renew_job() missing 1 required positional argument: 'stop_thread'

Here my config.yaml

draft: false
acme:
  email_account: *****@*****.com
  staging: false
  certs_permissions:
    files_mode: 0777
    dirs_mode: 0777
profiles:
- name: MyProfile
  provider: ****
  provider_options:
    auth_token: **************************
certificates:
- name: ***
  domains:
  - ****
  profile: MyProfile
  force_renew: false
  deploy_hook: 'cp $(realpath /etc/letsencrypt/live/****/cert.pem) $(realpath /etc/****/cert.pem);cp $(realpath /etc/letsencrypt/live/****/chain.pem) $(realpath /etc/****/chain.pem);cp $(realpath /etc/letsencrypt/live/****/fullchain.pem) $(realpath /etc/****/fullchain.pem);cp $(realpath /etc/letsencrypt/live/****/privkey.pem) $(realpath /etc/****/privkey.pem)'
  domains:
  - ****
  profile: MyProfile
  force_renew: false
  deploy_hook: 'cp $(realpath /etc/letsencrypt/live/****/cert.pem) $(realpath /etc/****/cert.pem);cp $(realpath /etc/letsencrypt/live/****/chain.pem) $(realpath /etc/****/chain.pem);cp $(realpath /etc/letsencrypt/live/****/fullchain.pem) $(realpath /etc/****/fullchain.pem);cp $(realpath /etc/letsencrypt/live/****/privkey.pem) $(realpath /etc/****/privkey.pem)'
  domains:
  - ****
  profile: MyProfile
  force_renew: false
  deploy_hook: 'cp $(realpath /etc/letsencrypt/live/****/cert.pem) $(realpath /etc/****/cert.pem);cp $(realpath /etc/letsencrypt/live/****/chain.pem) $(realpath /etc/****/chain.pem);cp $(realpath /etc/letsencrypt/live/****/fullchain.pem) $(realpath /etc/****/fullchain.pem);cp $(realpath /etc/letsencrypt/live/****/privkey.pem) $(realpath /etc/****/privkey.pem)'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
adferrandcommented, May 18, 2021

Hello! I will look at this problem as soon as possible, most likely this week end.

1reaction
adferrandcommented, Aug 2, 2021

Indeed, it is the problem. Thanks a lot @Vertganti. @JanickGers85 I am fixing the code and preparing a new release to fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError - JavaScript - MDN Web Docs
The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of ......
Read more >
TypeError when trying to call functions in run - Stack Overflow
I'm trying to make a program that reads a csv file and calculates using that data. I have my csv_reader function and my...
Read more >
Getting TypeError: $A.run is not a function after Summer 16 ...
I've had that happen in a few scenarios: I need to refresh the page to get the latest component code to load in...
Read more >
TypeError when run 0.86.3 · Issue #4910 · returntocorp/semgrep
I caught a blocking error in 0.86.3 CI: https://github.com/athenianco/athenian-api/runs/5718170879?check_suite_focus=true Run semgrep ...
Read more >
Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found