upgrade / migration issue [Solved]

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

manifesto
Growing Hen
Posts: 192
Joined: Mon Jul 19, 2010 22:21

upgrade / migration issue [Solved]

Post by manifesto » Sat Mar 28, 2020 9:10


[edit by Sabayonino]
This solution should fix the issue for the most older installations


Hi,
I did a fresh install and then straight run equo upgrade and it fails wih :

Code: Select all

    ## Cleaning: sys-devel/libtool-2.4.6-r6
╠  +++ >>>  (12/931) sys-apps/sabayon-lib-migration-check-1
╠    ## Unpacking: sys-apps:sabayon-lib-migration-check-1.3e027823a614e991f693c4e0ca61a07c7b593871~1.tbz2
╠    ## Package phase: setup
 * Profile migration was supposed to have been done by sys-apps/sabayon-lib-migration
 * but it is not the case.
 * 
 * If it didn't get installed, install it now as THE FIRST AND ONLY PACKAGE.
 * If it tried to install but failed, refer to information printed by that package.
 * 
 * Stopping now. DO NOT CONTINUE THE UPGRADE UNLESS sys-apps/sabayon-lib-migration IS INSTALLED WITHOUT ERROR.
 * OTHERWISE YOUR SYSTEM WILL BE BROKEN.
 * 
 * ! The process has been stopped. Press Control+C once or twice
 * ! and make sure the package manager does not continue, and see the error above.
It leave the system like :

Code: Select all

[email protected] ~ $ ls -lad /usr/lib* /lib*
lrwxrwxrwx   1 root root      5 11月  5  2018 /lib -> lib64
drwxr-xr-x   3 root root   4096  3月 22  2019 /lib32
drwxr-xr-x  15 root root  12288  3月 22  2019 /lib64
lrwxrwxrwx   1 root root      5 11月  5  2018 /usr/lib -> lib64
drwxr-xr-x  59 root root  90112  3月 28 15:53 /usr/lib32
drwxr-xr-x 149 root root 155648  3月 28 17:39 /usr/lib64
drwxr-xr-x  20 root root   4096  3月 11  2019 /usr/libexec
However :
x1sabayon ~ # equo query list installed -qv | while read pkg; do qlist -eC "$pkg" | grep -q -E "^/lib32/|^/usr/lib32/" && echo "$pkg"; done
=> nothing

I also had the same issue trying to upgrade a year old version.
I had also the same issue on a my main machine but it looks like i manage to solve it by using the qlist, then remove old packages.
However it breaks equo which is a symlink to ../lib/python-exec/python-exec2, this guy is now in lib64 and thus i did a dirty link from lib to lib64.
so 3 failures ...

My main concern is this fresh install + upgrade which fails.
I just download the last iso which looks pretty old build :

Code: Select all

[email protected] ~ $ more /etc/sabayon-release 
Sabayon Linux amd64 19.01
That's my first real upgrade issue after almost 10 years of use.
I had to renew my laptop hardware before needed to do a reinstall or whatever bad ..

How to fix this upgrade without having to check all this links/dirs manually ?
(I did try the unsymlink without luck)


[edit by Sabayonino]
This solution should fix the issue for the most older installations

greyghost99
Baby Hen
Posts: 14
Joined: Mon Sep 23, 2019 20:29

Re: upgrade / migration issue

Post by greyghost99 » Tue Mar 31, 2020 6:47

