Peppermint OS

Support => Advanced Topics => Topic started by: AndyInMokum on September 03, 2016, 04:33:00 pm

Title: Fail message at boot.
Post by: AndyInMokum on September 03, 2016, 04:33:00 pm
Hi all, my machine again froze after waking from: Suspend.  I was required to do a hard shutdown.  On reboot, instead of receiving the usual fsck clear message.  I'm now getting a longer message with a red Fail in parentheses.  Unfortunately, I can't read the message because the SSD has made the boot time too damn quick.  I've changed from the Xfce4 Power Manager to the Mate Power Manager.  That has slowed down the frequency of the freezes considerably. 

I'm multi-booting, so I've booted into SparkyLinux to run any repairs.   Here's a list of my partitions:
Code: [Select]
andy@sparky-dell-latitude:~$ sudo parted /dev/sda 'print'
[sudo] password for andy:
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system  Flags
 1      3145kB  120GB   120GB   extended               boot
 5      3146kB  21.5GB  21.5GB  logical   ext4
 6      21.5GB  40.8GB  19.3GB  logical   ext4
 7      40.8GB  62.3GB  21.5GB  logical   ext4
 8      62.3GB  81.6GB  19.3GB  logical   ext4
 9      81.6GB  103GB   21.5GB  logical   ext4
10      103GB   120GB   16.9GB  logical   ext4

andy@sparky-dell-latitude:~$
and
Code: [Select]
andy@sparky-dell-latitude:~$ sudo parted /dev/sdb 'print'
Model: ATA WDC WD10JPVX-60J (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  992GB   992GB   primary  ext4
 2      992GB   1000GB  8589MB  primary  linux-swap(v1)

andy@sparky-dell-latitude:~$
[bPeppermint 7[/b] is on: /dev/sda9 and /dev/sda10.   The partitions of the second hard drive are a shared /DATA partition and a swap space.  I've run:
Code: [Select]
sudo fsck -M /dev/sda9
Code: [Select]
sudo fsck -M /dev/sda10and
Code: [Select]
sudo fsck -M /dev/sdb1They all check out fine.
Code: [Select]
andy@sparky-dell-latitude:~$ sudo fsck -M /dev/sda9
fsck from util-linux 2.28.1
e2fsck 1.43.1 (08-Jun-2016)
PM7/: clean, 358059/1310720 files, 2087535/5242880 blocks
andy@sparky-dell-latitude:~$
and
Code: [Select]
ndy@sparky-dell-latitude:~$ sudo fsck -M /dev/sda10
fsck from util-linux 2.28.1
e2fsck 1.43.1 (08-Jun-2016)
PM7/home: clean, 65122/1036320 files, 1912738/4137472 blocks
andy@sparky-dell-latitude:~$
and
Code: [Select]
andy@sparky-dell-latitude:~$ sudo fsck -M /dev/sdb1
[sudo] password for andy:
fsck from util-linux 2.28.1
e2fsck 1.43.1 (08-Jun-2016)
/DATA: clean, 144171/60530688 files, 71270819/242093312 blocks (check in 5 mounts)
andy@sparky-dell-latitude:~$
When I boot into Peppermint 7, it appears to be running fine.  I can't figure out what's causing the Fail alert  :-\.  These random freezes are driving me crazy  >:(.  Where can I find the boot log?  Maybe that'll shed some light on what's happening  ;).
Title: Re: Fail message at boot.
Post by: VinDSL on September 03, 2016, 04:45:57 pm
Where can I find the boot log?  Maybe that'll shed some light on what's happening  ;).

Code: [Select]
╭─vindsl@Boogaloo-5 ~ 
╰─➤  journalctl 

That will give you everything.

There are filters, too.  Hit Ctrl-Home to see the commands.   ;)

EDIT

This might be more useful to you ...

Code: [Select]
╭─vindsl@Boogaloo-5 ~ 
╰─➤  journalctl -b0 --system _COMM=systemd


Title: Re: Fail message at boot.
Post by: AndyInMokum on September 03, 2016, 05:00:39 pm
Where can I find the boot log?  Maybe that'll shed some light on what's happening  ;).

