You are not logged in.

#1 2013-09-22 22:42:04

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

[SOLVED]vlock endless loop hangs shutdown

Recently my i86_64 system has been hanging on shutdown, the boot partition needing checking on restart (no errors reported).  After waiting over ten minutes for shutdown to complete, it's still hung.  CTL·ALT·DEL has no effect.

Running a debug shell (F9) also hangs when console (F1) freezes during shutdown.

"sync && poweroff -f " avoids the hang but the boot partitions still requires checking.

If I run "sudo umount /dev/sdf1 " (/boot) then "sudo sync && sudo reboot -f " the system shuts down and reboots without requiring file-system check.

"lsof " shows no open files on /boot/…

No serial console available.

What could be causing this..? & are they separate issues..?

This system boots with grub, has been around a long time, survived the switch to systemd and survived a major hardware upgrade.

Ref: freedesktop.org/systemd/debugging
Ref: Full System Spec

Edit: corrected the Sysinfo link.
-------
Edit:
After upgrading to systemd-208, the debug console(F9) now works.  Shutdown hangs running vclock.  The error message from journalctl -f is

vlock[528]: pam_unix(vclock:auth):  auth could not identify password for [..user..]

which continues until system is killed by hardware reboot.

I have compared /etc/pam.d/ to one from a properly behaving i686 laptop, and could see no differences, but my knowledge of PAM in very limited.

I'm running XFCE4 and run Xfce automatically using the xorg-xinit method at Start X at Login combining with  Automatic login to virtual console

Last edited by keepitsimpleengineer (2013-10-07 21:05:01)


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#2 2013-10-03 21:47:37

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

I reverted to systemd systemd-204-3-x86_64 and the problem ceased.

Hopefull that systemd-208-1-x86_64 would solve the problem, I upgraded to that.

The same problem exists excpt the debug shell (F9) is not frozen. sad

Last edited by keepitsimpleengineer (2013-10-03 21:49:52)


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#3 2013-10-04 01:07:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED]vlock endless loop hangs shutdown

There are several threads about this. Please search before posting.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2013-10-04 16:59:17

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

cfr wrote:

There are several threads about this. Please search before posting.

I have searched the forums, bugs, upstream... and found several similar but not the same occurance that I am experiencing.

If you are aware of some search result I have missed, could you please post them?

Thanx...


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#5 2013-10-05 02:18:54

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED]vlock endless loop hangs shutdown

I was thinking of e.g. https://bbs.archlinux.org/viewtopic.php?id=170756

What is vclock for? Seems to be connected with vdso? Is that right? Which is some sort of virtualised something? (That is, I didn't understand the explanation I found.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-10-05 17:21:38

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

cfr wrote:

I was thinking of e.g. https://bbs.archlinux.org/viewtopic.php?id=170756

What is vclock for? Seems to be connected with vdso? Is that right? Which is some sort of virtualised something? (That is, I didn't understand the explanation I found.)

vlock (recently moved into kbd) locks virtual consoles.  I presume opening XFCE at boot without password uses it.

keepitsimpleengineer wrote:

I'm running XFCE4 and run Xfce automatically using the xorg-xinit method at Start X at Login combining with  Automatic login to virtual console

I believe this locks virtual console/terminal #1 (Alt-F1) in which to run X.

I presume systemd tries to unlock this locked virtual console as a part of shutdown, and stumbles in authorization, then continues  ad infinitum.  If so, two failures indicated; authorization (PAM), and systemd allowing the unlimited loop with failure.

keepitsimpleengineer wrote:

After upgrading to systemd-208, the debug console(Alt-F9) now works.  Shutdown hangs running vclock.  The error message from journalctl -f is

vclock[528]: pam_unix(vclock:auth):  auth could not identify password for [..user..]

which continues until system is killed by hardware reboot.

In any case, I'm working struggling with that theory.  Curious as to why systemd-204-3-x86_64 had no problem with this while systemd-207-3-x86_64, systemd-207-5-x86_64, and systemd-208-1-x86_64 do.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#7 2013-10-05 21:14:39

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED]vlock endless loop hangs shutdown

Wait. vclock or vlock? Your original post says vclock but now you are talking about vlock.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-10-05 21:26:03

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

cfr wrote:

Wait. vclock or vlock? Your original post says vclock but now you are talking about vlock.

***vclock***

I apologize, fat finger effect... sad

Last edited by keepitsimpleengineer (2013-10-07 21:05:53)


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#9 2013-10-05 21:39:06

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED]vlock endless loop hangs shutdown

Which is not the same as vlock and is not in kbd, right?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2013-10-05 21:46:22

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

yikes Temporary but treacherous work around found. yikes

Modifying PAM bypassing authentication for vclock by adding this to /etc/pam.d/

[--ljohnson{14:39:08}~]$ cat /etc/pam.d/vclock
#%PAM-1.0
auth       include      system-auth
account    required     pam_permit.so

which passes all authentication requests by vclock, AFAIK


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#11 2013-10-05 22:10:24

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

cfr wrote:

Which is not the same as vlock and is not in kbd, right?

 

You are correct, I was confused.

Now I have no idea of the source of vclock. but perhaps it is associated with linux-vdso which is outside my ken.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#12 2013-10-07 18:45:10

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

Apparently, I am still confused.

It is vlock, not vclock.

vlock is invoked in .bash_profile when starting xfce4.

The error message from jorunalctl -f in debug console ...
reads:

vclock[528]: pam_unix(vlock:auth):  auth could not identify password for [ljohnson]

Todays large update has broken xfce4 so I am going to fix that, apparently some changes are required after switching to systemd which I did not make.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

#13 2013-10-07 21:03:58

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 382

Re: [SOLVED]vlock endless loop hangs shutdown

Removed the call to vlock in ~/.bash_profile used to auto-start xfce4 at login.  Resolved the problem.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.) ~ Al (Einstein) war ein Cousin von Albert, "Al" ist die Abkürzung für Aloysius

Offline

Board footer

Powered by FluxBB