Hello, We have a Centos server to test Azure Update Management. After connecting the vm to the loganalytics workspace and Azure update management, we see the packages that need to be updated.
If we try to update the security and critical updates the job starts and the virtual machine show that the update is in progress, but it fails after exactly 20 minutes without any error.
To troubleshoot the issue we went through the following doc: https://docs.microsoft.com/en-us/azure/automation/troubleshoot/update-management#linux
/var/opt/microsoft/omsagent/run/automationworker/worker.log:2019-06-18 08:10:22 (4231)worker : Get sandbox action returned null data.
2019-06-18 08:12:59 (4231)worker : Get sandbox action returned null data.
2019-06-18 08:14:42 (4231)worker : Worker safe loop non terminal exception. [exception=Traceback (most recent call last):
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py", line 25, in decorated_func
func(*args, **kwargs)
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py", line 194, in routine
sandbox_actions = self.jrds_client.get_sandbox_actions()
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/jrdsclient.py", line 58, in get_sandbox_actions
raise Exception("Unable to get sandbox actions. [status=" + str(response.status_code) + "]")
Exception: Unable to get sandbox actions. [status=503]
]
2019-06-18 08:19:29 (4231)worker : Get sandbox action returned null data.
2019-06-18 08:20:18 (4231)worker : Get sandbox action returned null data.
2019-06-18 08:23:27 (4231)worker : Worker safe loop non terminal exception. [exception=Traceback (most recent call last):
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py", line 25, in decorated_func
func(*args, **kwargs)
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py", line 194, in routine
sandbox_actions = self.jrds_client.get_sandbox_actions()
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/jrdsclient.py", line 51, in get_sandbox_actions
response = self.issue_request(self.httpClient.get(url))
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/curlhttpclient.py", line 229, in get
return self.issue_request(url, headers, self.GET, data)
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/curlhttpclient.py", line 213, in issue_request
"[stacktrace=" + str(traceback.format_exc()) + "]")
Exception: Unknown exception while issuing request. [exception=Http request failed due to curl error. [returncode=28][stderr=]][stacktrace=Traceback (most recent call last):
File "/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/curlhttpclient.py", line 208, in issue_request
"[stderr=" + str(err) + "]")
Exception: Http request failed due to curl error. [returncode=28][stderr=]