Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Workaround] emerge fails on some packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
joanandk
Apprentice
Apprentice


Joined: 12 Feb 2017
Posts: 169

PostPosted: Wed May 15, 2019 7:02 am    Post subject: [Workaround] emerge fails on some packages Reply with quote

Hi,

I am unable to update gcc from 8.2 to 8.3, update virtualbox, update thunderbird, update firefox and update samba (seen so far) on one laptop and one desktop. On another laptop, no issues!

The emerge process quits with
Quote:

* ERROR: app-emulation/virtualbox-5.2.26::gentoo failed (install phase):
* !!! newins: /var/tmp/portage/app-emulation/virtualbox-5.2.26/files/virtualbox-4-config does not exist


Quote:

* ERROR: sys-devel/gcc-8.3.0-r1::gentoo failed (install phase):
* /var/tmp/portage/sys-devel/gcc-8.3.0-r1/files/awk/fixlafiles.awk-no_gcc_la does not exist


Quote:

* ERROR: net-fs/samba-4.8.6-r2::gentoo failed (install phase):
* !!! newinitd: /var/tmp/portage/net-fs/samba-4.8.6-r2/files/4.4/samba4.initd-r1 does not exist


Firefox and Thunderbird quits with "Too many symbolic links"

If I cd into the directory, I see the file and can read it. I have also checked the file system and it still does not work.

I have two systems (at the moment) where I have seen similar issues. On three other systems, emerge works fine and without issues.

Does anyone have a clue what the cause is?

Thanks and BR

Edit:
The system uses autofs to mount portage-tree, distfiles and package directory. They are located on a central server and saves bandwidth and space. I never suspected the autofs as the source of the problem, as the emerge fails at the installation stage.

The workaround: I only had to turn off autofs, mount the shares manually. I first suspected nfs and synced the portage tree to the local system. This worked on the laptop. The destkop I tried to manuall mount the shares which worked too. So it seems to be an autofs issue.

Thanks @Ant P. for asking the correct question.

BR


Last edited by joanandk on Sat May 18, 2019 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Wed May 15, 2019 11:44 am    Post subject: Reply with quote

Hello.

Maybe you are simply running out of disk space
Back to top
View user's profile Send private message
joanandk
Apprentice
Apprentice


Joined: 12 Feb 2017
Posts: 169

PostPosted: Wed May 15, 2019 12:22 pm    Post subject: Reply with quote

guitou wrote:
Maybe you are simply running out of disk space


No, there is more than enough space (over 90GB on the root). The confusing part is:
Quote:
does not exist

but I can see and edit the file.

Quote:
>>> Install firefox-60.6.2 into /var/tmp/portage/www-client/firefox-60.6.2/image/ category www-client
cp: cannot stat '/var/tmp/portage/www-client/firefox-60.6.2/files/gentoo-default-prefs.js-2': Too many levels of symbolic links
* ERROR: www-client/firefox-60.6.2::gentoo failed (install phase):
* (no error message)


I have in the meantime recompiled python and perl. Both were emerged sucessfully, but I still cannot compile virtualbox or firefox. I am still stuck with the issue.

Thanks and BR
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Thu May 16, 2019 11:41 am    Post subject: Reply with quote

Well... might have been a matter of inodes, rather than actual space, but provided file is there, I guess I was just wrong in my suggestion.

Quote:
Too many levels of symbolic links


For this one, you may check along the path for symlinks and/or search this string on the web for a similar problem.

++
Gi)
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu May 16, 2019 3:07 pm    Post subject: Reply with quote

Are you using autofs?
Back to top
View user's profile Send private message
joanandk
Apprentice
Apprentice


Joined: 12 Feb 2017
Posts: 169

PostPosted: Fri May 17, 2019 5:18 am    Post subject: Reply with quote

Ant P. wrote:
Are you using autofs?


Yes, the systems which fails to emerge are using autofs to mount the portage tree, distfiles, package dir and my custom overlay. All these are on a NFS share to minimize download bandwidth and local disk usage.

I have already taken one system off and was able successfully update.

Do you know why this is the cause of the issue?

Thanks and BR
Back to top
View user's profile Send private message
zerocool_australia
n00b
n00b


Joined: 31 Jul 2003
Posts: 58

PostPosted: Fri May 31, 2019 3:15 pm    Post subject: Reply with quote

I had this problem with autofs as well. Increasing timeout= and dismount_interval in autofs.conf seemed to help. I set them to 10000 for now and I have gotten past a couple of previously failing emerges, but I think you'd have to set it to the maximum possible time that an emerge could take on your system. On my system with chromium it could be days.

I think the portion of portage trying to install the initrd and other components times out rapidly and doesn't give autofs enough time to remount the share, and just fails immediately.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum