Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

emerge hangs

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
javeree
Guru
Guru
Posts: 465
Joined: Sun Jan 29, 2006 5:17 pm

emerge hangs

  • Quote

Post by javeree » Fri Jan 25, 2013 10:44 am

I have one PC, where emerge immediately hangs (no output at all). I cannot even end it with Ctrl-C.

From another tty, I can run ps aux | grep emerge and get
root 19605 9.9 1.4 19892 14372 pts/2 D+ 11:03 0:01 /usr/bin/python3.2 /usr/bin/emerge -uDNatv @world
root 19609 0.0 0.0 4624 780 pts/1 S+ 11:04 0:00 grep --colour=auto emerge
This D+ seems to indicate the sw is in uninterruptable sleep waiting for something. However, tehre is no indication what is blocking the program.
I could try to run 'strace emerge', but I don't have strace on this PC and I obviously cannot emerge it either.
Any suggestions on handling this ?
Top
javeree
Guru
Guru
Posts: 465
Joined: Sun Jan 29, 2006 5:17 pm

  • Quote

Post by javeree » Fri Jan 25, 2013 10:45 am

Never mind, I realized that I mount portage over nfs, and it is this mount that hangs somehow.
Top
RobPearce
n00b
n00b
Posts: 66
Joined: Tue Jul 12, 2005 8:30 am
Location: Cambridge, England

  • Quote

Post by RobPearce » Mon Mar 25, 2013 8:39 am

I have (at least) two machines that have started suffering this hang some time this year. Neither of them have /usr/portage on NFS but they do have the PKGDIR on NFS, and they hang during the "Performing Global Updates:" step:

Code: Select all

ezra ~ # emerge -C =sys-kernel/vanilla-sources-2.6.38.7

Performing Global Updates:
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/usr/portage/profiles/updates/2Q-2011............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
/usr/portage/profiles/updates/3Q-2011..........................
/usr/portage/profiles/updates/4Q-2011.............................................................................................................
/usr/portage/profiles/updates/1Q-2012.......................
/usr/portage/profiles/updates/2Q-2012........................
/usr/portage/profiles/updates/3Q-2012.....................................................
/usr/portage/profiles/updates/4Q-2012.............................................................
/usr/portage/profiles/updates/1Q-2013................................................................................................

Running ps shows a "D+" state for emerge. Why has this suddenly broken when it worked absolutely fine up until now?
Top
Randy Andy
Veteran
Veteran
User avatar
Posts: 1152
Joined: Tue Jun 19, 2007 7:39 pm
Location: /dev/koelsch

  • Quote

Post by Randy Andy » Mon Mar 25, 2013 10:20 am

Try to stay patient for up to 15 minutes to get the process finish.

I have had the same behavior some times.

On slow machines it could take too much time, especially if the world file is full of superfluous entries which came into, if you forget to use the --oneshot option.

Only if this fails, I would state you have a problem...

Much success, Andy.
If you want to see a Distro done right, compile it yourself!
Top
RobPearce
n00b
n00b
Posts: 66
Joined: Tue Jul 12, 2005 8:30 am
Location: Cambridge, England

  • Quote

Post by RobPearce » Mon Mar 25, 2013 6:48 pm

Randy Andy wrote:Try to stay patient for up to 15 minutes to get the process finish.

I have had the same behavior some times.

On slow machines it could take too much time, especially if the world file is full of superfluous entries which came into, if you forget to use the --oneshot option.

Only if this fails, I would state you have a problem...

Much success, Andy.
It's WWWAAAAAAYYYYYYY more than 15 minutes! I left it running OVERNIGHT and it still hadn't finished.

However, I've established that the lock-up can be prevented by mounting the PKGDIR with "nolock". Of course, this is exactly the wrong solution, because PKGDIR is one of those places where locking is important, especially if shared between machines.
Top
Randy Andy
Veteran
Veteran
User avatar
Posts: 1152
Joined: Tue Jun 19, 2007 7:39 pm
Location: /dev/koelsch

  • Quote

Post by Randy Andy » Mon Mar 25, 2013 8:41 pm

RobPearce,

for your NFS constellation this might be a different thing and is known to bring more points of failures into.

My comment refers more to the initial poster, so let's see what he state.
If you want to see a Distro done right, compile it yourself!
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy