upgrade / migration issue [Solved]

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

Moderator: Moderators

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

Re: upgrade / migration issue

Post by greyghost99 » Wed Jul 01, 2020 16:49

Now I got another system where the update stalled on installing sabayon-lib-migration-1. Again, this was a system that didn't see updates for a couple of months, but well... again, the system is completely hosed, panics after killing the sleeping process (see below) and trying to continue migration, panics again during reboot.
Another data point: I looked into the process table (ps aux) this time and found a task of "sleep 200d" sitting in the background waiting to finish. Somehow equo must have spawned this, but I certainly didn't want to wait until it finished naturally. So I'd also be interested in restarting a stalled/failed migration process...

I'd really like to know what is going wrong here and how to prevent it. Reinstalling systems is certainly doable, but not really too much fun...


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

Re: upgrade / migration issue

Post by greyghost99 » Sun Jul 05, 2020 15:46

Um, sounds interesting, but the problems there still look quite diffrerent from mine. Certainly, I upgraded to latest portage, equo, entropy (using --nodeps) before trying the migration step. equo always advised to do that first. Maybe that wasn't a good idea? Why would/do I need a portage from before the migration to prevent issues like the ones I saw?

User avatar
tazinblack
Baby Hen
Posts: 10
Joined: Wed Jul 19, 2017 8:37

Re: upgrade / migration issue

Post by tazinblack » Fri Jul 24, 2020 8:45

same issue here.
My system was also last updated some months ago.
As far as I see the problems looks to start here:
+++ >>> (5/647) sys-apps/sabayon-lib-migration-1
╠ ## Entpacke: sys-apps:sabayon-lib-migration-1.6af6cdb177132f2c8963216f8b5733b9cd77442c~2.tbz2
╠ ## Installiere Paket: sys-apps/sabayon-lib-migration-1
╠ ## [Migrate lib* as per default/linux/amd64/17.1/desktop]
╠ ## Updating installed packages repository: sys-apps/sabayon-lib-migration-1
╠ ## Package phase: postinstall
lrwxrwxrwx 1 root root 5 Nov 5 2018 /lib -> lib64
drwxr-xr-x 1 root root 1518 Jan 23 2020 /lib32
drwxr-xr-x 1 root root 5770 Mär 2 07:25 /lib64
lrwxrwxrwx 1 root root 5 Nov 4 2018 /usr/lib -> lib64
drwxr-xr-x 1 root root 64002 Mär 2 07:26 /usr/lib32
drwxr-xr-x 1 root root 116168 Jul 24 10:33 /usr/lib64
drwxr-xr-x 1 root root 3040 Mär 2 07:23 /usr/libexec
* *******************
*
* migration of lib* will be performed
* do not interrupt this process
*
* *******************
* !!!! calling unsymlink-lib --analyze
Traceback (most recent call last):
File "/usr/bin/unsymlink-lib", line 827, in <module>
main()
File "/usr/bin/unsymlink-lib", line 717, in main
m.analyze(usr_merge, prefixes)
File "/usr/bin/unsymlink-lib", line 167, in analyze
from portage import create_trees, _encodings
ImportError: No module named portage
* The program failed.
Maybe the main reson is this line:
ImportError: No module named portage
I tried to upgrade entropy, equo and portage with --nodeps first. But run again in this error.
Fortunately, since this is a virtual maschine, I made a snapshot before starting the upgrade so I can go back and try different things.

My idea is, that unsymlink-lib tries to use some kind of routine, which isn't available at my old libraries. So if we could find out which this dependency is, we can probably update this first by hand. But therefore I'm afraid my knowledge in python isn't deep enough.

So if anybody has an idea what else to try on that "unupdated" system to find out what's going wrong, please let me know.
Maybe we can so help others not to run in the same issue and break their system.
Gruß
tazinblack

User avatar
tazinblack
Baby Hen
Posts: 10
Joined: Wed Jul 19, 2017 8:37

Re: upgrade / migration issue

Post by tazinblack » Fri Jul 24, 2020 11:25

Hey, looks like I managed to sail around these cliffs.
So here is what I did:

1. Install recent version of unsymlink-lib without dependencies:

Code: Select all

equo install -a =app-portage/unsymlink-lib-17-r1 --nodeps
2. Look inside the script:

Code: Select all

vi /usr/bin/unsymlink-lib
Since I cound not find the problem, I remembered that I have more than one python versions installed.
The first line in the script looked like this:

Code: Select all

#!/usr/bin/env python2
3. It means the older python 2.7 version is used. Since I supposed that some include or library was missing in python I just tried the other version of python and modified the line like this to use python3 instead:

Code: Select all

#!/usr/bin/env python3
4. After that I started the update the regular way:

Code: Select all

equo upgrade --purge -a
After my modification the upgrade process completed after some time and over 600 updated packages without any errors.

Another way that might work is to update the older python-2.7 installation to the most recent version, but I haven't tried this and I don't know if this can also be done with the --nodeps option.

I hope this will help others.

So good luck!
Gruß
tazinblack

User avatar
sabayonino
Sagely Hen
Posts: 3539
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: upgrade / migration issue

Post by sabayonino » Fri Jul 24, 2020 17:25

Thanks for the hint. :)

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

Re: upgrade / migration issue

Post by greyghost99 » Tue Aug 11, 2020 10:46

tazinblack wrote:
Fri Jul 24, 2020 11:25

After my modification the upgrade process completed after some time and over 600 updated packages without any errors.

Looks interesting. Did you still update equo/portage/entropy with --no-deps before doing this?

Post Reply