Sluggish boot, failed services with dependencies[SOLVED]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Sluggish boot, failed services with dependencies[SOLVED]

Postby aldQueiroz » Jul 21st, '16, 22:07

Hi, everybody.
My Mageia 5 is taking more than 3 minutes(!) to boot, since start of default kernel stanza at Grub-legacy until KDE raises all processes; and even so, sometimes IBUS-deamon doesn't start correctly...
When pressing [ESC]' during Plymouth screen, after almost 20 seconds of a black panel I've got the messages of services being initiated, and which ones fail. There's a message about
' fedora-loadmodules.service ' which fails, but that seems not interfering with the rest of boot process (I found a reference to the same trouble right here). But there's one service in particular taking 1'30" searching for dependencies, and eventually failing, allways!
I'm not used with systemd / systemctl / journalctl, etc... Only this morning I was able to get journalctl log of last boot, as follows (part of it! Full log-dump is too long to this entry...):
Code: Select all
Jul 21 08:01:33 Bazinga systemd[1]: Job dev-disk-by\x2duuid-527376f4\x2d13ff\x2d4687\x2db9cb\x2d0dc4852e31a6.device/start timed out.
Jul 21 08:01:33 Bazinga systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-527376f4\x2d13ff\x2d4687\x2db9cb\x2d0dc4852e31a6.device.
Jul 21 08:01:33 Bazinga systemd[1]: Dependency failed for /dev/disk/by-uuid/527376f4-13ff-4687-b9cb-0dc4852e31a6.
Jul 21 08:01:33 Bazinga systemd[1]: Dependency failed for Swap.
Jul 21 08:01:33 Bazinga systemd-journal[774]: Forwarding to syslog missed 4 messages.

I'm attaching the whole dump-log herewith.

Could somebody help me to get rid of these hassles, and hurry-up boot of my Mageia?

Thanks!
Attachments
dump-of-journalctl.txt
Dump journalctl log of last Boot, July 21, '16 (Mageia 5, x64_86, KDE 4)
(91.97 KiB) Downloaded 137 times
Last edited by aldQueiroz on Jul 28th, '16, 22:57, edited 2 times in total.
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro

Re: Sluggish boot, failed services with dependencies

Postby gohlip » Jul 22nd, '16, 04:57

What partition is UUID 527376f4-13ff-4687-b9cb-0dc4852e31a6 ?
Is it swap? You can check with 'sudo blkid", "parted -l" or any other.
Provide its output "# fdisk -l" for example.
Then at terminal, let us know content of etc/fstab and " cat /proc/cmdline"

o # blkid
o # fdisk -l
o cat /etc/fstab
o cat /proc/cmdline

Another thing, if plymouth is the source of the long boot, try booting without "splash" and "boot" in the menu.lst.
At grub menu, press 'e' (I think), arrow down to kernel line, arrow right past "quiet" and "splash", backspace to remove them, (do not remove "ro" or "rw") , and press 'b' (I think) to boot.
Is booting much faster? Then let us know and we'll fix plymouth.
If booting is still slow, then it is not plymouth.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Sluggish boot, failed services with dependencies

Postby Bequimao » Jul 22nd, '16, 07:34

Most certainly the installation of Void Linux
https://forums.mageia.org/en/viewtopic.php?f=7&t=11231
has formatted your swap device and given it another UUID.

Please post in addition to the files requested by gohlip
Code: Select all
# cat /boot/grub/menu.lst

and from systemd
Code: Select all
# journalctl -b -p err
# systemd-analyze blame


Best regards,
Bequimão
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Sluggish boot, failed services with dependencies

Postby aldQueiroz » Jul 22nd, '16, 14:50

Bequimao » Jul 22nd, '16, 07:34

Most certainly the installation of Void Linux
https://forums.mageia.org/en/viewtopic.php?f=7&t=11231
has formatted your swap device and given it another UUID.

I don't think so, my friend. I've been experiencing slow boot of my prime Mageia system even before I've installed Void Linux at the second HD... As we say in Brazil, '"one thing is one thing, another is another!" ;)
I will get the requested files, with further data about my system, and post here; but, probably, only tomorrow...

Thanks again for the interest and kindness of you all!
Regards!
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro

Re: Sluggish boot, failed services with dependencies

Postby aldQueiroz » Jul 24th, '16, 22:28

Post by gohlip » Jul 22nd, '16, 04:57
What partition is UUID 527376f4-13ff-4687-b9cb-0dc4852e31a6 ?
Is it swap? You can check with 'sudo blkid", "parted -l" or any other.
Provide its output "# fdisk -l" for example.
Then at terminal, let us know content of etc/fstab and " cat /proc/cmdline"

o # blkid
o # fdisk -l
o cat /etc/fstab
o cat /proc/cmdline

Ok, herewith attached there are the outputs for 'blkid' and 'fdisk -l' (I've got the dump text for those further commands too, but I can attach no more than two files with the post...)
Nevertheless, I'm starting to figure out what's happening; indeed, 'cmdline' output (kernel boot options, isn't it?) includes ' resume=UUID=527376f4-13ff-4687-b9cb-0dc4852e31a6 '; I'm assuming this is a "leftover" of former grub setting 'tryouts'...
So, I'll try to erase that from kernel line (and after, remove Plymouth too -- commands "quiet" and "splash", just to be sure!)

I hope this be enough to boot in an acceptable time. Wish me luck!
Regards!
Attachments
dump-fdisk.txt
(4.39 KiB) Downloaded 143 times
dump-blkid.txt
(450 Bytes) Downloaded 133 times
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro

Re: Sluggish boot, failed services with dependencies

Postby aldQueiroz » Jul 24th, '16, 23:25

Postby gohlip » Jul 22nd, '16, 04:57
What partition is UUID 527376f4-13ff-4687-b9cb-0dc4852e31a6 ?
Is it swap?

Well, it seems that UUID is really be swap... I tried to change for the correct UUID of sda1, but that didn't work... The last boot was still with the same behaviour...
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro

Re: Sluggish boot, failed services with dependencies

Postby doktor5000 » Jul 25th, '16, 03:57

aldQueiroz wrote:I tried to change for the correct UUID of sda1, but that didn't work... The last boot was still with the same behaviour...

How did you change it exactly, and where? Also, did you regenerate the initrds ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Sluggish boot, failed services with dependencies

Postby aldQueiroz » Jul 25th, '16, 16:22

(...)
How did you change it exactly, and where? Also, did you regenerate the initrds ?

I've just replaced UUID reference ('0171d9d5-04ce-46e3-b122-62c2f759f4b3') in kernel line of default stanza of Grub-legacy...
...initrds?! I don't know what it is; I'm afraid that's why boot behaviour didn't change! How do I regenerate initrds?

By the way, I replaced Grub-legacy for Grub 2, and have disabled 'splash quiet' options. The boot became a little faster, but just a little... I don't mind to watch each line of boot process, it's less irritating than watching a turtle-pace Plymouth...!

Thanks for your attention, and patience! :mrgreen:
Regards!
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro

Re: Sluggish boot, failed services with dependencies

Postby Bequimao » Jul 26th, '16, 20:25

Hi,

There must be a second reference in /etc/fstab. Those are the devices to mount at boot time.

The initrd is the first temporary filesystem created in memory at boot. You see it always in the last line of the stanza of grub. You recreate the initrds with the script
Code: Select all
# bootloader-config --action rebuild-initrds

http://mageiadobrasil.com.br/forum/viewtopic.php?f=35&t=1063&p=7079#p7078

Best regards,
Bequimão
Bequimao
 
Posts: 111
Joined: Jun 3rd, '11, 21:51
Location: Minas Gerais, Brazil

Re: Sluggish boot, failed services with dependencies

Postby aldQueiroz » Jul 26th, '16, 22:36

Ok, I'll do it as soon as possible!
Regards!
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro

Re: Sluggish boot, failed services with dependencies

Postby aldQueiroz » Jul 28th, '16, 01:55

Yeah! The problem was an incorrect entry at fstab:
Code: Select all
# Entry for /dev/sdb5 :
UUID=527376f4-13ff-4687-b9cb-0dc4852e31a6 swap swap defaults 0 0

I put that line in comment ...
Code: Select all
# Entry for /dev/sdb5 : ('ghost device')
#UUID=527376f4-13ff-4687-b9cb-0dc4852e31a6 swap swap defaults 0 0

... and it's done! Finnaly!(I could have deleted the entry for good, but I preferred to keep as a 'souvenir'...! :mrgreen: )
Just to be sure, I run again " # bootloader-config --action rebuild-initrds ", and uninstalled also virtualbox-guest-additions to prevent that other failed service related to fedora-loadmodules.service.

Boot time was reduced from almost 4 minutes to about 20 seconds!(thanks to another changing: I moved from KDM to LXDM, with autologin option set! That prevented also a erratic behaviour of ibus-deamon, which was not starting smoothly in all KDE sessions, I don't know why...).
So, I 'll mark this topic as SOLVED!
Thanks everybody for your priceless help!
aldQueiroz
 
Posts: 51
Joined: Oct 18th, '11, 18:44
Location: Brazill, Rio de Janeiro


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest