landscape client won't register

I am attempting to connect a client to my new landscape server. One client has already successfully connected, this one has given me issues. The string I am using to enroll it is
sudo landscape-config --computer-title "client-name" --account-name standalone --url --ping-url --ssl-public-key /etc/landscape/server.pem.
This is the same string that was successful last time. The error message I receive is
We were unable to contact the server. Your internet connection may be down. The landscape client will continue to try and contact the server periodically.
Using the following curl statement, I can tell the connection to the server should be fine, though it does seem to hang when resolving the name.
curl --cacert /etc/landscape/server.pem
What can I do to get this client connected to my landscape server? Below is the relevant last few lines of the broker.log file:
sudo tail -n 12 /var/log/landscape/broker.log 2018-06-25 07:30:55,477 INFO [MainThread] Starting urgent message exchange with 2018-06-25 07:31:06,996 ERROR [PoolThread-twisted.internet.reactor-0] Error contacting the server at Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 71, in exchange message_api) File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 45, in _curl headers=headers, cainfo=self._pubkey, curl=curl)) File "/usr/lib/python2.7/dist-packages/landscape/lib/fetch.py", line 113, in fetch raise PyCurlError(e.args[0], e.args[1]) PyCurlError: Error 6: Could not resolve host: server-name 2018-06-25 07:31:06,997 INFO [MainThread] Message exchange failed. 2018-06-25 07:31:06,998 INFO [MainThread] Message exchange completed in 11.52s.

3

1 Answer

As per bogdan's comment above. the solution to my issue was to add a manual entry to /etc.hosts for X.X.X.X server-name on the client computer. Once that was added, not only could I ping server-name without .local, but the registration string from the question worked perfectly.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like