Cert Renew not working

I am running YuNoHost on a RaspberryPi at home. It’s been running good for several months. However the Certificate would not auto renew. So I went to do it manually using:

sudo yunohost domain cert-renew --no-checks

This did not work and returned:

root@YunoHost:/# sudo yunohost domain cert-renew --no-checks
Traceback (most recent call last):
File “/usr/bin/yunohost”, line 199, in
_init_moulinette(opts.debug, opts.verbose, opts.quiet)
File “/usr/bin/yunohost”, line 177, in _init_moulinette
moulinette.init(logging_config=logging, _from_source=IN_DEVEL)
File “/usr/lib/python2.7/dist-packages/moulinette/init.py”, line 62, in init
File “/usr/lib/python2.7/dist-packages/moulinette/utils/log.py”, line 46, in configure_logging
from logging.config import dictConfig
File “/usr/lib/python2.7/logging/config.py”, line 46, in
from SocketServer import ThreadingTCPServer, StreamRequestHandler
ValueError: bad marshal data (unknown type code)

I have also discovered that System Update is not working as well. Shows this:

Unable to check ‘nginx -t’, exception: Command ‘nginx -t’ returned non-zero exit status 1

Yunohost encountered an internal error :confused:
Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.

The following information might be useful for the person helping you :


PUT /update {“locale”:“en”}


Traceback (most recent call last): File “/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py”, line 406, in process ret = self.actionsmap.process(arguments, timeout=30, route=_route) File “/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py”, line 498, in process return func(**arguments) File “/usr/lib/moulinette/yunohost/tools.py”, line 445, in tools_update app_fetchlist() File “/usr/lib/moulinette/yunohost/app.py”, line 131, in app_fetchlist import requests # lazy loading this module for performance reasons File “/usr/lib/python2.7/dist-packages/requests/init.py”, line 80, in from . import utils File “/usr/lib/python2.7/dist-packages/requests/utils.py”, line 24, in from . import certs ImportError: cannot import name certs

This all means nothing to me … any help in resolving this would be appreciated!



Anybody have anything on this Certificate Renew Issue?

Uuuuh those errors looks really weird … I see something about nginx -t

Can you try running manually nginx -t (or sudo nginx -t if you are logged as admin)


This is what comes up:

Can’t load ‘/usr/lib/arm-linux-gnueabihf/perl5/5.20/auto/nginx/nginx.so’ for module nginx: /usr/lib/arm-linux-gnueabihf/perl5/5.20/auto/nginx/nginx.so: cannot open shared object file: No such file or directory at /usr/share/perl/5.20/XSLoader.pm line 93.
at /usr/lib/arm-linux-gnueabihf/perl5/5.20/nginx.pm line 56.
Compilation failed in require.
BEGIN failed–compilation aborted.
nginx: [alert] perl_parse() failed: 255
nginx: configuration file /etc/nginx/nginx.conf test failed

Hmmmokay, this looks weirder and weirder - I dunno how you could have end up in that situation. To me it looks like a lot of low-level stuff are in a weird state (like, somehow a lot of libraries disappeared ?)

Do you remember having done something in particular before this happened (e.g. even upgrading your system for instance ?)

I did not do anything. My Lets Encrypt certificate was supposed to autorenew … but could not. That is when I actually opened my server to try to do it manually and this is what I find.