I think I have pretty much the same issue here (sorry I just opened up another thread on this in the equo area, I didn't see this beofre). Are there any ideas how to do a safe upgrade? I'm also a happy Sabayon user for more than 10 years, but this one looks really bad.

User avatar
fiorello
Sagely Hen
Posts: 1498
Joined: Mon Aug 13, 2007 14:06
Location: Bourg En Bresse - France

Re: upgrade / migration issue

Post by fiorello » Sat Apr 04, 2020 7:37

Which kernel are you using?

viewtopic.php?f=90&t=35095&start=70
ASRock-Z68 Professional Gen3 *_* Intel(R) i7-2600K CPU @ 3.40GHz *_* MSI GeForce® GTX 1050 Ti 4GT OC *_* AR5416 Wireless Network {AR5008802.11(a) bgn} *_* Mémoire totale 8 Gio *_* linux-4.19.0 *_* Sabayon KDE-5 *_*
Image
# && fotoabc.it &&

greyghost99
Baby Hen
Posts: 14
Joined: Mon Sep 23, 2019 20:29

Re: upgrade / migration issue

Post by greyghost99 » Sun Apr 05, 2020 9:52

4.19 it was, I think (meahwhile I reinstalled because I needed the device). The link is not really that useful to me due to my lacking capabilities in Italian.

manifesto
Growing Hen
Posts: 192
Joined: Mon Jul 19, 2010 22:21

Re: upgrade / migration issue

Post by manifesto » Mon Apr 06, 2020 7:15

Actually the issue I had was probably the package dependencies and order of the operation.
I manage to do the migration by first forcing migration and then do a full update.
I would be like :

Code: Select all

equo install app-misc/symlinks-1.4-r3 app-portage/unsymlink-lib-17 -a
equo install sys-apps/sabayon-lib-migration-1 sys-apps/sabayon-lib-migration-check-1 -a
The first line should not trigger to much depencies and if the second jump to upgrade hundreds of packages then run it with the nodeps option.
You should see a message concerning lib migration. Once this is done you can run the standard upgrade.

greyghost99
Baby Hen
Posts: 14
Joined: Mon Sep 23, 2019 20:29

Re: upgrade / migration issue

Post by greyghost99 » Mon Apr 06, 2020 20:49

That's something I also already thought about (other updates being the root cause), especially after you wrote you tested a fresh insall (with the 19.3 release, I guess?).
I have some more systems to try (and hopefully not break) that are in various upgrade states between 19.3 and three weeks ago (a couple of them at something like last autumn). I'll try what you suggested. Are there any ideas what packages cause the actual breakage? Would it be possible (or maybe even fool-proof, so it could be suggested for any upgrade) to run both step with --nodeps before upgrading anything else?

manifesto
Growing Hen
Posts: 192
Joined: Mon Jul 19, 2010 22:21

Re: upgrade / migration issue

Post by manifesto » Sun Apr 12, 2020 9:00

The breakage is when library migration do not end properly. If the migration package install goes fine it should be ok.

greyghost99
Baby Hen
Posts: 14
Joined: Mon Sep 23, 2019 20:29

Re: upgrade / migration issue

Post by greyghost99 » Fri May 01, 2020 10:12

I recently upgraded another system (from something like October 2019), and that worked fine. I took the "do migration first" approach here. That triggered lots of other updates, too, and the link migration itself took quite some time, but it finished as expected this time.

greyghost99
Baby Hen
Posts: 14
Joined: Mon Sep 23, 2019 20:29

Re: upgrade / migration issue

Post by greyghost99 » Sun May 17, 2020 8:50

Another system upgraded without any issue. Looks like the problem in the first place has been a one-off issue. For whatever reason.

mamaq
Baby Hen
Posts: 9
Joined: Sun Mar 30, 2014 14:34

Re: upgrade / migration issue

Post by mamaq » Sat May 23, 2020 18:54

My upgrade stuck, due to a full disk. I cleaned the disk, but cannot recover the migration process.

Code: Select all

 equo install sys-apps/sabayon-lib-migration-1 sys-apps/sabayon-lib-migration-check -a --nodep 

results in the following message

Code: Select all


 ╠    ## Package phase: postinstall
lrwxrwxrwx   1 root root      5 Aug  7  2013 /lib -> lib64
drwxr-xr-x  13 root root   4096 May 23 16:54 /lib.new
drwxr-xr-x   3 root root   4096 Nov 17  2019 /lib32
drwxr-xr-x  19 root root   8192 Nov 17  2019 /lib64
lrwxrwxrwx   1 root root      5 Aug  7  2013 /usr/lib -> lib64
drwxr-xr-x 111 root root  86016 May 23 16:54 /usr/lib.new
drwxr-xr-x  84 root root  94208 May 23 17:04 /usr/lib32
drwxr-xr-x 264 root root 188416 May 23 18:02 /usr/lib64
drwxr-xr-x  36 root root   8192 May 23 17:02 /usr/libexec
 * *******************
 * 
 * migration of lib* will be performed
 * do not interrupt this process
 * 
 * *******************
 * !!!! calling unsymlink-lib --analyze
/lib.new exists! do you need to remove failed migration?
 * The program failed.
 * It is possible that at least 32 bit binaries will not work,
 * and the system will not boot.
 * Read this for help:
 * - https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html
 * - https://github.com/mgorny/unsymlink-lib
 * and if unsure, reach for help in Sabayon's help channels.
 * 
 * AT THE VERY LEAST, CHECK THAT THERE ARE DIRECTORES WITH CONTENT:
 * /lib /usr/lib /lib64 /usr/lib64
 * Sorry, and please report it. :(
 * 
 * ! The process has been stopped. Press Control+C once or twice
 * ! and make sure the package manager does not continue, and see the error above.
 
I also tried to rollback the process by calling

Code: Select all

unsymlink-lib
with --rollback or --force-rollback, but had no success.

Code: Select all

 ~ # unsymlink-lib --analyze
/lib.new exists! do you need to remove failed migration?
 ~ # unsymlink-lib --migrate
/lib.new exists! do you need to remove failed migration?
 ~ # unsymlink-lib --rollback
/lib is a symlink to lib64! did the migration succeed?
 ~ # unsymlink-lib --finish
/lib is a symlink to lib64! did the migration succeed?
 ~ # unsymlink-lib --force-rollback
State file could not be loaded. Did you run --analyze?
 ~ # unsymlink-lib --resume-finish
State file could not be loaded. Did you run --analyze?
Is there a possibility to clean up the directories and restart the migration process? Or did I miss something important?

Post Reply