Skip to content

Slapd-ltb service fails after server's reboot on RHEL8 #123

Open
@damiencassu

Description

@damiencassu

Hello,

I recently noticed something strange after installing the latest 2.5.18 slapd-ltb rpms on a RHEL8 server.

Even if the slapd-ltb service is enabled in systemctl, the startup fails when the server starts up with the following error in slapd logs:

daemon: bind(7) failed errno=99 (Cannot assign requested address)

A simple attempt to start the slapd-ltb service (either with systemctl or with slapd-cli start) works perfectly.

It seems the process is starting too soon while the network services are not fully ready yet.

I've tuned a little bit the /usr/lib/systemd/system/slapd-ltb.service service file replacing

After=syslog.target network.target

by

After=syslog.target network-online.target

And now it works as expected.

  • Is there a reason to not use network-online.target from the begining ?
  • Are you aware of this issue on rhel8 (and maybe 9 ?) ? (I've tested it on rhel7 and the issue is not there)

Thanks a lot for your insights.
Have a nice weekend

Regards,

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions