I tried to use the Updates section of the web interface to upgrade Yunohost.
I hit the Update button under the Applications section first. That process took a while before it failed with Unexpected Error
. Then I tried to upgrade the packages on the server by clicking on the Update button under the Packages section. This failed with the same error again.
I tried the same process again in vain. Then my server stopped serving the web-interface.
Upon inspection on the server, I realized that the web-server (nginx
) had gone down. I tried starting it, but it would not come online - it stayed in active (exited)
state with no proper logging in journalctl
.
I tried sudo apt install -f
and got surprised by the following :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
dns-root-data dnsmasq dnsmasq-base dovecot-antispam etckeeper fail2ban
glances haveged hddtemp ldap-utils libaio1 libapparmor1
libdbd-ldap-perl libdbd-mysql-perl libgmime-2.6-0 libhavege1
libluajit-5.1-2 libluajit-5.1-common libmail-spf-perl libmemcached11
libmemcachedutil2 libmilter1.0.1 libnet-dns-perl libnet-ip-perl
libnetaddr-ip-perl libnetfilter-conntrack3 libnss-ldapd
libnss-myhostname libodbc1 libopendbx1 libopendbx1-sqlite3 libopendkim9
libpam-ldapd libperl5.20 librbl1 libreadline5 libslp1
libterm-readkey-perl libunbound2 libvbr2 lua-bitop lua-event lua-expat
lua-filesystem lua-json lua-ldap lua-lpeg lua-rex-pcre lua-sec
lua-socket lua-zlib lua5.1 mariadb-client-10.0 mariadb-client-core-10.0
mariadb-common mariadb-server mariadb-server-10.0
mariadb-server-core-10.0 metronome moulinette netcat-openbsd
nginx-common nscd nslcd nslcd-utils opendkim-tools php-gettext php5-fpm
php5-ldap php5-mysql postfix-policyd-spf-perl python-bottle
python-dnspython python-gevent python-gevent-websocket python-gnupg
python-greenlet python-ldap python-miniupnpc python-pyinotify
python3-apt python3-bottle python3-crypto python3-jinja2
python3-markupsafe python3-psutil python3-pyasn1 python3-pysnmp4
rmilter rspamd slapd sudo-ldap unattended-upgrades unzip
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
ssowat yunohost yunohost-admin
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
After this operation, 18.0 MB disk space will be freed.
Do you want to continue? [Y/n]
I thought it was normal before an upgrade and continued but unfortunately, it only removed the packages and didn’t upgrade them.
(Reading database ... 99029 files and directories currently installed.)
Removing yunohost-admin (2.6.2) ...
dpkg: warning: while removing yunohost-admin, directory '/usr/share/yunohost/admin' not empty so not removed
Removing yunohost (2.6.5) ...
Removing ssowat (2.6.8) ...
So, I tried to install the packages manually myself :
sudo apt update && sudo apt upgrade --yes
sudo apt install --yes ssowat yunohost yunohost-admin
and I was thrown the following :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ssowat : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
yunohost : Depends: nginx-extras (>= 1.6.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
OK. So, then I tried to install nginx-extras
only to be thrown some more errors :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nginx-extras : Depends: perlapi-5.14.2 but it is not installable
Depends: libgd2-noxpm (>= 2.0.36~rc1~dfsg) but it is not installable or
libgd2-xpm (>= 2.0.36~rc1~dfsg) but it is not installable
Depends: libperl5.14 (>= 5.14.2) but it is not installable
Recommends: passenger (>= 5.1.8) but it is not going to be installed
Recommends: passenger (< 5.1.9) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I looked around the web and found that perlapi-5.14.2
is provided by the perl-base
package and my perl-base is already the newest version.
I couldn’t find the base package for libgd2-noxmp
or libgd2-xmp
.
If it makes any sense, I have these lines flooding my journalctl
:
modl[29743]: modl.INFO: s:33:"2006 : MySQL server has gone away"; [] []
modl[29743]: modl.INFO: delete from sessionx where active = 0 and start < :timestamp {"timestamp":"2017-09-11 01:05:07"} []
I thought it would be something with the mysql.service
, but the error keeps coming even after I started the mysql.service
(it was inactive (dead)
during my investigation).
And I don’t know what package / service modl
refers to so that I could restart it to see if it can pick up the restarted mysql.service
.
My server is completely down ATM since yunohost: command not found
.
Does someone have some idea as to how I can resolve this and get my server up and running?