My YunoHost server
Hardware: Raspberry Pi 1 model B
YunoHost version initially installed: 4.1.7.2
I have access to my server : Through SSH and webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : Yes, I applied the fix for metronome on RPi 1 as explained in installation guide.
Description of my issue
Context
Procedure executed
Hello! After proper installation of the Yunohost image (v4.1.7.2) on my Raspberry Pi 1, I attempted a system upgrade through the commands:
apt update # to accept oldstable repositories
yunhost tools upgrade --system
First, I encountered an issue with metronome but got through with the fix given in the installation guide:
2022-06-29 09:18:07,221: WARNING - Job for metronome.service failed because the control process exited with error code.
2022-06-29 09:18:07,233: WARNING - See "systemctl status metronome.service" and "journalctl -xe" for details.
2022-06-29 09:18:07,253: WARNING - invoke-rc.d: initscript metronome, action "start" failed.
2022-06-29 09:18:07,490: INFO - + ● metronome.service - LSB: Metronome XMPP Server
2022-06-29 09:18:07,502: WARNING - dpkg: error processing package metronome (--configure):
2022-06-29 09:18:07,515: INFO - + Loaded: loaded (/etc/init.d/metronome; generated)
2022-06-29 09:18:07,533: WARNING - installed metronome package post-installation script subprocess returned error exit status 1
2022-06-29 09:18:07,547: INFO - + Active: failed (Result: exit-code) since Wed 2022-06-29 09:18:07 BST; 233ms ago
2022-06-29 09:18:07,555: INFO - + Docs: man:systemd-sysv-generator(8)
2022-06-29 09:18:07,563: INFO - + Process: 18342 ExecStart=/etc/init.d/metronome start (code=exited, status=1/FAILURE)
2022-06-29 09:18:07,572: INFO - +
2022-06-29 09:18:07,583: INFO - + Jun 29 09:18:06 xxxx.fr systemd[1]: Starting LSB: Metronome XMPP Server...
2022-06-29 09:18:07,591: INFO - + Jun 29 09:18:07 xxxx.fr metronome[18342]: Starting Metronome XMPP Server: metronomeIllegal instruction
2022-06-29 09:18:07,695: INFO - + Jun 29 09:18:07 xxxx.fr metronome[18342]: failed!
2022-06-29 09:18:07,718: INFO - + Jun 29 09:18:07 xxxx.fr systemd[1]: metronome.service: Control process exited, code=exited, status=1/FAILURE
2022-06-29 09:18:07,733: INFO - + Jun 29 09:18:07 xxxx.fr systemd[1]: metronome.service: Failed with result 'exit-code'.
2022-06-29 09:18:07,753: WARNING - Errors were encountered while processing:
2022-06-29 09:18:07,770: INFO - + Jun 29 09:18:07 xxxx.fr systemd[1]: Failed to start LSB: Metronome XMPP Server.
2022-06-29 09:18:07,783: WARNING - metronome
2022-06-29 09:18:13,322: WARNING - E: Sub-process /usr/bin/dpkg returned an error code (1)
2022-06-29 09:18:18,846: WARNING - Could not upgrade packages: alsa-utils, cifs-utils, firmware-atheros, firmware-brcm80211, firmware-libertas, firmware-misc-nonfree, firmware-realtek, iputils-ping, isc-dhcp-client, isc-dhcp-common, klibc-utils, libc-l10n, libdns-export1104, libisc-export1100, libjs-underscore, libklibc, libpolkit-agent-1-0, libpolkit-backend-1-0, libpolkit-gobject-1-0, libraspberrypi-bin, libraspberrypi-dev, libraspberrypi-doc, libraspberrypi0, libsasl2-modules, locales, openssl, php-pear, pi-bluetooth, policykit-1, raspberrypi-bootloader, raspberrypi-kernel, raspberrypi-net-mods, raspberrypi-sys-mods, redis-server, redis-tools, rpi-eeprom, rpi-update, vim-common, vim-tiny, wpasupplicant, xxd
As said, applying again the fix for metronome and then running dpkg --configure -a got me through the issue.
After this fix, I ran again the command yunhost tools upgrade --system to continue the system upgrade but after a while I got an “Illegal Instruction” error:
/var/lib/dpkg/info/yunohost.postinst: line 5: 30080 Illegal instruction yunohost tools regen-conf --output-as none
Here is a more complete log:
...
(Reading database ... 55367 files and directories currently installed.)
Preparing to unpack .../archives/at_3.1.23-1_armhf.deb ...
Unpacking at (3.1.23-1) ...
Setting up at (3.1.23-1) ...
Configuration file '/etc/at.deny', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/init.d/atd', does not exist on system.
Installing new config file as you requested.
Configuration file '/etc/pam.d/atd', does not exist on system.
Installing new config file as you requested.
Created symlink /etc/systemd/system/multi-user.target.wants/atd.service → /lib/systemd/system/atd.service.
(Reading database ... 55394 files and directories currently installed.)
Preparing to unpack .../yunohost_4.3.6.3_all.deb ...
Unpacking yunohost (4.3.6.3) over (4.1.7.2) ...
dpkg: warning: unable to delete old directory '/usr/share/yunohost/yunohost-config': Directory not empty
Setting up yunohost (4.3.6.3) ...
Installing new version of config file /etc/bash_completion.d/yunohost ...
Regenerating configuration, this might take a while...
/var/lib/dpkg/info/yunohost.postinst: line 5: 30080 Illegal instruction yunohost tools regen-conf --output-as none
dpkg: error processing package yunohost (--configure):
installed yunohost package post-installation script subprocess returned error exit status 132
Errors were encountered while processing:
yunohost
E: Sub-process /usr/bin/dpkg returned an error code (1)
Done!
Blocking issue encountered
From this point, any call to yunohost tools upgrade --system returns the message Illegal Instruction and I’m unable to find a way to fix this.
Moreover, at least some other subcommands of Yunohost also throw this error (e.g. yunhost diagnosis run).
Thank you in advance for any help
EDIT #1
Here is the output of yunohost diagnosis run after I got the blocking issue: hastebin