Problème Update rsync sur Yunohost 12.0.10

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.10
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

La mise à jour de rsync fait planter ma VM Yunohost 12.0.10 qui devient inaccessible.
Je dois récupérer la dernière sauvegarde de la VM faite juste avant la MAJ.
J’ai essayé plusieurs fois avec le même résultat.

Share relevant logs or error messages

https://paste.yunohost.org/raw/wetuwiqocu avant update rsync

Hi Felipe,

Do you mean, apt upgrade for rsync crashes your server? Or do I misunderstand?

This is output of the diagnosis, not of the update of rsync :wink:

Hi @wbk
Yes I mean that but I did the update by webadmin. So I had to restore the VM backup.
I can’t share you the output of the update of rsync because the server was crashed just after the update. I tried many times but never better :frowning:

So the “System update” menu in the webadmin has rsync as (one of the) packages that are available for upgrade via “Upgrade all packages”?

You mean, the whole virtual machine broke down when running apt through the webadmin. You tried multiple times, in hope of a better outcome.

You have access via SSH. Would you run sudo apt update , and sudo apt upgrade *followed by n to the question Do you want to continue? [Y/n], and post the output of these commands?

Please also post the output of sudo df -h, to get a listing of free space.

Yes

Yes

xxxxx@yyy:~$ sudo apt update
[sudo] password for xxxxx@yyy:
Hit:2 http://debian.proxad.net/debian bookworm InRelease
Get:3 http://debian.proxad.net/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://security.debian.org/debian-security bookworm-security InRelease [47.9 kB]
Get:5 https://packages.sury.org/php bookworm InRelease [7,551 B]
Get:6 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:1 https://forge.yunohost.org/debian bookworm InRelease [15.4 kB]
Get:7 http://security.debian.org/debian-security bookworm-security/main Sources [134 kB]
Get:8 http://security.debian.org/debian-security bookworm-security/main arm64 Packages [237 kB]
Get:9 https://packages.sury.org/php bookworm/main arm64 Packages [249 kB]
Get:10 https://forge.yunohost.org/debian bookworm/stable arm64 Packages [2,171 B]
Fetched 766 kB in 2s (359 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
xxxxx@yyy:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  linux-image-5.10.0-33-arm64
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  linux-image-6.1.0-30-arm64
The following packages will be upgraded:
  linux-image-arm64 linux-libc-dev moulinette php8.3 php8.3-bcmath php8.3-bz2 php8.3-cli php8.3-common php8.3-curl
  php8.3-fpm php8.3-gd php8.3-gmp php8.3-imap php8.3-intl php8.3-ldap php8.3-mbstring php8.3-mysql php8.3-opcache
  php8.3-readline php8.3-xml php8.3-zip rsync yunohost yunohost-admin
24 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 73.5 MB of archives.
After this operation, 357 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
xxxxx@yyy:~$ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.4G     0  2.4G   0% /dev
tmpfs           493M  740K  492M   1% /run
/dev/vda2       146G   49G   90G  36% /
tmpfs           2.5G     0  2.5G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/vda1       512M  6.1M  506M   2% /boot/efi
tmpfs           493M     0  493M   0% /run/user/27183

Yesterday when I tried to update, I had only rsync to update. Today I’ve many other updates.
Thanks :grinning:

Thanks for the update!

One reason for a system to crash upon a simple upgrade, is if there is no space left. That does not seem to be your problem.

rsync is, as far as I’m aware, not a standard package for Yunohost. So it is either installed as part of an app, as an unintended dependency, or it is explicitly installed.

Since you have a backup of your VM, there are two things to try out:

  1. (attempt to) remove rsync and run update.
  • $ sudo apt remove rsync
    • apt will list packages to be removed (“The following packages will be REMOVED”);
    • Press ‘n’ to cancel removal. Please post the output.
  • If the only package to be removed is rsync (not what I expect), then it is OK to continue with ‘y’.
    • in that case, run sudo apt upgrade afterwards
  1. update separate packages, except rsync
  • This is some more trouble, because I don’t know how to temporarily pin a package to a specific version by heart, so we have to do it step by step
  • Run sudo apt upgrade yunohost yunohost-admin moulinette ; this will probably pull in some dependencies to upgrade as well. Check that rsync is not included, and continue with the upgrade.
  • Run sudo apt upgrade php8.3 ; again, it will pull in dependencies (at least all the PHP-packages you listed above). Here also check that rsync is not listed, and continue the upgrade.
  • Run sudo apt upgrade linux-image-arm64; I expect this will list only the 6.1.0-30 kernel as dependency; continue.

Now, if you run apt list --upgradable, only rsync should be listed. This would be a good moment to backup your VM.

After the backup, upgrade rsync and make sure to copy the output, so you can paste it here :slight_smile:

$ sudo apt upgrade rsync

Since you already tried this a couple of times, we expect the server to crash. This time we can, hopefully, see why it crashes.

Good luck!