Landscape (On Premises) client Registration Fails After Applying CIS Level 1 Hardening

I’m unable to register an Ubuntu server to Landscape (On Premises) after applying CIS Level 1 server hardening. The registration works fine for servers not hardened, but fails for those hardened first.

Command used:

sudo landscape-config --computer-title "My Web Server" \
  --account-name standalone \
  --url https://landscape.mydomain.com/message-system \
  --ping-url http://landscape.mydomain.com/ping

Error:

Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory.

Network connectivity seems fine post-hardening. I suspect one of the CIS rules removed or restricted something the Landscape client depends on, but I’m not sure what.

Both the Landscape server and client are running Ubuntu 24.04 LTS

Has anyone encountered this? What should I check or adjust to make Landscape work with CIS-hardened systems?

Thanks in advance!

Check the permissions of /var/lib/landscape/ dir structure.

CIS probably changed your umask making the files here unreadable by landscape.

Changing the permissions or ownership to the landscape user should help.

2 Likes

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