[SOLVED] Certbot error after upgrade to freedombox 23.4

Last night my freedombox upgraded to 23.4 and today I got a stack of following errors:

Feb 27 18:04:26 freedombox /usr/share/plinth/actions/actions[184865]: Error executing action: Command '['certbot', 'certificates', '-d', 'xyz.fbx.rocks']' returned non-zero exit status 1.
                                                                      Traceback (most recent call last):
                                                                        File "/usr/share/plinth/actions/actions", line 92, in _call
                                                                          return_values = func(*arguments['args'], **arguments['kwargs'])
                                                                        File "/usr/lib/python3/dist-packages/plinth/modules/letsencrypt/privileged.py", line 122, in get_status
                                                                          domain_status = _get_status()
                                                                        File "/usr/lib/python3/dist-packages/plinth/modules/letsencrypt/privileged.py", line 91, in _get_status
                                                                        File "/usr/lib/python3/dist-packages/plinth/modules/letsencrypt/privileged.py", line 52, in _get_validity_status
                                                                          output = subprocess.check_output(['certbot', 'certificates', '-d', domain])
                                                                        File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
                                                                          return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
                                                                        File "/usr/lib/python3.9/subprocess.py", line 528, in run
                                                                          raise CalledProcessError(retcode, process.args,
                                                                      subprocess.CalledProcessError: Command '['certbot', 'certificates', '-d', 'xyz.fbx.rocks']' returned non-zero exit status 1.

Executing certbot manually gives me this error:

Traceback (most recent call last):
  File "/usr/bin/certbot", line 33, in <module>
    sys.exit(load_entry_point('certbot==1.12.0', 'console_scripts', 'certbot')())
  File "/usr/bin/certbot", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 2, in <module>
    from certbot._internal import main as internal_main
  File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 21, in <module>
    from certbot._internal import cert_manager
  File "/usr/lib/python3/dist-packages/certbot/_internal/cert_manager.py", line 16, in <module>
    from certbot._internal import storage
  File "/usr/lib/python3/dist-packages/certbot/_internal/storage.py", line 83, in <module>
    def add_time_interval(base_time, interval, textparser=parsedatetime.Calendar()):
  File "/usr/lib/python3/dist-packages/parsedatetime/__init__.py", line 270, in __init__
    self.ptc = Constants()
  File "/usr/lib/python3/dist-packages/parsedatetime/__init__.py", line 2381, in __init__
    self.locale = get_icu(self.localeID)
  File "/usr/lib/python3/dist-packages/parsedatetime/pdt_locales/icu.py", line 56, in get_icu
    result['icu'] = icu = pyicu.Locale(locale)
AttributeError: module 'icu' has no attribute 'Locale'

This seems to be the python3-icu package again that caused the last matrix-synapse issues at work again.

Does anybody have a clue what I could do here?

OK, I found the error. For some reason package python3-icu was not installed at all. A simple

sudo apt install python3-icu

did the trick for me.

1 Like