Code: [Select]
╭─vindsl@Boogaloo-5 ~ 
╰─➤  journalctl 

That will give you everything.

There are filters, too.  Hit Ctrl-Home to see the commands.   ;)

EDIT

This might be more useful to you ...

Code: [Select]
╭─vindsl@Boogaloo-5 ~ 
╰─➤  journalctl -b0 --system _COMM=systemd
Thanks John, I'll give that a whirl when I boot back into PM7.  I wish I could get to the bottom of this hard freezing.  I wouldn't have these issues if I could fix it.  It's the only problem I have with PM7, apart from it booting too quick to readerror/fail messages  ;D.
Title: Re: Fail message at boot.
Post by: VinDSL on September 03, 2016, 05:38:05 pm
Happy hunting !   ;)
Title: Re: Fail message at boot.
Post by: emegra on September 03, 2016, 10:24:46 pm
Hi Andy

Would /var/log/boot.log perhaps shed any light on it ?



Graeme
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 03, 2016, 10:47:43 pm
Found the little rascal:
Code: [Select]
[  OK  ] Started Create Volatile Files and Directories.
[FAILED] Failed to start LSB: AppArmor initialization.
See 'systemctl status apparmor.service' for details.
I don't think it's anything very important.  I'd like to clear it up though, if possible.  Any help is much appreciated  ;).

Many thanks to both VinDSL and Emegra for their assistance  ;).
Title: Re: Fail message at boot.
Post by: emegra on September 03, 2016, 11:25:56 pm
Have you run in the terminal
Code: [Select]
systemctl status apparmor.service
any clues there ?




Graeme
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 03, 2016, 11:47:49 pm
Have you run in the terminal
Code: [Select]
systemctl status apparmor.service
any clues there ?




Graeme
That looks fine:
Code: [Select]
andy@andy-Latitude-PM7 ~ $ systemctl status apparmor.service
● apparmor.service - LSB: AppArmor initialization
   Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled)
   Active: active (exited) since zo 2016-09-04 08:24:44 CEST; 4min 54s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2414 ExecStart=/etc/init.d/apparmor start (code=exited, status=0/SUCCESS)

sep 04 08:24:41 andy-Latitude-PM7 systemd[1]: Starting LSB: AppArmor initialization...
sep 04 08:24:41 andy-Latitude-PM7 apparmor[2414]:  * Starting AppArmor profiles
sep 04 08:24:41 andy-Latitude-PM7 apparmor[2414]: Skipping profile in /etc/apparmor.d/di
sep 04 08:24:41 andy-Latitude-PM7 apparmor[2414]: Skipping profile in /etc/apparmor.d/di
sep 04 08:24:44 andy-Latitude-PM7 apparmor[2414]:    ...done.
sep 04 08:24:44 andy-Latitude-PM7 systemd[1]: Started LSB: AppArmor initialization.
Tried rebooting again and the nano second Fail message is still there.  Also the Fail message is back at boot.  There's no record of it in the, /var/log/boot.log file:

Spoiler (click here to view / hide)
[close]

I'm now officially baffled  :-\.
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 12:38:36 am
Have you run in the terminal
Code: [Select]
systemctl status apparmor.service
any clues there ?




Graeme
That looks fine:
Code: [Select]
andy@andy-Latitude-PM7 ~ $ systemctl status apparmor.service
● apparmor.service - LSB: AppArmor initialization
   Loaded: loaded (/etc/init.d/apparmor; bad; vendor preset: enabled)
   Active: active (exited) since zo 2016-09-04 08:24:44 CEST; 4min 54s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2414 ExecStart=/etc/init.d/apparmor start (code=exited, status=0/SUCCESS)

