Hello there!
I just tried to add a new certificate, for a new domain, but the app crash with error: TypeError: __str__ returned non-string (type SysCallError)
the tail for the log says:
I just tried to add a new certificate, for a new domain, but the app crash with error: TypeError: __str__ returned non-string (type SysCallError)
the tail for the log says:
Traceback (most recent call last):
File "/usr/bin/certbot", line 9, in <module>
load_entry_point('certbot==1.11.0', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 1421, in main
return config.func(config, plugins)
File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 1277, in certonly
le_client = _init_le_client(config, auth, installer)
File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 659, in _init_le_client
return client.Client(config, acc, authenticator, installer, acme=acme)
File "/usr/lib/python2.7/site-packages/certbot/_internal/client.py", line 255, in __init__
acme = acme_from_config_key(config, self.account.key, self.account.regr)
File "/usr/lib/python2.7/site-packages/certbot/_internal/client.py", line 43, in acme_from_config_key
return acme_client.BackwardsCompatibleClientV2(net, key, config.server)
File "/usr/lib/python2.7/site-packages/acme/client.py", line 831, in __init__
directory = messages.Directory.from_json(net.get(server).json())
File "/usr/lib/python2.7/site-packages/acme/client.py", line 1168, in get
self._send_request('GET', url, **kwargs), content_type=content_type)
File "/usr/lib/python2.7/site-packages/acme/client.py", line 1118, in _send_request
response = self.session.request(method, url, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 486, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 598, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
timeout=timeout
File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 344, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 314, in _raise_timeout
if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6
TypeError: __str__ returned non-string (type SysCallError)
2021-06-02 10:08:23,843:ERROR:certbot._internal.log:An unexpected error occurred:
2021-06-02 10:08:23,844:ERROR:certbot._internal.log:TypeError: __str__ returned non-string (type SysCallError)
Share this post:
Responses (9)
-
Accepted Answer
ClearOS uses the following command when creating a certificate:
For this to work, the app stops apache temporarily. The app also manages the firewall for you as well, so make sure you have port 80 open when you run manually./usr/bin/certbot --standalone --max-log-backups 200 --agree-tos -n -m your_e-mail_address -d comma_separated_list_of_Primary_Domain_followed_by_Other_Domains certonly
What happens when you do that from the command line (remembering to temporarily stop the web server)? Obviously substitute your parameters in the string.
I'm afraid you are not being very helpful and never reply with the parameters used to create the certificate. Also for a fresh(ish) install for me with the 7.9 iso, it worked for me today. -
Accepted Answer
This is really strange and I am not sure what to do. My servers are all updating correctly. I have just got a block of IP addresses and put my recent 7.9 installation in 1-to-1 NAT so it has its own IP address. I've set up Let's Encrypt with a certificate for its Primary Domain and not specified any Other Domains and it has worked.
What values are you using to create the certificate? -
Accepted Answer
after a while I gave up.
reinstall the server and Voilá.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
An unexpected error occurred:
TypeError: __str__ returned non-string (type SysCallError)
Please see the logfiles in /var/log/letsencrypt for more details. -
Accepted Answer
So if it is not working from the command line either, can I suggest you post over at the Let's Encrypt Forums? We don't change the upstream packages at all. -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »