aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

One red FAILED while booting up the Raspberry2

Sun Jan 17, 2016 10:44 pm

Hello,

this is my third day with my new Raspberry2 - and also my third day with Linux.
(...and you guess it: my first post here! ;) )

Fortunately I found a good book for beginners, which holds my hand while explaining the basics of the Raspberry and also starts to help me get an insight overview on the Linux structure, commands, do's and dont's, etc.

I found the SSH and VNC chapter very interesting, so I decided to implement SSH first and VNC after that, step by step.

It all works: I have access via SSH from my Win8.1-PC to the Raspberry, also the VNC shows my Pi-Desktop.

But now the trouble began (also I used, as described in the book, "xhost +localhost" on the Pi and PC to get real full access from my PC to the Raspberry). Some commands work (i.g. open the leafpad-app) but with mysterious error messages about missing display, etc.

So I switchted back at the Pi and rebooted it. And, as a shocking moment, while I watch the long list of [OK] - suddenly one [FAILED] showed up...

Maybe fixing this one will fix all my other problems... but: I just don't have ANY clue how to find out WHAT EXACTLY failed at the boot - the line scrolls up too fast for me to read anything.

Does any of you have any idea, how to find out, what failed at startup?

Thanks in advance for any help!

Cheers,
Steve

blaablaaguy
Posts: 623
Joined: Sun Sep 27, 2015 3:26 pm

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 8:58 pm

This will sound stupid, but try taking a picture.
This signature intentionally left blank.

aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 9:16 pm

Thanks ;-)
I had the same idea, even tried it with a video (as you can't see anything on the pic) - but it runs to fast to get a sharp and read-able picture... but I'm still working on the video-thing, maybe I get it readable after all...

aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 9:43 pm

OK, got it done faster than expected!
I get an Failed to start Load Kernel Moduls.
See 'systemctl status systemd-modules-load.service' for details.
[...]

Dump question: can I just check that out with nano or leafpad? Or what can I do to get that failed back to OK?

Thanks!!!
Steve
Attachments
20160118-RasPi-Boot-Error_.png
Boot Error VideoPic
20160118-RasPi-Boot-Error_.png (51.21 KiB) Viewed 6133 times

dgordon42
Posts: 754
Joined: Tue Aug 13, 2013 6:55 pm
Location: Dublin, Ireland

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 9:51 pm

Entering

Code: Select all

dmesg
in a terminal will show most of the boot up messages.
Entering

Code: Select all

dmesg | less
will allow you to page up and down (with the Page Up & Page Down keys) through the messages, and

Code: Select all

dmesg | grep fail
will pick out any lines from the dmesg output with the word 'fail' in it.

Hope this helps,
Dave.

dgordon42
Posts: 754
Joined: Tue Aug 13, 2013 6:55 pm
Location: Dublin, Ireland

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 9:56 pm

I get an Failed to start Load Kernel Moduls.
See 'systemctl status systemd-modules-load.service' for details.
[...]

Dump question: can I just check that out with nano or leafpad? Or what can I do to get that failed back to OK?
Just enter

Code: Select all

systemctl status systemd-modules-load.service
in a terminal, and read the result. It's a command.

Dave.

aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 10:01 pm

Dave,
thank you. That was exactly the command I was looking for.

Output (I copied some extra lines as far as I understand it fails something around i2c-dev):

Code: Select all

[    4.679381] systemd[1]: Mounted POSIX Message Queue File System.
[    4.696304] fuse init (API version 7.23)
[    4.709684] systemd[1]: Mounted Debug File System.
[    4.729211] systemd[1]: Started Increase datagram queue length.
[    4.744522] i2c /dev entries driver
[    4.763070] systemd[1]: Started Restore / save the current clock.
[    4.781365] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[    4.813805] systemd[1]: Failed to start Load Kernel Modules.
[    4.825765] systemd[1]: Unit systemd-modules-load.service entered failed state.
[    4.848983] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    4.874352] systemd[1]: Started udev Coldplug all Devices.
[    4.889401] systemd[1]: Time has been changed
[    4.936198] systemd[1]: Started File System Check on Root Device.
[    5.131266] systemd[1]: Starting Create Static Device Nodes in /dev...
[    5.155172] systemd[1]: Mounting FUSE Control File System...
[    5.179325] systemd[1]: Mounting Configuration File System...
[    5.203802] systemd[1]: Starting Apply Kernel Variables...
[    5.228395] systemd[1]: Starting Syslog Socket.
[    5.247029] systemd[1]: Listening on Syslog Socket.
[    5.258184] systemd[1]: Starting Journal Service...
[    5.288811] systemd[1]: Started Journal Service.
Any ideas what this will cause and how to fix it?

Thanks!

Cheers,
Steve

aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

Re: One red FAILED while booting up the Raspberry2

Mon Jan 18, 2016 10:28 pm

Wow, how easy, a ready-to-enter-command...

It returns:

Code: Select all

● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
   Active: failed (Result: exit-code) since Mo 2016-01-18 23:10:11 CET; 1min 17s                                                        ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 86 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1                                                       /FAILURE)
 Main PID: 86 (code=exited, status=1/FAILURE)
I still can't find out, what module or service is causing this error message...

Steve

dgordon42
Posts: 754
Joined: Tue Aug 13, 2013 6:55 pm
Location: Dublin, Ireland

Re: One red FAILED while booting up the Raspberry2

Tue Jan 19, 2016 3:48 pm

I'm no expert on the Linux systemd boot up, but there are a few simple things worth trying.
The error message seems to indicate that systemd (kind of like the Master Control Program) was unable to load a 'Linux Kernal Module', in other words a driver, during the boot up.
The system should load the modules in the directory /etc/modules-load.d. To see what's there, enter

Code: Select all

ls -lh /etc/modules-load.d
My Pi shows

Code: Select all

lrwxrwxrwx 1 root root 10 Sep  5 23:23 modules.conf -> ../modules
This is a 'symbolic link' to the file /etc/modules (../ means Go Up One Directory)
Looking in this file, with

Code: Select all

cat /etc/modules
I've got

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

snd-bcm2835
i2c-dev
To see what modules are actually loaded, use the

Code: Select all

lsmod
command. You will find that there are quite a few modules listed here.

The error message you posted contained the lines
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
These lines are telling you that if you enter the commands

Code: Select all

man systemd-modules-load.service

Code: Select all

man modules-load.d
the system will open the 'man' (Linux Manual) page for that command or system file. You can scroll through the page with the 'Page Up' & 'Page Down' keys, and exit the man page by pressing the 'q' key. The 'man' pages can appear very technical to people who are new to Linux, but they are always worth a read.

Post the output of

Code: Select all

lsmod
and

Code: Select all

cat /etc/modules
from your Pi as a first step, and we can try to figure out what's happening.

Good Luck,
Dave.

aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

Re: One red FAILED while booting up the Raspberry2

Tue Jan 19, 2016 8:03 pm

Hello Dave,

Thanks so much for your help, your time and your detailed postings! Everytime I work through them I learn something new!

Code: Select all

cat /etc/modules
I've got

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

snd-bcm2835
i2c-dev
We have identically content of the file, here's mine:

Code: Select all

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

snd-bcm2835
i2c-dev


The 'man' pages can appear very technical to people who are new to Linux, but they are always worth a read.
For sure, this is really something absolutely new to me. But very detailed - also I still can't use much of the given information right now... :oops:
Post the output of

Code: Select all

lsmod
Here we go:

Code: Select all

[code]Module                  Size  Used by
rfcomm                 34782  4
bnep                   10642  2
bluetooth             328074  8 bnep,rfcomm
cfg80211              399468  0
rfkill                 16799  6 cfg80211,bluetooth
joydev                  9427  0
8192cu                528485  0
evdev                  10552  6
bcm2835_gpiomem         3023  0
uio_pdrv_genirq         2986  0
uio                     8228  1 uio_pdrv_genirq
i2c_dev                 6108  0
snd_bcm2835            19739  6
snd_pcm                75040  1 snd_bcm2835
snd_timer              18668  1 snd_pcm
snd                    52620  15 snd_bcm2835,snd_timer,snd_pcm
fuse                   82598  5
ipv6                  343236  46
I hope all this information is of any help.
If not, as I'm just about my first steps I will format the SD-Card and completely reinstall the Raspbian, as I (not yet) lose any data or any work...

Thanks so much!

Cheers,
Steve

aviationsteve
Posts: 9
Joined: Wed Jan 13, 2016 7:07 pm

Re: One red FAILED while booting up the Raspberry2

Sat Jan 23, 2016 5:01 pm

Hello,

did what I said (as I wasn't able to find the error): completely new install of Rasperian.

Now everything is fine again.

Thanks for the help!!! ;) ;) ;)

Cheers,
Steve

Return to “Beginners”