sep 04 08:24:41 andy-Latitude-PM7 systemd[1]: Starting LSB: AppArmor initialization...
sep 04 08:24:41 andy-Latitude-PM7 apparmor[2414]:  * Starting AppArmor profiles
sep 04 08:24:41 andy-Latitude-PM7 apparmor[2414]: Skipping profile in /etc/apparmor.d/di
sep 04 08:24:41 andy-Latitude-PM7 apparmor[2414]: Skipping profile in /etc/apparmor.d/di
sep 04 08:24:44 andy-Latitude-PM7 apparmor[2414]:    ...done.
sep 04 08:24:44 andy-Latitude-PM7 systemd[1]: Started LSB: AppArmor initialization.
Tried rebooting again and the nano second Fail message is still there.  Also the Fail message is back at boot.  There's no record of it in the, /var/log/boot.log file:

Spoiler (click here to view / hide)
[close]

I'm now officially baffled  :-\.
More progress.  It's systemd thing, (naturally  >:().
Code: [Select]
Failed to start LSB: QEMU KVM module loading script.I've disabled the qemu with:
Code: [Select]
systemctl disable qemu-kvmThe fail messages have now disappeared at boot and shutdown/reboot.  Is it safe to completely remove this metapackage and is it recommended.  I see there are security concerns associated with it - many thanks  ;).
Title: Re: Fail message at boot.
Post by: emegra on September 04, 2016, 01:12:58 am
Just out of curiosity have you tried this booting with another kernel ?





Graeme
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 01:40:43 am
Just out of curiosity have you tried this booting with another kernel ?





Graeme
The system freezing happen in every kernel I've tried.  It was happening while we were beta testing too.  I haven't tried the 4.7.2 kernel.  I could give that a go.  I don't expect much though.  The initial thought was a failing memory card.  I've run a couple of system diagnostic from the BIOS.  The memory cards checked out each time.  I've the Intel microcode running.  So the CPU firmware is up to date and optimized for Linux.  The system freezes were MUCH worse with the Xfce4 Power Manager.  I could just about guarantee the system would freeze coming out of suspend and hibernate.  While the Mate Power Manager  is a long way from perfect with applying settings.  It's still light years ahead of the Xfce4 Power Manager on this machine.  The system freezes are really sporadic.  I can't see any fixed pattern.  This is what's making the issue so annoying and difficult to diagnose.
Title: Re: Fail message at boot.
Post by: zebedeeboss on September 04, 2016, 02:17:32 am
Seeing all these problems - I am so happy I just shut my laptop down when not in use.  It only take a min or two to reboot anyway :)

Regards Zeb...
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 02:24:08 am
Seeing all these problems - I am so happy I just shut my laptop down when not in use.  It only take a min or two to reboot anyway :)

Regards Zeb...
I know what you mean.  I'm just a stubon old goat, who thinks because it's there, it should work.  If it doesn't, I want to know why  ;).
Title: Re: Fail message at boot.
Post by: PCNetSpec on September 04, 2016, 02:29:08 am
well qemu-kvm isn't installed by default on my machine so I'd guess it should be safe to remove depending on what added it in the first place .. just FYI here's what installing it on my system would pull in:-

Quote
  cpu-checker ipxe-qemu libboost-random1.58.0 libboost-thread1.58.0
  libbrlapi0.6 libcacard0 libfdt1 libiscsi2 librados2 librbd1 libspice-server1
  libusbredirparser1 libxen-4.6 libxenstore3.0 msr-tools qemu-block-extra
  qemu-kvm qemu-system-common qemu-system-x86 qemu-utils seabios sharutils

So if I were you I'd run a simulated purge
Code: [Select]
sudo apt-get remove --purge -s qemu-kvmand see what it says will be removed .. you should then be able to figure out what pulled it in in the first place.

You could also purge apparmor and check if that helps .. you can always add it back later if you wish
Code: [Select]
sudo apt-get remove --purge apparmor apparmor-notify
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 05:03:42 am
well qemu-kvm isn't installed by default on my machine so I'd guess it should be safe to remove depending on what added it in the first place .. just FYI here's what installing it on my system would pull in:-

Quote
  cpu-checker ipxe-qemu libboost-random1.58.0 libboost-thread1.58.0
  libbrlapi0.6 libcacard0 libfdt1 libiscsi2 librados2 librbd1 libspice-server1
  libusbredirparser1 libxen-4.6 libxenstore3.0 msr-tools qemu-block-extra
  qemu-kvm qemu-system-common qemu-system-x86 qemu-utils seabios sharutils

