An error occurred when attempting to automatically configure your install of on premises Landscape server.

Asked by Laci D

I was following the directions from: https://landscape.canonical.com/set-up-on-prem
"sudo apt install landscape-server-quickstart" finishes with the following error message: "An error occurred when attempting to automatically configure your install of on premises Landscape server. You should see the output of the error on your console when exiting this screen.
Once the cause has been determined and the problem fixed, you may run sudo dpkg-reconfigure landscape-server-quickstart to obtain a freshly configured on premise Landscape server.

The console is telling me I have an issue with RabbitMQ:

2021-08-17 18:25:57.834Z INFO landscape-quickstart "Checking local RabbitMQ settings."
su: Permission denied
2021-08-17 18:25:57.851Z ERROR landscape-quickstart "Invalid rabbitmqctl output: ''."

I was looking up manual steps from: https://docs.ubuntu.com/landscape/en/landscape-install-manual and when I try to run rabbitmqctl I get the following error:

root@landscape1:~# rabbitmqctl
su: Permission denied

This is a Ubuntu 18.04.5 LTS - has anyone seen this error before?

Question information

Language:
English Edit question
Status:
Solved
For:
Landscape Client Edit question
Assignee:
No assignee Edit question
Solved by:
Laci D
Solved:
Last query:
Last reply:
Revision history for this message
Simon Poirier (simpoir) said :
#1

It looks like a misconfigured system (e.g. PAM) or hardening (e.g. apparmor) might be breaking things.
Rabbitmqctl wraps its command with su when running as root (uid 0). The permission error seem to indicate that su cannot run as root.

Could you make sure that su can be executed as root? e.g.: su rabbitmq -s /bin/sh

Revision history for this message
Laci D (lacid) said :
#2

Thank you Simon, indeed it was a /etc/pam.d/su issue which was overwritten by my automatization tools.
After restoring the original file things are good.