Landscape-client.service fails to start after reboot

Only on one VM I am getting the issue below every time it is rebooted. I can manually start the service ok. Some assistance fixing this annoyance is appreciated. Thanks, Murray

$ sudo systemctl status landscape-client.service
× landscape-client.service - Landscape client daemons
     Loaded: loaded (/lib/systemd/system/landscape-client.service; enabled; vendor preset: enabled)
     Active: failed (Result: timeout) since Wed 2025-07-09 15:40:23 AWST; 19h ago
       Docs: man:landscape-client(1)
             man:landscape-config(1)
    Process: 942 ExecCondition=/usr/bin/landscape-config --is-registered (code=killed, signal=TERM)
        CPU: 263ms

Jul 09 15:38:53 neccoreapp04 systemd[1]: Starting Landscape client daemons...
Jul 09 15:40:23 neccoreapp04 systemd[1]: landscape-client.service: condition operation timed out. Terminating.
Jul 09 15:40:23 neccoreapp04 systemd[1]: landscape-client.service: Control process exited, code=killed, status=15/TERM
Jul 09 15:40:23 neccoreapp04 systemd[1]: landscape-client.service: Failed with result 'timeout'.
Jul 09 15:40:23 neccoreapp04 systemd[1]: Failed to start Landscape client daemons.

VERSION="22.04.5 LTS (Jammy Jellyfish)"

ii  landscape-client                       23.02-0ubuntu1~22.04.4                  amd64        Landscape administration system client
ii  landscape-common                       23.02-0ubuntu1~22.04.4                  amd64        Landscape administration system client - Common files

There are logs in the /var/log/landscape/ dir, do any of them show anything helpful?
Also, PPA for landscape client has a newer version that might not have issues.

Hi, thanks for the response. I upgraded the landscape client from the PPA and get the same result. I tried to make the landscape-client.service start after various other services without success. There is nothing in any landscape logs until the service is started manually. I had another look at the error below

landscape-client.service: condition operation timed out. Terminating.

and tried commenting out the ExecCondition in the service config file which has fixed the issue. Not sure why that command fails until after the server has completed booting.

/lib/systemd/system/landscape-client.service
[Unit]
Description=Landscape client daemons
Documentation=man:landscape-client(1)
Documentation=man:landscape-config(1)
After=local-fs.target
After=remote-fs.target
After=fcems_ztna.service

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
Group=landscape
#ExecCondition=/usr/bin/landscape-config --is-registered**
ExecStart=/usr/bin/landscape-client
# Don't kill cgroup as child dpkg may restart the service during an upgrade.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.