Certbot Not Outputing Anything

My domain is:
task.redsserver.com
I ran this command:

certbot certonly \
  --dns-cloudflare \
  --dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini \
  -d task.redsserver.com

It produced this output:
Nothing
My web server is (include version):
nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:
Digital Ocean
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
command won't run

So, i realzied that, I just can't run any commands with certbot, at all, I have already tried reinstalling, and, that did not work. Any command I run, just, hangs indefinitely,.However, if I press "CTRL+C" then, it will dump a python traceback, depending on how long I waited, it will be longer.

this is what I got from pressing it about 5 seconds after running the command.

redkitters@redsserver:~$ certbot
^CTraceback (most recent call last):
  File "/snap/certbot/1788/bin/certbot", line 5, in <module>
    from certbot.main import main
  File "/snap/certbot/1788/lib/python3.8/site-packages/certbot/main.py", line 6, in <module>
    from certbot._internal import main as internal_main
  File "/snap/certbot/1788/lib/python3.8/site-packages/certbot/_internal/main.py", line 18, in <module>
    import josepy as jose
  File "/snap/certbot/1788/lib/python3.8/site-packages/josepy/__init__.py", line 43, in <module>
    from josepy.json_util import (
  File "/snap/certbot/1788/lib/python3.8/site-packages/josepy/json_util.py", line 14, in <module>
    from OpenSSL import crypto
  File "/snap/certbot/1788/lib/python3.8/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/snap/certbot/1788/lib/python3.8/site-packages/OpenSSL/crypto.py", line 17, in <module>
    from OpenSSL._util import (
  File "/snap/certbot/1788/lib/python3.8/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/snap/certbot/1788/lib/python3.8/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load
KeyboardInterrupt

Thank You for your time.

1 Like

Hi @LakesideMiners and welcome to the LE community forum :slight_smile:

Please list the installation procedure used for certbot.
Have you tried uninstalling and reinstalling certbot?
See: Certbot Instructions | Certbot (eff.org)

3 Likes

Does it work if you reboot?

What version of Ubuntu and what Digital Ocean region is your droplet on?

4 Likes

Could you perhaps also share a log from when you waited longer?

2 Likes

That's... expected if you press Ctrl+C (I mean, you can send a feature request to handle it in a more pretty way, but that's not an issue)

The certbot log should be in /var/log/letsencrypt/letsencrypt.log

@LakesideMiners when you say it outputs "nothing" does it actually exit, or does it just keep running leaving you to wait?

1 Like

@_az That, seemed to have fixed it. I completely forgot I could do that. Normally it would be the first thing I would try

@9peppe yeah, I was expecting the Keyboard interrupt, Was posting it to show that it was in fact doing SOMETHING, just, with no output, and, not doing anything really at all.

For anyone who might stumble upon this in the future, if it just leaves you to wait,
uninstall it
reinstall it.
Then reboot.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.