FS#7886 - Can't log into arch since the latest kernel upgrades.
Attached to Project:
Arch Linux
Opened by Mike Dill (Theoden) - Friday, 24 August 2007, 04:03 GMT
Last edited by Aaron Griffin (phrakture) - Tuesday, 02 October 2007, 22:02 GMT
Opened by Mike Dill (Theoden) - Friday, 24 August 2007, 04:03 GMT
Last edited by Aaron Griffin (phrakture) - Tuesday, 02 October 2007, 22:02 GMT
|
Details
Description:
Since the new kernel upgrade - I cannot log into my arch system with any kernel except the ck kernels. I get to the login prompt - entranced fails to start. I try to log in - once logged in - it kicks me out to the login again - over and over. When I try to reboot - CTRL-ALT-DEL - the system locks up tight immediately and gives me the following message: INIT: Switching to runlevel: 6 INIT: Sending processes started by init the TERM signal > Initiating Shutdown... acpid: exiting INIT: no more processes left in this runlevel After that - I have to shut the system off completely and start it again. This all started after upgrading the kernel to kernel26-2.6.22.4-1 - then to kernel26-2.6.22.4-2 - and now to kernel26-2.6.22.5-1. None of them work here. I downgraded the kernel to kernel26-2.6.22.3-1 - but it does the same thing now and it won't work. I have kernel26ck-2.6.22.4.ck1-1 installed as well - it works perfectly. Entranced starts - E17 comes up - everything runs just fine. Currently I appear to be locked to the ck kernel - which is going away. This must be fixed soon. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Aug 21 22:25:08 Ringwraith eth0: setting full-duplex.
Aug 21 22:25:11 Ringwraith hpiod: 1.7.4a accepting connections at 2208...
Aug 21 22:25:20 Ringwraith entranced: Starting X server.
Aug 21 22:25:21 Ringwraith entranced: Starting Entrance.
Aug 21 22:25:22 Ringwraith entrance: Debug: ipc_title = /var/run/entrance/entrance_ipc_4321
Aug 21 22:25:22 Ringwraith entrance: entrance_ipc_init: Success
Aug 21 22:25:48 Ringwraith entranced: The session has ended normally.
Aug 21 22:25:48 Ringwraith entranced: The X Server apparently died as well.
Aug 21 22:25:48 Ringwraith entranced: Attempting to restart X server.
Aug 21 22:25:48 Ringwraith entranced: Successfully restarted the X server.
Aug 21 22:25:48 Ringwraith entrance: Debug: ipc_title = /var/run/entrance/entrance_ipc_4321
Aug 21 22:25:48 Ringwraith entrance: entrance_ipc_init: Success
Aug 21 22:25:51 Ringwraith entranced: The session has ended normally.
Aug 21 22:25:52 Ringwraith entranced: The X Server apparently died as well.
Aug 21 22:25:52 Ringwraith entranced: Attempting to restart X server.
Aug 21 22:25:52 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:25:52 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:25:52 Ringwraith entranced: Successfully restarted the X server.
Aug 21 22:25:52 Ringwraith entrance: Debug: ipc_title = /var/run/entrance/entrance_ipc_4321
Aug 21 22:25:52 Ringwraith entrance: entrance_ipc_init: Success
Aug 21 22:25:55 Ringwraith entranced: The session has ended normally.
Aug 21 22:25:55 Ringwraith entranced: The X Server apparently died as well.
Aug 21 22:25:55 Ringwraith entranced: Attempting to restart X server.
Aug 21 22:25:55 Ringwraith entranced: Successfully restarted the X server.
Aug 21 22:25:55 Ringwraith entrance: Debug: ipc_title = /var/run/entrance/entrance_ipc_4321
Aug 21 22:25:55 Ringwraith entrance: entrance_ipc_init: Success
Aug 21 22:26:00 Ringwraith entranced: The session has ended normally.
Aug 21 22:26:00 Ringwraith entranced: The X Server apparently died as well.
Aug 21 22:26:00 Ringwraith entranced: Attempting to restart X server.
Aug 21 22:26:00 Ringwraith entranced: Successfully restarted the X server.
Aug 21 22:26:01 Ringwraith entrance: Debug: ipc_title = /var/run/entrance/entrance_ipc_4321
Aug 21 22:26:01 Ringwraith entrance: entrance_ipc_init: Success
Aug 21 22:26:05 Ringwraith entranced: The session has ended normally.
Aug 21 22:26:05 Ringwraith entranced: The X Server apparently died as well.
Aug 21 22:26:05 Ringwraith entranced: Attempting to restart X server.
Aug 21 22:26:05 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:26:05 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:26:05 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:26:05 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:26:05 Ringwraith entranced: Failed to generate auth cookie for X Server.
Aug 21 22:26:05 Ringwraith entranced: Failed to restart the X server. Aborting.
Aug 21 22:29:00 Ringwraith shutdown[12359]: shutting down for system reboot
Aug 21 22:29:00 Ringwraith init: Switching to runlevel: 6
Aug 21 22:29:04 Ringwraith syslog-ng[4149]: Termination requested via signal, terminating;
Aug 21 22:29:04 Ringwraith syslog-ng[4149]: syslog-ng shutting down; version='2.0.5'
Aug 21 22:30:02 Ringwraith syslog-ng[3959]: syslog-ng starting up; version='2.0.5'
If I then run - entranced start - E17 starts up fine.
So - it looks like at login time - when entranced is supposed to log in as root and start - it cannot. But the same entranced works fine with kernel26ck-2.6.22.4.ck1-1.
------8<------8<------8<------8<------8<------8<
Current Operating System: Linux Ringwraith.atlantis 2.6.22-ck #1 SMP PREEMPT Wed Aug 22 03:36:54 IST 2007 i686
------8<------8<------8<------8<------8<------8<
I need a log from within the failing kernel. Boot into the stock kernel, copy the Xorg.0.log file from there, and attach it, please.
> (WW) Open ACPI failed (/var/run/acpid.socket) (Connection refused)
> (II) No APM support in BIOS or kernel
I don't think that would cause X to fail to load though. :/ Did you get that after you killed entrance and then successfully re-ran X? Does entrance write any logs anywhere?
1. The system is exactly the same regardless of which kernel I use - ck or default.
2. X is still exactly the same regardless of which kernel I use - ck or default.
3. Entranced is still exactly the same regardless of which kernel I use - ck or default.
4. acpid is still exactly the same regardless of which kernel I use - ck or default.
5. The login and initscripts are still exactly the same regardless of which kernel I use - ck or default.
6. The hardware is still exactly the same regardless of which kernel I use - ck or default.
7. NOTHING is different EXCEPT the kernel.
In troubleshooting - I learned to always determine what is different - what changed - and then narrow down to the problem. When I do that - the kernel keeps coming up as the only thing. When I use the ck kernel everything works. When I use the default kernel - it doesn't. When I break the attempt to start entranced (it is itself loging in as root I believe), it fails with the default - but when I break the attempt to startup entranced - log in - and then run entranced - it works correctly with the default kernel.
I simply don't think the problem is X. It HAS to be kernel related!
Also, the modules the kernel uses are different, so it's not JUST the kernel. Do you use any external modules? You're using the foss ati driver, and not fglrx, so it wouldn't be that, but if you're using anything like madwifi or something it might, perhaps, make a difference.
When you log in and kill entrance, I assume you re-run entrance as root, with sudo for example. Is there any kind of entranced.log file or something like that in /var/log?
I'm not sure what part of the 'kernel' or 'kernel-modules' that would be. I really am trying to give you all I can to help.
It's not dropped, but I think I'm out of ideas. I can't fix something when I don't know what the problem truly is - I know the symptoms (your login manager doesn't start at bootup with the stock kernel) but I don't know the cause.
> When entranced doesn't try to log in - and I log in - and then run entranced - we fine.
Hm.. are you running entranced with sudo or as root after you log in, or just as your regular user? If you're running it as a regular user, try running it as root after you've logged in successfully and see if it fails then - that way we can be sure if it's the combination of root + kernel26 + entranced that's causing the problem.
But what is 'supposed' to happen is that entranced logs in as root and starts on it's own.
It does that with the ck kernel - but it fails to do that on the default kernel.
Entranced keeps no log that can find.
Entranced will not start if I log in as a regular user and try and start it.
If I use sudo as a regular user entranced will start after startup.
Entranced works in every way like it is supposede - except when it is supposed to log in and start automatically with the 'default kernel.'
With the ck kernel - it logs in and starts automatically just as it is supposed.
But what is 'supposed' to happen is that entranced logs in as root and starts on it's own.
It does that with the ck kernel - but it fails to do that on the default kernel.
Entranced keeps no log that can find.
Entranced will not start if I log in as a regular user and try and start it.
If I use sudo as a regular user entranced will start after startup.
Entranced works in every way like it is supposede - except when it is supposed to log in and start automatically with the 'default kernel.'
With the ck kernel - it logs in and starts automatically just as it is supposed.
Can you try the suggestion there (adding entranced to /etc/inittab and removing it from /etc/rc.conf) and see if that works any better?
By the way, if it's still giving you the problem when it's in inittab, you can boot directly to console by appending the number 3 to your kernel boot line (ie, if you're using grub, hit 'e' to edit the entry, then add the 3, then hit 'b' to boot.)
You can use this to get back into your console system, and revert the changes. That was my final idea, I'm afraid - I hope someone with more knowledge than I can get this resolved for you.
Now it boots just to this:
(none) login:
This is the absolute worst damn archlinux issue I've ever had in 3 years. I an ready to jump ship. This is fscking ridiculous!
Now I have a totally hosed system!
:-/
That is really strange - I assume all you did was edit the two lines in your inittab, correct? You didn't remove anything from it?
(none) login:
It just goes from bad to worse since the last kernel upgrade.
mount / -o remount,rw
Do your changes and then:
mount / -o remount,ro
And after that, reboot.
HTH
If the system boots and entranced is the _only_ thing that fails, then we most likely have a video module problem.
As a long shot... do you use lilo or grub?
"(none) login:"
looks like rc.conf is not being read or something. Make sure your initscripts are OK. I'd do an fsck too, from some recent livecd (knoppix or something). You never know what all that crashing does to your filesystem :-)
And try a regular login manager like xdm, gdm or kdm. Those always work. Have you tried logging in using startx?
Cheers!
Somehow - my fstab file got hosed - probably in one of the lockups - that's why it couldn't read the fs ... reconstructed than manually.
Cleaned the drive. Set /etc/inittab to:
id:5:initdefault:
x:5:respawn:/opt/e17/sbin/entranced -nodaemon
Restarted the system ... it runs entranced fine now, though I cannot break it to get to console only ... have to reboot and set init 3 on the kernel line in grub to get to the command console.
So I'm functional now. Thanks to all who helped - especially Travis (Cerebral).
But now - we still haven't gotten to the reason why this is different in the current kernel. I would really like to know what's up with that.
telinit 3
as root. That will stop entranced. Then, to return to graphical-login mode, run
telinit 5
That will restart entranced, and usually automatically return you to its VT. Note, though, your console will still likely be logged in wherever you ran telinit 5. You can log it out by Ctrl+Alt+F-key and the 'exit' as usual.
See http://wiki.archlinux.org/index.php/Adding_a_login_manager_%28KDM%2C_GDM%2C_or_XDM%29_to_automatically_boot_on_startup#GRUB for details.