Reboot hangs when two mounts with autofs

Bug #1304246 reported by eolien
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
New
Medium
Unassigned

Bug Description

On xubuntu 12.04.3 64 bits, with Dell computer (7010 and some other optiplex), reboot hangs and display terminal :

acpid exiting
running unnatend : ...

I had same problem on 32 bits 12.04, but solved by adding "acpi=force reboot=pci" in /etc/default/grub
Here, on 64 bits, tried that and didn't work.

I also tried every other reboot parameter, without success.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-54-generic 3.2.0-54.82
ProcVersionSignature: Ubuntu 3.2.0-54.82-generic 3.2.50
Uname: Linux 3.2.0-54-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: speech-dispatcher 1289 F.... pulseaudio
                      root 2212 F.... xfce4-volumed
 /dev/snd/pcmC0D0p: speech-dispatcher 1289 F...m pulseaudio
 /dev/snd/timer: speech-dispatcher 1289 f.... pulseaudio
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfebf0000 irq 43'
   Mixer name : 'Generic 1af4 ID 21'
   Components : 'HDA:1af40021,1af40021,00100101'
   Controls : 2
   Simple ctrls : 2
Date: Tue Apr 8 10:00:21 2014
HibernationDevice: RESUME=UUID=2b0136a6-76ae-42a5-a166-a2e6af4c0e17
InstallationMedia: Xubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
Lsusb:
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
MachineType: Bochs Bochs
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-54-generic root=UUID=1be3fd89-b18b-4f55-ab8f-1f9e26e57c01 ro quiet splash acpi=force reboot=b vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-54-generic N/A
 linux-backports-modules-3.2.0-54-generic N/A
 linux-firmware 1.79.9
RfKill:

SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/01/2011
dmi.bios.vendor: Bochs
dmi.bios.version: Bochs
dmi.chassis.type: 1
dmi.chassis.vendor: Bochs
dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2011:svnBochs:pnBochs:pvr:cvnBochs:ct1:cvr:
dmi.product.name: Bochs
dmi.sys.vendor: Bochs

Revision history for this message
eolien (mrnfake) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: Reboot hangs with Dell computers on 64 bits

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.14 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14-trusty/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
eolien (mrnfake) wrote :

kernel-unable-to-test-upstream : black screen after grub
i will now test 3.8 kernel, but i confirm

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
eolien (mrnfake) wrote :

3.8-38 kernel : black screen after grub again... sorry

Revision history for this message
eolien (mrnfake) wrote :

3.5.0-48 : boots great, but same bug

Revision history for this message
eolien (mrnfake) wrote :

I understood something today :
When i pass kernel option "reboot=bios", on all dell machine, only "reboot" command works

Ctrl+alt+suppr, and graphic reboot hangs

Revision history for this message
eolien (mrnfake) wrote :

What i said, just before was not true... still random reboot problems with, "reboot", "shutdown -r", CTRL+ALT+SUPPR

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Can you also give the latest 3.8 upstream kernel a test? It is version 3.8.13.21 and can be downloaded from:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8.13.21-raring/

Also, the 3.15-rc1 kernel is now out as well. Can you give that a test:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-rc1-trusty/

tags: added: kernel-da-key
Revision history for this message
eolien (mrnfake) wrote :
Download full text (3.5 KiB)

Didn't try these kernels yet but, for posterity :

All reboot tests are made with console mode (CTRL + ALT + F1) and CTRL + ALT + SUPPR

Sometimes, reboot hungs on apache.
I had a problem with apache2, which doesn't want to pass because of there wasn't "ServerName localhost" options in /etc/apache2/apache2.conf.

Still not clean reboot :

Before, every computer, at every time hangs.
I added "reboot=pci" kernel option in /etc/default/grub, and now, if a computer was rebooted few minutes before a new reboot try, the problem comes 1 times on 10.

It hangs after all K** in rc6.d.
I noticed that, the difference between computers that reboot properly and those which do not is a log line :

"Rpcbind terminated on signal" : when this line apear, one second later, the computer reboots properly.
I googled it and saw that RPCbind has a report with NFS and that, that is "S20sendsigs" which send this signal.

Here my rc6.d dir :

