Forums

×

Warning

JUser: :_load: Unable to load user with ID: 187411
Medium
Offline
Resolved
0 votes
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:
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)
Wednesday, June 02 2021, 04:47 PM
Share this post:
Responses (9)
  • Accepted Answer

    Tuesday, June 08 2021, 03:00 PM - #Permalink
    Resolved
    0 votes
    ClearOS uses the following command when creating a certificate:
    /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
    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.

    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.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 08 2021, 02:46 PM - #Permalink
    Resolved
    0 votes
    thank you Nick, I really like the app, but seems not working for now, (clean install, 1 domain, paid subscription COS)
    I will try some reading, but seems broken to me, and I really don't like the workaround (certbot +cron for renew the certificate and reload apache)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 08 2021, 02:37 PM - #Permalink
    Resolved
    0 votes
    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?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 08 2021, 02:27 PM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 02 2021, 08:24 PM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 02 2021, 08:10 PM - #Permalink
    Resolved
    0 votes
    yeah, my others servers are working fine(same email), actually this one has been renewing other two certificates for 2 years now.
    also tried
    cerbot certonly --webroot -w
    no luck.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 02 2021, 07:49 PM - #Permalink
    Resolved
    0 votes
    OK, so what parameters are you using for E-mail address, Primary Domain and Other Domains? Have you tried to reproduce.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 02 2021, 07:05 PM - #Permalink
    Resolved
    0 votes
    No, Everything came from official repos. this is COS home, by the way.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 02 2021, 05:16 PM - #Permalink
    Resolved
    0 votes
    Strange. The upstream certbot and python2-certbot have not updated since January. I have successfully created new certificates in the last month. What parameters were you using?

    Have you installed any python packages with another package manager such as pip?
    The reply is currently minimized Show
Your Reply