So if I were you I'd run a simulated purge
Code: [Select]
sudo apt-get remove --purge -s qemu-kvmand see what it says will be removed .. you should then be able to figure out what pulled it in in the first place.

You could also purge apparmor and check if that helps .. you can always add it back later if you wish
Code: [Select]
sudo apt-get remove --purge apparmor apparmor-notify
Cheers, I'll try this a little later on today  ;).
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 03:17:11 pm
Okay, now things just got a whole lot weirder.  My system says that, qemu-kvm is not installed.
Code: [Select]
andy@andy-Latitude-PM7 /var/log $ sudo apt-get remove --purge -s qemu-kvm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'qemu-kvm' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
andy@andy-Latitude-PM7 /var/log $
So to summarize this weirdness.  The Failed to start LSB: QEMU KVM module loading script appears in the, /var/log/boot.log.  Disabling it with, systemctl disable qemu-kvm fixes the Fail notifications.  However qemu-kvm was never installed in the first place.  To add insult to injury, I can't access any of the log files.  Running:
Code: [Select]
xed  /var/log/boot.lognow produces the following:

(http://i.imgur.com/ITaBGum.png)

While it's loading I can see the log text for a split second.  It then reverts to this.  I've tried different log file and using Pluma.  The result is the same as the image above.

Edit: A reboot appears to have fixed the Character coding error.  The log files are now visible.

I tried Graeme's suggestion about trying different kernels and installed the 4.7.2 kernel.  That didn't make any difference.  The first wake up from suspend, the system froze.  I'm back on:
Code: [Select]
andy@andy-Latitude-PM7 /var/log $ uname -r
4.4.0-36-generic
I'm now staring at screen with a vacant look on my face, talk about bewildered  :)).  You just gotta love systemd  >:(!

Title: Re: Fail message at boot.
Post by: PCNetSpec on September 04, 2016, 04:06:05 pm
Well I've nothing about qemu-kvm in my boot.log  :-\

Does
Code: [Select]
locate qemuor
Code: [Select]
locate kvmthrow up anything that looks "wrong" ?
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 04:40:06 pm
Well I've nothing about qemu-kvm in my boot.log  :-\

Does
Code: [Select]
locate qemuor
Code: [Select]
locate kvmthrow up anything that looks "wrong" ?
Here're the requested outputs.  I can't see anything.  There again, I'm not exactly sure what I'm looking for  :-\.   These outputs are colossal and exceed the maximum characters allowed in the forum.  I've copied them to a file and uploaded it to MEGA.  Here's the link: https://mega.nz/#!30V3QKZK!UinBKjVacc9YQCupvgOr8KkI3cVDGrlb1b-Vv6mW_ak (https://mega.nz/#!30V3QKZK!UinBKjVacc9YQCupvgOr8KkI3cVDGrlb1b-Vv6mW_ak).  Thanks for the help.  This one has really got me confused  :-\.

Title: Re: Fail message at boot.
Post by: PCNetSpec on September 04, 2016, 07:39:38 pm
Okay I presume you have gnome-boxes installed ?

It seems that depends on qemu-system-common which has probably set up /etc/rcS.d/K05qemu-kvm to run some other qemu component that isn't installed

I seriously doubt if this is a real "problem"

I'm betting you had this lockup problem before installing gnome-boxes .. right /
Title: Re: Fail message at boot.
Post by: AndyInMokum on September 04, 2016, 11:15:10 pm
Okay I presume you have gnome-boxes installed ?

It seems that depends on qemu-system-common which has probably set up /etc/rcS.d/K05qemu-kvm to run some other qemu component that isn't installed

I seriously doubt if this is a real "problem"

I'm betting you had this lockup problem before installing gnome-boxes .. right /

I've had this lockup issue since the beta testing days.  The system is booting up and shutting down now without any Fail notifications.  That's a good thing  ;).