Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd times out while starting rsyslog #4346

Open
Programie opened this issue Jul 6, 2020 · 5 comments
Open

systemd times out while starting rsyslog #4346

Programie opened this issue Jul 6, 2020 · 5 comments
Labels

Comments

@Programie
Copy link

Programie commented Jul 6, 2020

Expected behavior

rsyslog successfully starts using systemd.

Actual behavior

The rsyslogd process gets started/restarted while invoking "systemctl restart rsyslog" but systemctl waits for something and finally times out.

I could not reproduce the issue on hosts having installed the previous version of rsyslog (8.2006.0-1).

Steps to reproduce the behavior

  • Install rsyslog version 8.2006.0-2 on Debian (I've tested it on Jessie, Stretch and Buster).
  • Installation will fail while trying to start/restart rsyslog due to timeout
  • Trying to restart the service will also result in a systemd timeout

Environment

  • rsyslog version: 8.2006.0-2
  • platform: Debian 8.x Jessie, Debian 9.x Stretch and Debian 10.x Buster

Output

$ systemctl restart rsyslog
Job for rsyslog.service failed because a timeout was exceeded.
See "systemctl status rsyslog.service" and "journalctl -xe" for details.

$ journalctl -u rsyslog
Jul 06 14:29:56 myhostname systemd[1]: Starting System Logging Service...
Jul 06 14:31:26 myhostname systemd[1]: rsyslog.service: Start operation timed out. Terminating.
Jul 06 14:31:26 myhostname systemd[1]: Failed to start System Logging Service.
Jul 06 14:31:26 myhostname systemd[1]: rsyslog.service: Unit entered failed state.
Jul 06 14:31:26 myhostname systemd[1]: rsyslog.service: Failed with result 'timeout'.
Jul 06 14:31:26 myhostname systemd[1]: rsyslog.service: Service hold-off time over, scheduling restart.
Jul 06 14:31:26 myhostname systemd[1]: Stopped System Logging Service.
Jul 06 14:31:26 myhostname systemd[1]: Starting System Logging Service...

@rgerhards
Copy link
Member

I think we had issue with the systemd service file in packaging. Can you give it a new try, pls?

@Programie
Copy link
Author

I just gave it another try but the restart is still failing.

I also saw that the package was not updated in the repository. Maybe that's the issue? The modification time says Sat, 18 Jul 2020 12:28:16 GMT (Unix time: 1595075296).

@rgerhards
Copy link
Member

I also saw that the package was not updated in the repository. Maybe that's the issue? The modification time says Sat, 18 Jul 2020 12:28:16 GMT (Unix time: 1595075296).

let me check if there is something "unexpected" in OBS. May take a day due to other work...

@lumy
Copy link

lumy commented Nov 15, 2020

Hello guys,

I've run into the same trouble.
Version of rsyslog: rsyslogd 8.2010.0 (aka 2020.10). <- From OBS.

Tested on Debian 10 with OBS package and OBS Repository.
This is really problematique as:
Any script will see 'systemctl restart rsyslog' to fail even if it did restart and that block provisioning script.

Any news ?
Also i've tested the package and repository for Unbutu20.04 and it does work.

@spijker
Copy link

spijker commented Jan 11, 2021

Same issue , the different I see between the standard debian repos version or the working ubuntu from OBS itself is that this binary doesn't include the libsystemd.so.0.

ldd /usr/sbin/rsyslogd
linux-vdso.so.1 (0x00007ffc47193000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdae0985000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdae0964000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdae095f000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdae0955000)
libestr.so.0 => /lib/x86_64-linux-gnu/libestr.so.0 (0x00007fdae0751000)
libfastjson.so.4 => /lib/x86_64-linux-gnu/libfastjson.so.4 (0x00007fdae0546000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fdae053b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdae037a000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdae0c5a000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants