You are not logged in.
Pages: 1
I get the boot error message that systemd-sysctl has failed to load. I go into a terminal and type
journalctl -u systemd-sysctland i get this error
[root@salander gbj]# journalctl -u systemd-sysctl
Failed to get journal fields: Cannot assign requested addressDoes anyone know what the problem is? Any help would be appreciated.
Offline
Offline
Not sure if I am reading this right but
journalctl --user --user-unit test-user-unitgives me
No journal files were found.
Failed to get journal fields: Cannot assign requested addressOffline
Actually, you focused on the wrong paragraph. The relevant information from the link that HoaS posted is
That message was introduced in systemd 220 [1]: In systemd 219, if journalctl was unable to display the requested log it simply exited with an exit code different than zero and showing no output so errors easily passed unnoticed. Now if journalctl cannot display the requested log, it will also show an error message in the format "Failed to get journal fields: <cause of the failure>".
That error message means that journalctl is unable to find a valid log with the options you specified.
The message you got means that there is no log available for systemd-sysctl, what is the output of the following command?
systemctl status systemd-sysctlOffline
[root@salander gbj]# systemctl status systemd-sysctl
● systemd-sysctl.service - Apply Kernel Variables
Loaded: loaded (/usr/lib/systemd/system/systemd-sysctl.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2015-07-19 19:05:03 GMT; 4h 35min ago
Docs: man:systemd-sysctl.service(8)
man:sysctl.d(5)
Process: 208 ExecStart=/usr/lib/systemd/systemd-sysctl (code=exited, status=1/FAILURE)
Main PID: 208 (code=exited, status=1/FAILURE)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.Offline
Is your system fully updated? Are you using any custom configuration file? Can you post also the output of the following commands?
$ uname -a
$ ls -l -a /usr/lib/sysctl.d/ /etc/sysctl.d/ /run/sysctl.d
# /usr/lib/systemd/systemd-sysctl; echo "result=$?"Offline
Of course. Nothing too fancy here.
[root@salander gbj]# uname -a
Linux salander 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 GNU/Linux[root@salander gbj]# ls -l -a /usr/lib/sysctl.d/ /etc/sysctl.d/ /run/sysctl.d
ls: cannot access /run/sysctl.d: No such file or directory
/etc/sysctl.d/:
total 16
drwxr-xr-x 2 root root 4096 Jul 14 21:40 .
drwxr-xr-x 81 root root 4096 Jul 19 19:48 ..
-rwxrwxrwx 1 root root 4299 Jul 14 21:40 99-sysctl.conf
/usr/lib/sysctl.d/:
total 152
drwxr-xr-x 2 root root 4096 Jul 19 05:30 .
drwxr-xr-x 184 root root 139264 Jul 19 19:11 ..
-rw-r--r-- 1 root root 518 Jul 8 15:19 50-coredump.conf
-rw-r--r-- 1 root root 1297 Jul 8 15:19 50-default.conf/usr/lib/systemd/systemd-sysctl; echo "result=$?"
result=0Offline
Of course. Nothing too fancy here.
/usr/lib/systemd/systemd-sysctl; echo "result=$?" result=0
So it seems it works fine, what happens if you manually restart the service?
systemctl restart systemd-sysctl.service
systemctl status systemd-sysctl.serviceOffline
No errrors. Now that is strange?
[root@salander gbj]# systemctl restart systemd-sysctl.service
[root@salander gbj]# systemctl status systemd-sysctl.service
● systemd-sysctl.service - Apply Kernel Variables
Loaded: loaded (/usr/lib/systemd/system/systemd-sysctl.service; static; vendor preset: disabled)
Active: active (exited) since Mon 2015-07-20 08:04:20 GMT; 11s ago
Docs: man:systemd-sysctl.service(8)
man:sysctl.d(5)
Process: 21870 ExecStart=/usr/lib/systemd/systemd-sysctl (code=exited, status=0/SUCCESS)
Main PID: 21870 (code=exited, status=0/SUCCESS)
Jul 20 08:04:20 salander systemd[1]: Starting Apply Kernel Variables...
Jul 20 08:04:20 salander systemd[1]: Started Apply Kernel Variables.
[root@salander gbj]# Offline
Well, I don't know what to say ![]()
Try rebooting the machine and if the error persists post the full journal output for that boot.
Last edited by mauritiusdadd (2015-07-20 08:10:00)
Offline
Pages: 1