Migration failed

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 11.3.0.2
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I was running the migration from 11 to 12

Describe your issue

The migration got as far as 99.9% and then threw up the following message:

Warning: E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: grub-pc: Running grub-install ...
Warning: /dev/disk/by-id/ata-ACSC4M1TS25_986090300004 does not exist, so cannot grub-install to it!
Warning: You must correct your GRUB install devices before proceeding:
Warning: 
Warning:   DEBIAN_FRONTEND=dialog dpkg --configure grub-pc
Warning:   dpkg --configure -a
Warning: dpkg: error processing package grub-pc (--configure):
Warning:  installed grub-pc package post-installation script subprocess returned error exit status 1
Warning: Errors were encountered while processing:
Warning:  grub-pc
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command 'aptitude full-upgrade --show-why -o Dpkg::Options::='--force-confold''
Info: The operation 'Run migrations' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241224-152012-tools_migrations_migrate_forward' to get help

I tried running the command but it said my username wasn’t in the sudoers list, which it has been until now.

All my services seem reachable - the nextcloud is still working and my website is up, but that error message has made me very nervous.

I would be very grateful for an explanation.

Share relevant logs or error messages

https://paste.yunohost.org/raw/ikepudozif

https://paste.yunohost.org/pewopahija

I think I’ve worked out what I’ve done wrong.

I set up my server originally with a 256 gig disk. I dd’d that disk onto a 4 TB disk. So, I need to find the ID of the new disk and put that into grub.

The trouble is, I’ve no idea how to start.

1 Like
$:~/$ cd /dev/disk/by-uuid/
$:/dev/disk/by-uuid$ ls -la
total 0
drwxr-xr-x 2 root root  60 Dec  4 13:49 .
drwxr-xr-x 5 root root 100 Dec  4 13:49 ..
lrwxrwxrwx 1 root root  11 Dec  4 13:49 7b315feb-4ad0-4f2b-9639-d62f1566ec25 -> ../../xvda1

(so, go to /dev/disk/by-uuid/ and find the likely only UUID listed).

1 Like

thank you @orhtej2

I’ve got that. Now I need to try to restart the migration process to correct the errors. I don’t suppose you know how I’d go about that, do you?

I have not access to the Yunohost portal although several of my apps are still working, including Nextcloud.

Update! I don’t normally live at the house where my server is located as I have caring duties at another location. I was able to get on to the same local network as the server this morning and access the yunohost admin UI. It has allowed me to rerun the migration, apparently successfully. I am able to access the server admin page via the internet again. I’m just running the post-migration python thingies with bated breath, but feeling a lot better about things.Thanks for your help.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.