You are not logged in.

#1 2015-07-19 19:22:18

gbj13
Member
Registered: 2010-05-06
Posts: 109

Problem with journalctl

I get the boot error message that systemd-sysctl has failed to load.  I go into a terminal and type

journalctl -u systemd-sysctl

and i get this error

[root@salander gbj]# journalctl -u systemd-sysctl
Failed to get journal fields: Cannot assign requested address

Does anyone know what the problem is?  Any help would be appreciated.

Offline

#2 2015-07-19 20:43:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Problem with journalctl


Jin, Jîyan, Azadî

Offline

#3 2015-07-19 21:12:15

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problem with journalctl

Not sure if I am reading this right but

 journalctl --user --user-unit test-user-unit

gives me

No journal files were found.
Failed to get journal fields: Cannot assign requested address

Offline

#4 2015-07-19 23:22:48

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Problem with journalctl

Actually, you focused on the wrong paragraph. The relevant information from the link that HoaS posted is

mauritiusdadd wrote:

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-sysctl

About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#5 2015-07-19 23:41:17

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problem with journalctl

[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

#6 2015-07-20 07:50:03

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Problem with journalctl

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=$?"

About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#7 2015-07-20 07:58:42

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problem with journalctl

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=0

Offline

#8 2015-07-20 08:03:24

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Problem with journalctl

gbj13 wrote:

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.service

About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#9 2015-07-20 08:06:04

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problem with journalctl

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

#10 2015-07-20 08:09:45

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Problem with journalctl

Well, I don't know what to say hmm
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)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

Board footer

Powered by FluxBB