Landscape Client fails to recover from Could not resolve host

Bug #2039327 reported by Alan Baghumian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
New
Undecided
Unassigned

Bug Description

It often happens that the Landscape client fails to recover from 'Could not resolve host' exceptions similar to the following:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/landscape/client/broker/transport.py", line 81, in exchange
    curly, data = self._curl(spayload, computer_id, exchange_token,
  File "/usr/lib/python3/dist-packages/landscape/client/broker/transport.py", line 55, in _curl
    return (curl, fetch(self._url, post=True, data=payload,
  File "/usr/lib/python3/dist-packages/landscape/lib/fetch.py", line 118, in fetch
    raise PyCurlError(e.args[0], e.args[1])
landscape.lib.fetch.PyCurlError: Error 6: Could not resolve host: lds.int.hrizn.cloud
2023-10-13 15:13:36,295 INFO [MainThread] Message exchange failed.
2023-10-13 15:13:36,295 INFO [MainThread] Message exchange completed in 0.00s.
2023-10-13 15:14:36,354 INFO [MainThread] Starting urgent message exchange with https://lds.int.hrizn.cloud/message-system.
2023-10-13 15:14:36,358 ERROR [PoolThread-twisted.internet.reactor-1] Error contacting the server at https://lds.int.hrizn.cloud/message-system.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/landscape/lib/fetch.py", line 116, in fetch
    curl.perform()
pycurl.error: (6, 'Could not resolve host: lds.int.hrizn.cloud')

The solution is to manually restart the service.

Affected version:

$ dpkg -l | grep landscape
ii landscape-client 23.02-0ubuntu1~22.04.1 amd64 Landscape administration system client
ii landscape-common 23.02-0ubuntu1~22.04.1 amd64 Landscape administration system client - Common files

Please let me know if you'd like me to provide additional logs or anything.

Thank you,
Alan

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.