0

I read similar posts, but could not find an applicable answer, so here is my situation. Xubuntu sometimes boots OK, but sometimes it is stuck in a loop. Here is what I observed:

After grub default boot: XUbuntu blue screen with rotating arc segment may or may not appear, but if it appears and if the arc segment rotates continuously then boot always ends up in a loop. The loop is showing fsck results then it goes away, hard disk activity, maybe screen activity, then fsck result again. Typical loop time is around a minute or more.

I tried several remedies (pulling plug on computer, on monitor, etc.) none seems to work consistently. Boot loop appears completely random. I could not find clue in dmsg or in some logs.

Recovery boot always OK, and it boots into VGA graphics only.

I have nvidia graphics card and it uses the nouveau driver.

Any suggestions?

EDIT April 25, 2017: While in the loop Ctr=Alt+Fn1 and command sudo /etc/init.d/lightdm stop and sudo journalctl -xe gave me, excerpted:

Apr 25 11:02:12 andrasubuntu NetworkManager[1263]: <info>  [1493132532.7582] device (enp0s4): Activation: successful, device activated.
Apr 25 11:02:12 andrasubuntu whoopsie[704]: [11:02:12] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/0
Apr 25 11:02:12 andrasubuntu whoopsie[704]: [11:02:12] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/0
Apr 25 11:02:12 andrasubuntu whoopsie[704]: [11:02:12] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/0
Apr 25 11:02:12 andrasubuntu whoopsie[704]: [11:02:12] online
Apr 25 11:02:13 andrasubuntu sudo[1513]:    janos : TTY=tty1 ; PWD=/home/janos ; USER=root ; COMMAND=/etc/init.d/lightdm start
Apr 25 11:02:13 andrasubuntu sudo[1513]: pam_unix(sudo:session): session opened for user root by janos(uid=0)
Apr 25 11:02:13 andrasubuntu systemd[1]: Starting Light Display Manager...
-- Subject: Unit lightdm.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit lightdm.service has begun starting up.
Apr 25 11:02:13 andrasubuntu dbus[707]: [system] Activating systemd to hand-off: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
Apr 25 11:02:25 andrasubuntu dbus[707]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Apr 25 11:02:25 andrasubuntu systemd-logind[1462]: Failed to enable subscription: Failed to activate service 'org.freedesktop.systemd1': timed out
Apr 25 11:02:25 andrasubuntu systemd-logind[1462]: Failed to fully start up daemon: Connection timed out
Apr 25 11:02:25 andrasubuntu systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
Apr 25 11:02:25 andrasubuntu systemd[1]: Failed to start Login Service.
-- Subject: Unit systemd-logind.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-logind.service has failed.
-- 
-- The result is failed.
Apr 25 11:02:25 andrasubuntu systemd[1]: systemd-logind.service: Unit entered failed state.
Apr 25 11:02:25 andrasubuntu systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
Apr 25 11:02:25 andrasubuntu systemd[1]: systemd-logind.service: Service has no hold-off time, scheduling restart.
Apr 25 11:02:25 andrasubuntu systemd[1]: Stopped Login Service.
-- Subject: Unit systemd-logind.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-logind.service has finished shutting down.
Apr 25 11:02:25 andrasubuntu systemd[1]: Starting Login Service...
-- Subject: Unit systemd-logind.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-logind.service has begun starting up.
Apr 25 11:02:37 andrasubuntu dbus[707]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out
Apr 25 11:02:37 andrasubuntu NetworkManager[1263]: <error> [1493132557.5202] auth: could not get polkit proxy: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.PolicyKit1': timed out
Apr 25 11:02:37 andrasubuntu dbus[707]: [system] Failed to activate service 'fi.w1.wpa_supplicant1': timed out
Apr 25 11:02:37 andrasubuntu NetworkManager[1263]: <warn>  [1493132557.5296] supplicant: failed to acquire wpa_supplicant proxy: Wi-Fi and 802.1x will not be available (Error calling StartServiceByName for fi.w1.wpa_supplicant1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'fi.w1.wpa_supplicant1': timed out)
Apr 25 11:02:38 andrasubuntu dbus[707]: [system] Failed to activate service 'org.freedesktop.login1': timed out
Apr 25 11:02:38 andrasubuntu lightdm[1531]: ** (lightdm:1531): WARNING **: Failed to get list of logind seats: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.login1': timed out
Apr 25 11:02:38 andrasubuntu dbus[707]: [system] Activating systemd to hand-off: service name='org.freedesktop.Accounts' unit='accounts-daemon.service'
Apr 25 11:02:50 andrasubuntu dbus[707]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Apr 25 11:02:50 andrasubuntu systemd-logind[1537]: Failed to enable subscription: Failed to activate service 'org.freedesktop.systemd1': timed out
Apr 25 11:02:50 andrasubuntu systemd-logind[1537]: Failed to fully start up daemon: Connection timed out
Apr 25 11:02:50 andrasubuntu systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
Apr 25 11:02:50 andrasubuntu systemd[1]: Failed to start Login Service.
-- Subject: Unit systemd-logind.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-logind.service has failed.
-- 
-- The result is failed.

The loop is clearly visible. It is also evident (to me) that the problem is not nvidia graphics card related. Hope this helps.

Janos
  • 951
  • 3
  • 12
  • 24
  • Random boot failure? Is there nothing consistent that triggers it? – Elder Geek Apr 06 '17 at 21:40
  • Related: http://askubuntu.com/questions/223501/ubuntu-gets-stuck-in-a-login-loop and possibly http://askubuntu.com/questions/38780/how-do-i-set-nomodeset-after-ive-already-installed-ubuntu?rq=1 – Elder Geek Apr 06 '17 at 21:44
  • ad 223501: [nomodeset] in grub option does not help, it only makes the xubuntu splash screen with the rotating arc into a different (VGA) resolution). – Janos Apr 06 '17 at 23:03
  • ad 38780: I never get to login screen. In fact, I did a boot without grub options quiet and splash, and finally, on Ctr+Alt+Fn1 (there is only one console, Fn1) I could see two interesting messages: Login Service failed to start, and Modem Service starting but not completing. Why is there Modem Service? I have no modem. – Janos Apr 06 '17 at 23:07
  • Please [edit] relevant information into your post as comments can get deleted for various reasons and not everyone reads them all. Thank you for helping us help you! Have you tried running an fsck from the recovery boot? It might be useful to [edit] that information into your post as well. For further guidance on asking a good question see here to improve your odds of getting a good answer. – Elder Geek Apr 07 '17 at 00:55
  • Very interesting and strange behavior: reviewing my notes from the past I tried something that worked in the past: pulled the plug from the computer (depowered the motherboard almost completely except for the cmos battery), disconnected network cable, disconnected display cable, then reconnected all these, and BINGO - normal boot succeeded into full graphics login. Go figure. – Janos Apr 07 '17 at 03:33
  • Opened chat and posted additional info there. Normally I do not stay on-line with this web site, and for some reason do not get emails when someone comments on it. So I check this web site occasionally, at least once a day to see if there is anything in my "in-box" on this site. – Janos Apr 08 '17 at 22:17
  • The appropriate place for additional information is [edit]ed into your post where those who would like to help can easily find it in one place. As far as not getting emails, those settings can be found and adjusted by editing tour profile. Yours is here. Thank you for helping us help you! – Elder Geek Apr 09 '17 at 12:55
  • Edited my question. The "strange behavior" turns out to be not always the solution. I ran into several boot-loops recently as I was working on the Simple-Scan issue. – Janos Apr 12 '17 at 19:39
  • Many have found this answer useful. Perhaps you will as well. :-) – Elder Geek Apr 12 '17 at 19:44
  • Thanks, tried that, did not help. Recently Firefox stopped working, Chrome as well. So I decided to reinstall 16.04.2. Install OK, Firefox still crashes (I posted a question on that). After several boots boot loop started to happen. This time I have more info, hopefully this will help diagnose the problem - see new edit. – Janos Apr 25 '17 at 15:32
  • Did you by any chance check the hash of your ISO prior to creating your live media for installation to insure that this isn't installer corruption? And check the status of your drive? and run a memtest to insure this isn't a hardware problem? – Elder Geek Apr 26 '17 at 14:01
  • Did not check hash but install went without a glitch. SMART status is without error. Memtest never ran, it always complains about not enough low memory. I went back to 12.04 install (reformat, etc). Boot is much faster, simple scan works, but web browsers crash - maybe not immediately, but soon. I suspect my machine is too old, especially the nvidia graphics card. Oh well... – Janos Apr 26 '17 at 21:52
  • Installation going without a glitch does not guarantee an uncorrupted image. There is a lot more involved than just the ubiquity installer. I don't know how old your system is but I have several desktops here in the 5 yr+ age group running 16.04 with Unity just fine. I cannot stress enough how important it is to check the hash. You should do this every time you download an image. I've never seen memtest86+ refuse to run due to not enough low memory. You might consider Lubuntu – Elder Geek Apr 26 '17 at 23:11
  • Yes, I installed lubuntu, memtest worked, checked CD integrity, had to repartition otherwise it refused to format; boots OK so far - BUT SimpleScan does not work and after updating Firefox crashes. Maybe the boot loop and firefox crash are both related to my CPU that lacks SSE2 instructions. The computer is over 10 years old, the processor is AMD Athlon XP 2200+ – Janos Apr 28 '17 at 19:43

1 Answers1

0

It's true that no socket A processors feature SSE2 support. However I don't believe that's the issue. At 10 years of age, it's almost certain that your main board has liquid filled capacitors. These have been known to fail resulting in numerous seemingly unexplainable faults. Sometimes this capacitor failure is actually visible. In fact over the years I've replaced several motherboards that have exhibited similar symptoms and inspection revealed capacitors that had swollen and in some cases cracked at the top and leaking of electrolyte (brown goo) was visible. If you examine the board and see this condition you have very few choices.

The simplest and best choice in your case is to replace the computer with a new one. CPU, RAM, storage device, and interface technology is leaps and bounds ahead of what it was when your system was designed and there are many benefits to these improvements.

If a new machine isn't in the budget, it's possible to find a used or refurbished system at a good price either online, at a local repair shop, or even from someone you know that simply has to have the cutting edge and retires theit old systems purely for performance reasons.

The last and least attractive option (if you have exceptional skills with a soldering iron) is to replace the capacitors on the main board with new caps that have the same characteristics and specifications. The capacitors are very inexpensive, but the job itself is a giant pain fraught with risk.

Elder Geek
  • 36,023
  • 25
  • 98
  • 183