User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

SOLVED-Raspbian Jessie: failed to start Load Kernel Modules?

Sat Apr 09, 2016 4:17 pm

Keep getting this "Unit systemd-modules-load.service entered failed state."

I want to troubleshoot, and resolve this (my goal is to remove the fail message at boot).



Any ideas? Thanks. I though it might have been I2C (which is disabled in raspi-config), but now, i just dunno.


Here is the boot scroll message:

Image

Failed] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
6.080707] systemd[1]: failed to start Load Kernel Modules.
6.097303] systemd[1]: Unit systemd-modules-load.service entered failed state.




systemctl status systemd-modules-load.service

Code: Select all

pi@raspberrypi:~ $ systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
   Active: failed (Result: exit-code) since Sat 2016-04-09 12:01:28 EDT; 13min ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 85 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 85 (code=exited, status=1/FAILURE)
Last edited by Rive on Sun Apr 10, 2016 4:43 pm, edited 1 time in total.
DNPNWO

User avatar
DougieLawson
Posts: 29333
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Raspbian Jessie: failed to start Load Kernel Modules?

Sun Apr 10, 2016 1:31 pm

Have you changed something in /etc/modules-load.d/*.conf? because it looks like you may have introduced a syntax error or are trying to load a non-existent module.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

DirkS
Posts: 7409
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Raspbian Jessie: failed to start Load Kernel Modules?

Sun Apr 10, 2016 1:43 pm

systemctl status systemd-modules-load.service
Try

Code: Select all

sudo systemctl status systemd-modules-load.service
You should get some more info (last messages logged)

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Raspbian Jessie: failed to start Load Kernel Modules?

Sun Apr 10, 2016 4:02 pm

DougieLawson wrote:Have you changed something in /etc/modules-load.d/*.conf? because it looks like you may have introduced a syntax error or are trying to load a non-existent module.

Code: Select all

sudo nano /etc/modules-load.d/*.conf
/etc/modules-load.d/cups-filters.conf

Code: Select all

# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
lp
ppdev
parport_pc
/etc/modules-load.d/modules.conf

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.

i2c-dev
DirkS wrote: Try

Code: Select all

sudo systemctl status systemd-modules-load.service
You should get some more info (last messages logged)

Code: Select all

pi@raspberrypi:~ $ sudo systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
   Active: failed (Result: exit-code) since Sat 2016-04-09 23:31:27 EDT; 12h 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)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Last edited by Rive on Sun Apr 10, 2016 4:47 pm, edited 1 time in total.
DNPNWO

User avatar
Rive
Posts: 586
Joined: Sat Mar 26, 2016 5:21 pm
Location: USA

Re: Raspbian Jessie: failed to start Load Kernel Modules?

Sun Apr 10, 2016 4:39 pm

Thanks. Resolved.

Looks like it was caused by cups/hplip/hp-setup:

Code: Select all

sudo apt-get install hplip
sudo hp-setup -i
In any event, through trial and error, I stopped the boot fail error by commenting all out like so:

Code: Select all

sudo nano /etc/modules-load.d/*.conf
/etc/modules-load.d/cups-filters.conf

Code: Select all

# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
#lp
#ppdev
#parport_pc
I have a wireless network HP printer, I am going to test to make sure it still works, If so, I will mark this thread as [Solved].
DNPNWO

michigeo
Posts: 9
Joined: Sat Oct 15, 2016 11:32 am

Re: SOLVED-Raspbian Jessie: failed to start Load Kernel Modu

Tue Oct 18, 2016 9:30 pm

I have the same problem with cups, it causes the kernel to fail. I also have a CANON network printer that with cups does not print! My question is how you solved the problem, i did not understand.

thanks in advance

DNPNWO
Posts: 126
Joined: Fri Jul 08, 2016 1:51 am

Re: SOLVED-Raspbian Jessie: failed to start Load Kernel Modu

Tue Oct 18, 2016 9:51 pm

michigeo wrote:I have the same problem with cups, it causes the kernel to fail. I also have a CANON network printer that with cups does not print! My question is how you solved the problem, i did not understand.

thanks in advance
He went into:
sudo nano /etc/modules-load.d/*.conf

and commented out (#) all the following lines like so:

/etc/modules-load.d/cups-filters.conf

# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
#lp
#ppdev
#parport_pc


apbonn
Posts: 2
Joined: Mon Feb 15, 2016 2:15 pm

Re: SOLVED-Raspbian Jessie: failed to start Load Kernel Modu

Thu May 18, 2017 3:16 pm

i ve got the same problem, but inside of /etc/modules-load.d/cups-filters.conf is nothing i could comment out?
How to solve this now?

User avatar
DougieLawson
Posts: 29333
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: SOLVED-Raspbian Jessie: failed to start Load Kernel Modu

Fri May 19, 2017 4:11 pm

apbonn wrote:i ve got the same problem, but inside of /etc/modules-load.d/cups-filters.conf is nothing i could comment out?
How to solve this now?
Just remove that file.

Then reboot and see what journalctl -xe tells you.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

mrpraline
Posts: 1
Joined: Sun May 21, 2017 10:13 am

Re: SOLVED-Raspbian Jessie: failed to start Load Kernel Modu

Sun May 21, 2017 10:52 am

This problem is caused by the cups-filters package. This will install /etc/modules-load.d/cups-filters.conf if it doesn't find a /etc/default/cups file that tells it not to install.
To fix this behavior:
Remove the /etc/modules-load.d/cups-filters.conf file and check that kernel modules now load without errors:

Code: Select all

sudo rm /etc/modules-load.d/cups-filters.conf
sudo systemctl restart systemd-modules-load.service
To make sure the file will not be recreated on the future updates, create a file /etc/default/cups with the following content:

Code: Select all

sudo nano /etc/default/cups

Code: Select all

# do not load parallel port modules
LOAD_LP_MODULES="no"
You may optionally test your work by reinstalling cups-filters and checking that /etc/modules-load.d/cups-filters.conf doesn't exist after te reinstall.

Code: Select all

sudo apt-get install --reinstall cups-filters

Return to “Troubleshooting”

Who is online

Users browsing this forum: itsonlyme, mahjongg and 73 guests