You are not logged in.

#1 2014-02-15 10:45:42

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

[Solved] Fails to load systemd-modules.service

Kernel: 3.12.9-2-ARCH

$ systemctl status systemd-modules.service
systemd-modules.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)


Any ideas?

Thanks!

Last edited by hellolj (2014-02-21 11:17:50)

Offline

#2 2014-02-15 10:49:26

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] Fails to load systemd-modules.service

systemd-modules-load.service - Load Kernel Modules

systemctl list-unit-files

Offline

#3 2014-02-15 22:04:44

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

teateawhy wrote:

systemd-modules-load.service - Load Kernel Modules

systemctl list-unit-files

Sorry, I don't catch what you meant. Can you elaborate more on it?

Offline

#4 2014-02-15 22:16:57

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] Fails to load systemd-modules.service

It says "no such file" because you got the name wrong...

Offline

#5 2014-02-15 22:54:36

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: [Solved] Fails to load systemd-modules.service

hellolj wrote:

Kernel: 3.12.9-2-ARCH

$ systemctl status systemd-modules.service
systemd-modules.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)


Any ideas?

Thanks!

Hi,

Random terminal output.

No clear intent or expected outcome.

Any ideas?

Thanks!


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2014-02-15 22:58:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Fails to load systemd-modules.service

Not a Kernel Issue, moving to NC...

Please read https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-02-16 01:48:55

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

Raynman wrote:

It says "no such file" because you got the name wrong...

The following is the partial result of executing "systemctl list-units":

systemd-fsck@dev-sda6.service            loaded active exited    File System Check on /dev/sda6
systemd-journald.service                 loaded active running   Journal Service
systemd-logind.service                   loaded active running   Login Service
[b]systemd-modules-load.service             loaded failed failed    Load Kernel Modules[/b]
systemd-random-seed.service              loaded active exited    Load/Save Random Seed
systemd-remount-fs.service               loaded active exited    Remount Root and Kernel File Systems
systemd-sysctl.service                   loaded active exited    Apply Kernel Variables

And, I checked with "systemctl status systemd-modules-load.service", and it gives:

systemd-modules.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

Offline

#8 2014-02-16 05:00:00

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: [Solved] Fails to load systemd-modules.service

Did you check /usr/lib/systemd/system/systemd-modules-load.service?

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-modules-load

Offline

#9 2014-02-20 14:09:23

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

henk wrote:

Did you check /usr/lib/systemd/system/systemd-modules-load.service?

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-modules-load

Sorry for late reply.

Here is what I have in my  /usr/lib/systemd/system/systemd-modules-load.service

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Load Kernel Modules
Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
Before=sysinit.target shutdown.target
ConditionCapability=CAP_SYS_MODULE
ConditionDirectoryNotEmpty=|/lib/modules-load.d
ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
ConditionDirectoryNotEmpty=|/etc/modules-load.d
ConditionDirectoryNotEmpty=|/run/modules-load.d
ConditionKernelCommandLine=|modules-load
ConditionKernelCommandLine=|rd.modules-load

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-modules-load

I am a noob, cannot find out whethere there is anything wrong with it sad

Last edited by hellolj (2014-02-20 14:09:58)

Offline

#10 2014-02-20 14:28:40

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: [Solved] Fails to load systemd-modules.service

hellolj wrote:

And, I checked with "systemctl status systemd-modules-load.service", and it gives:

systemd-modules.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

You most likely typed "systemctl status systemd-modules.service" instead of "systemctl status systemd-modules-load.service" or else you wouldn't have gotten the not-found error.

Offline

#11 2014-02-20 14:38:44

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

Neburski wrote:
hellolj wrote:

And, I checked with "systemctl status systemd-modules-load.service", and it gives:

systemd-modules.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

You most likely typed "systemctl status systemd-modules.service" instead of "systemctl status systemd-modules-load.service" or else you wouldn't have gotten the not-found error.


Oops, you are right, I mistyped the correct command. Sorry. 

 $ systemctl status systemd-modules-load.service 
systemd-modules-load.service - Load Kernel Modules
 Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
 Active: failed (Result: exit-code) since Fri 2014-02-21; 1min 53s ago
 Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
 Process: 125 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 125 (code=exited, status=1/FAILURE)

Feb 21 01:00:57 arch-hp systemd-modules-load[125]: Inserted module 'vboxdrv'
Feb 21 01:00:57 arch-hp systemd[1]: systemd-modules-load.service: main process exited, code=exited...LURE
Feb 21 01:00:57 arch-hp systemd[1]: Failed to start Load Kernel Modules.
Feb 21 01:00:57 arch-hp systemd[1]: Unit systemd-modules-load.service entered failed state.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Hint: Some lines were ellipsized, use -l to show in full.

Offline

#12 2014-02-20 14:52:37

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: [Solved] Fails to load systemd-modules.service

hellolj wrote:
Hint: Some lines were ellipsized, use -l to show in full.

Could you please read the output you get and follow the hints to see if you get additional information.
Check out https://wiki.archlinux.org/index.php/Sy … emd_errors

Offline

#13 2014-02-21 04:52:57

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

Neburski wrote:
hellolj wrote:
Hint: Some lines were ellipsized, use -l to show in full.

Could you please read the output you get and follow the hints to see if you get additional information.
Check out https://wiki.archlinux.org/index.php/Sy … emd_errors

I tried to follow the steps in the wiki article, but failed to get futher with 'journalctl':

$ systemctl status systemd-modules-load 
systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
Active: failed (Result: exit-code) since Fri 2014-02-21 15:08:35 CST; 1min 3s ago
Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
Process: 127 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 127 (code=exited, status=1/FAILURE)

Feb 21 15:08:35 arch-hp systemd[1]: systemd-modules-load.service: main process exited, code=exited...LURE
Feb 21 15:08:35 arch-hp systemd[1]: Failed to start Load Kernel Modules.
Feb 21 15:08:35 arch-hp systemd[1]: Unit systemd-modules-load.service entered failed state.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Hint: Some lines were ellipsized, use -l to show in full.

$ journalctl -b _PID=127
Failed to parse relative boot ID number '_PID=127'

Offline

#14 2014-02-21 05:37:04

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Fails to load systemd-modules.service

hellolj wrote:
$ journalctl -b _PID=127
Failed to parse relative boot ID number '_PID=127'

Try this instead:

$ journalctl -b 0 _PID=127 

The '-b' flag can optionally be given a negative number to indicate which boot you would like to be shown (for example, 'journalctl -b -1' will show you the previous boot).  So this way you are passing it that optional argument so that it knows for sure that the '_PID=127' is a new switch/argument*.

* Not sure if it would be considered a switch or an argument since it acts like a switch but looks like an argument.

Last edited by WonderWoofy (2014-02-21 05:37:55)

Offline

#15 2014-02-21 06:12:05

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

WonderWoofy wrote:
hellolj wrote:
$ journalctl -b _PID=127
Failed to parse relative boot ID number '_PID=127'

Try this instead:

$ journalctl -b 0 _PID=127 

The '-b' flag can optionally be given a negative number to indicate which boot you would like to be shown (for example, 'journalctl -b -1' will show you the previous boot).  So this way you are passing it that optional argument so that it knows for sure that the '_PID=127' is a new switch/argument*.

* Not sure if it would be considered a switch or an argument since it acts like a switch but looks like an argument.


Thanks for the explaination!!! ; Here is the output by executing the command:

$ journalctl -b 0 _PID=127
-- Logs begin at Tue 2014-02-11 07:50:17 CST, end at Fri 2014-02-21 16:24:44 CST. --
Feb 21 22:06:02 arch-hp systemd-modules-load[127]: Inserted module 'vboxdrv'
Feb 21 22:06:02 arch-hp systemd-modules-load[127]: Failed to find module 'vboxsf'
Feb 21 22:06:02 arch-hp systemd-modules-load[127]: Failed to find module 'vboxvideo'

Also, I reinstalled the virtualbox and host module packages, rebooted but didn't get it fixed

$ pacman -Qs virtualbox
local/virtualbox 4.3.6-3
    Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-guest-iso 4.3.6-1
    The official VirtualBox Guest Additions ISO image
local/virtualbox-host-modules 4.3.6-4
    Host kernel modules for VirtualBox

Last edited by hellolj (2014-02-21 06:12:41)

Offline

#16 2014-02-21 06:23:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,594

Re: [Solved] Fails to load systemd-modules.service

vboxsf and vboxvideo are guest modules, not host modules.

Offline

#17 2014-02-21 09:22:46

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [Solved] Fails to load systemd-modules.service

Scimmia wrote:

vboxsf and vboxvideo are guest modules, not host modules.

Damn, I must have added this when I was first installed virtualbox.

After deleting those two in my /etc/modules-load.d/virtualbox.conf

systemd-modules.service can now be loaded successfully.

Thank you all!

Offline

Board footer

Powered by FluxBB