lrwxrwxrwx 1 root root 21 avril 23 11:09 K01sifupdate64 -> ../init.d/sifupdate64
lrwxrwxrwx 1 root root 27 avril 23 11:11 K02sifrebootdefrozer -> ../init.d/sifrebootdefrozer
lrwxrwxrwx 1 root root 17 oct. 17 2013 K08tomcat7 -> ../init.d/tomcat7
lrwxrwxrwx 1 root root 17 oct. 17 2013 K09apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root 29 oct. 16 2013 K10unattended-upgrades -> ../init.d/unattended-upgrades
lrwxrwxrwx 1 root root 21 oct. 17 2013 K20libnss-ldap -> ../init.d/libnss-ldap
lrwxrwxrwx 1 root root 14 oct. 17 2013 K20nscd -> ../init.d/nscd
lrwxrwxrwx 1 root root 15 oct. 17 2013 K20nslcd -> ../init.d/nslcd
lrwxrwxrwx 1 root root 27 oct. 16 2013 K20speech-dispatcher -> ../init.d/speech-dispatcher
lrwxrwxrwx 1 root root 20 nov. 4 10:18 K20virtualbox -> ../init.d/virtualbox
lrwxrwxrwx 1 root root 17 févr. 11 16:22 K20winbind -> ../init.d/winbind
lrwxrwxrwx 1 root root 20 janv. 20 14:27 K20x2goserver -> ../init.d/x2goserver
lrwxrwxrwx 1 root root 18 oct. 17 2013 K79quotarpc -> ../init.d/quotarpc
lrwxrwxrwx 1 root root 27 oct. 17 2013 K80nfs-kernel-server -> ../init.d/nfs-kernel-server
lrwxrwxrwx 1 root root 15 oct. 17 2013 K85quota -> ../init.d/quota
-rw-r--r-- 1 root root 351 juil. 26 2012 README
lrwxrwxrwx 1 root root 18 oct. 16 2013 S20sendsigs -> ../init.d/sendsigs
lrwxrwxrwx 1 root root 17 oct. 16 2013 S30urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root 22 oct. 16 2013 S31umountnfs.sh -> ../init.d/umountnfs.sh
lrwxrwxrwx 1 root root 20 oct. 16 2013 S35networking -> ../init.d/networking
lrwxrwxrwx 1 root root 18 oct. 16 2013 S40umountfs -> ../init.d/umountfs
lrwxrwxrwx 1 root root 20 oct. 16 2013 S60umountroot -> ../init.d/umountroot
lrwxrwxrwx 1 root root 16 oct. 16 2013 S90reboot -> ../init.d/reboot

I don't know where autofs is shutting down. So i thank that umountnfs.sh was executed before autofs closed.

So, I created a script sifrebootdefrozen which contains :

#!/bin/bash
service autofs stop
sleep 2

And place it in K02. When it is executed, i saw on screen "autofs already closed" or something like that. So that's not the problem.

If I wait for 30 minutes or more, a new problem appears, reboot hangs on black screen, only "acpid exiting" diplayed.
I tri...

Read more...

Revision history for this message
eolien (mrnfake) wrote :

I did the upgrade to 14.04, problem still here

Revision history for this message
eolien (mrnfake) wrote :

New informations, see below

affects: linux (Ubuntu) → autofs (Ubuntu)
Changed in autofs (Ubuntu):
status: Confirmed → New
summary: - Reboot hangs with Dell computers on 64 bits
+ Reboot hangs when two mounts with autofs
Revision history for this message
eolien (mrnfake) wrote :
Download full text (15.0 KiB)

Hi
I have serious reboot problem since a long time.
I discovered that if i "service autofs stop" before reboot, there's no problem with reboot.

Here my autofs confs :

# dpkg --get-selections | grep autofs
autofs install
autofs-ldap install
autofs5-ldap install

# apt-cache policy autofs
autofs:
  Installé : 5.0.7-3ubuntu3
  Candidat : 5.0.7-3ubuntu3
 Table de version :
 *** 5.0.7-3ubuntu3 0
        500 http://fr.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

# cat auto.master | grep -v "#"
+dir:/etc/auto.master.d
+auto.master

# ls -altr auto.master.d
total 32
-rw-r--r-- 1 root root 11 sept. 22 14:53 home
-rw-r--r-- 1 root root 107 sept. 22 15:50 net
-rw-r--r-- 1 root root 44 sept. 23 07:44 net.autofs
-rw-r--r-- 1 root root 53 sept. 23 07:45 home.autofs
drwxr-xr-x 2 root root 4096 sept. 23 07:45 .
drwxr-xr-x 171 root root 12288 sept. 23 07:47 ..

# cat auto.master.d/home
+auto.home

# cat auto.master.d/net
local -fstype=nfs4,ro,proto=tcp,port=2049 nfs1:/bin
commun -rw,soft,intr nfs2:/home/commun

# cat auto.master.d/home.autofs
/auto_home /etc/auto.master.d/home --timeout=10

