You are not logged in.

#1 2014-04-21 19:55:46

b9anders
Member
Registered: 2007-11-07
Posts: 681

[fixed] Pacman hangs when upgrading linux kernel

I ran pacman -Syu for the first time in a few weeks. Now it seems to hang when upgrading the kernel.

I kill the process and pacman tells me it is already updated now, but no scripts were run and pacman doesn't finish itself.

What should I do from here? I am not sure I want to reboot...

Last edited by b9anders (2014-04-21 22:08:50)

Offline

#2 2014-04-21 20:11:05

Head_on_a_Stick
Member
From: Asteroid B-612
Registered: 2014-02-20
Posts: 3,935
Website

Re: [fixed] Pacman hangs when upgrading linux kernel

Our redoubtable administrator @Inxsible had a similar problem in this thread...
No ideas myself, sorry sad


_0_
__0
000

Offline

#3 2014-04-21 20:11:10

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,347
Website

Re: [fixed] Pacman hangs when upgrading linux kernel

Run pacman with debug...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#4 2014-04-21 20:16:20

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,723

Re: [fixed] Pacman hangs when upgrading linux kernel

I would not reboot.  I would delete the package from the cache and then try installing it again

I'm sure I've seen another thread like this but can't remember the deatils.  From your description  I would guess that the initrd hasn't been generated correctly, so rebooting could be an issue.

If all else fails reinstall the previous kernel.

edit:  link to the other thread now posted.

Last edited by loafer (2014-04-21 20:18:17)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2014-04-21 22:08:37

b9anders
Member
Registered: 2007-11-07
Posts: 681

Re: [fixed] Pacman hangs when upgrading linux kernel

Unmounting my disconnected NFS shares and rerunning the upgrade did the trick. Needed the -fl flags to make it work though.

Offline

#6 2014-04-22 17:48:16

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [fixed] Pacman hangs when upgrading linux kernel

I am still trying to figure out how to tell pacman to ignore the NFS shares while upgrading the linux kernel. No luck yet.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2014-04-23 12:46:05

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: [fixed] Pacman hangs when upgrading linux kernel

Inxsible wrote:

I am still trying to figure out how to tell pacman to ignore the NFS shares while upgrading the linux kernel. No luck yet.

pacman should only be touching mountpoints (including NFS) if they're needed for the transaction. Do you have some network-shared CacheDir?

Offline

#8 2014-04-23 18:45:04

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [fixed] Pacman hangs when upgrading linux kernel

falconindy wrote:
Inxsible wrote:

I am still trying to figure out how to tell pacman to ignore the NFS shares while upgrading the linux kernel. No luck yet.

pacman should only be touching mountpoints (including NFS) if they're needed for the transaction. Do you have some network-shared CacheDir?

I am not using a network-shared CacheDir. Even if I were, would it only happen for the kernel upgrade? I have no issues at all upgrading any other package. Its only the linux package that fails if the NFS server is not available.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2014-04-24 01:31:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: [fixed] Pacman hangs when upgrading linux kernel

debug output of a hang would be rather interesting, then...

Offline

#10 2014-04-24 03:32:55

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [fixed] Pacman hangs when upgrading linux kernel

falconindy wrote:

debug output of a hang would be rather interesting, then...

aaargh... this time it runs fine even though my NFS server is switched off and I haven't changed any configuration. I tried re-installing the same version (3.14-1) and I even tried downgrading to an older version and then updating.

I guess I will have to get back to you on this one later falconindy sad


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#11 2014-05-14 03:52:50

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: [fixed] Pacman hangs when upgrading linux kernel

ok sorry to bump this "fixed" thread. but I got the same issue again


I started upgrading linux at 19:52
pacman.log

[2014-05-13 19:52] [PACMAN] Running 'pacman -S --debug linux'

This was when my nfs server (toshiba) was suspended
journalctl

May 13 19:55:13 wolfdale sudo[26023]: pam_unix(sudo:session): session closed for user root
May 13 19:56:07 wolfdale kernel: nfs: server toshiba not responding, timed out
May 13 19:59:23 wolfdale kernel: nfs: server toshiba not responding, still trying
May 13 20:00:13 wolfdale sudo[26159]: inxsible : TTY=unknown ; PWD=/home/inxsible ; USER=root ; COMMAND=/usr/bin/hddtemp /dev/sda

At 20:23 I got bored waiting and started up my nfs server (toshiba)
journalctl

May 13 20:20:15 wolfdale sudo[26455]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 13 20:20:15 wolfdale sudo[26455]: pam_unix(sudo:session): session closed for user root
May 13 20:23:39 wolfdale kernel: nfs: server toshiba OK
May 13 20:23:48 wolfdale sudo[25937]: pam_unix(sudo:session): session closed for user root

and it immediately started generating the ramdisk

journalctl

[2014-05-13 20:23] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2014-05-13 20:23] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Starting build: 3.14.3-2-ARCH
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Starting build: 3.14.3-2-ARCH
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2014-05-13 20:23] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2014-05-13 20:23] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-05-13 20:23] [PACMAN] reinstalled linux (3.14.3-2)

Here's the --debug output of pacman. It's stuck at "extracting /". The only way is to kill it or to switch on the nfs server upon which it completes.

http://pastebin.com/q4UCNtJJ
http://pastebin.com/beP9Jwpu

Had to break up the log in 2 since it was too long for pastebin

Last edited by Inxsible (2014-05-14 04:35:53)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB