upgrade / migration issue [Solved]

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

Moderator: Moderators

greyghost99
Baby Hen
Posts: 19
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: 19
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: 19
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: 19
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: 3559
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: 19
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?

heathen
Growing Hen
Posts: 125
Joined: Fri Mar 08, 2013 19:44
Location: Arizona

Re: upgrade / migration issue [Solved]

Post by heathen » Sun Aug 16, 2020 20:50

Anybody else try this? I have to admit I'm horrible in terminal so my abilities are limited, but it seems like everything I try just hits a wall like others are saying. Trying to install the migration hits a wall at postinstall, every single time, and I can't even run update as it hits a wall right away. I'm lousy so don't know how to check and modify the script for python like mentioned above. I know I have both Python 2.7 and 3.6 but don't know what's being used and how to modify it. Is there anyone willing to throw an idiot a bone?
just wandering around and poking stuff with sticks...

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

Re: upgrade / migration issue

Post by tazinblack » Wed Aug 19, 2020 13:57

greyghost99 wrote:
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?
I did the steps from above
Gruß
tazinblack

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

Re: upgrade / migration issue [Solved]

Post by greyghost99 » Thu Aug 20, 2020 13:11

I just updated another system: I installed (step by step)

Code: Select all

app-portage/unsymlink-lib
sys-apps/sabayon-lib-migration-1
sys-apps/sabayon-lib-migration-check-1
with --nodeps. When the process got stuck again, I quit the sleep process in the background and got the "No module named portage" message mentioned above. I fixed this by replacing "python2" with "python" in the shebang of the script, and tried again. This time, everything finished as expected, and after doing a full upgrade I have a working up-to-date system now. Thanks for the pointer!

Maybe the unsymlink-lib package should be updated? Looking at the original under https://github.com/mgorny/unsymlink-lib ... ymlink-lib it looks like this is not using "python2" but just "python".

Post Reply