# cat auto.master.d/net.autofs
/net /etc/auto.master.d/net --timeout=10

# cat /etc/default/autofs | grep -v "#"
MASTER_MAP_NAME="/etc/auto.master"
TIMEOUT=3
BROWSE_MODE="no"
LOGGING="verbose"
LDAP_URI="ldap://#.#.#.#"
SEARCH_BASE="dc=#,dc=#,dc=#"
MAP_OBJECT_CLASS="nisMap"
ENTRY_OBJECT_CLASS="nisObject"
MAP_ATTRIBUTE="nisMapName"
ENTRY_ATTRIBUTE="cn"
VALUE_ATTRIBUTE="nisMapEntry"

When i desactive one of these inputs (or /net or /auto_home), reboot works fine.

Here's my logs since the last reboot ::

#cat /var/log/syslog | egrep 'automount|autofs|ldap|nscd|nslcd'

Sep 23 07:44:14 localhost nslcd[1328]: [a5ee64] <group="admin"> ldap_search_ext() failed: Can't contact LDAP server: Broken pipe
Sep 23 07:44:14 localhost nslcd[1328]: [a5ee64] <group="admin"> no available LDAP server found, sleeping 1 seconds
Sep 23 07:44:18 localhost nslcd[1328]: [330624] <passwd="*"> request denied by validnames option
Sep 23 07:44:25 localhost nslcd[1328]: [a5ee64] <group="admin"> failed to bind to LDAP server ldaps://10.6.200.209: Can't contact LDAP server: Connection timed out
Sep 23 07:44:25 localhost nslcd[1328]: [a5ee64] <group="admin"> no available LDAP server found: Can't contact LDAP server: Connection timed out
Sep 23 07:44:25 localhost nslcd[1328]: [ffca11] <group/member="premier"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable
Sep 23 07:44:25 localhost nslcd[1328]: [ffca11] <group/member="premier"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable
Sep 23 07:44:25 localhost nslcd[1328]: [27709e] <group/member="premier"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable
Sep 23 07:44:25 localhost nslcd[1328]: [27709e] <group/member="premier"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable
Sep 23 07:44:25 localhost nslcd[1328]: [ea1109] <group="admin"> no available LDAP server found: Server is unavailable: Resource temporarily unavailable
S...

Revision history for this message
eolien (mrnfake) wrote :
Download full text (4.7 KiB)

Here, how i proceed exactly to set up my ldap/autofs conf :

    # rm -Rf /usr/local
    # ln -s /net/local /usr/local
    # apt-get install libpam-ldapd libnss-ldapd auth-client-config autofs5-ldap nfs-kernel-server

    Editer /etc/ldap/ldap.conf
    ____________________________________________________________________________________________
    BASE dc=dc1,dc=dc2,dc=dc3
    URI ldaps:/1.1.1.1/
    # TLS certificates (needed for GnuTLS)
    TLS_CACERT /etc/ssl/certs/ca-certificates.crt
    ____________________________________________________________________________________________

    # service nscd restart

    Editer /etc/nslcd.conf
    ____________________________________________________________________________________________
    uid nslcd
    gid nslcd
    uri ldaps://1.1.1.1
    base dc=dc1,dc=dc2,dc=dc3
    ldap_version 3
    ssl on
    tls_reqcert allow
    tls_cacertfile /etc/ssl/ldap-cacert.pem
    nss_initgroups_ignoreusers avahi,avahi-autoipd,backup,bin,colord,daemon,games,gnats,hplip,irc,kernoops,libuuid,lightdm,list,lp,mail,man,messagebus,news,proxy,pulse,root,rtkit,saned,speech-dispatcher,sshd,sync,sys,syslog,usbmux,uucp,whoopsie,www-data
    ____________________________________________________________________________________________

    Creer /etc/ssl/ldap-cacert.pem
    ____________________________________________________________________________________________
    -----BEGIN CERTIFICATE-----
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    -----END CERTIFICATE-----
    ____________________________________________________________________________________________

    Editer /etc/nsswitch.conf
    ____________________________________________________________________________________________
    passwd: compat ldap
    group: compat ldap
    shadow: compat ldap

    hosts: files mdns4_minimal [NOTFOUND=return] dns
    networks: files

    protocols: db files
    services: db files
    ethers: db files
    rpc: db files

    netgroup: files ldap
    automount: files ldap
    ____________________________________________________________________________________________

    Autofs

    # mkdir /etc/auto.master.d
    # echo "+auto.home" > /etc/auto.master.d/home
    # echo "local -fstype=nfs4,ro,proto=tcp,port=2049 serveur_nfs1:/bin" > /...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.