I have an Arc-enabled Ubuntu LTS 20.04 server where, in Update management center, manual assessments run fine, but the automated periodic assessments seem to fail.
The summary states:
Assessment failed due to this reason: Execution terminated due to last reported error.
Unexpected return code (2) from command: sudo grep security /etc/apt/sources.list > /tmp/az-update-security.list
2 error/s reported. The latest 2 error/s are shared in detail. To view all errors, review this log file on the machine: /var/lib/GuestConfig/extension_logs/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.42/0.core.log
0.core.log doesn't show any errors, but 0.aa.core.log shows:
Discovering 'security' packages...
WARNING:- SLP:: Return code: 2, Output: | /bin/sh: 1: cannot create /tmp/az-update-security.list: Permission denied
ERROR:Error retrieving available patches: Exception('Unexpected return code (2) from command: sudo grep security /etc/apt/sources.list > /tmp/az-update-security.list', '')
DEBUG: Setting assessment substatus. [Substatus=Error]
ERROR:EXCEPTION during patch operation: Exception('Unexpected return code (2) from command: sudo grep security /etc/apt/sources.list > /tmp/az-update-security.list', '')
ERROR:TO TROUBLESHOOT, please save this file before the next invocation: /var/lib/GuestConfig/extension_logs/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.42/0.aa.core.log
I deleted /tmp/az-update-security.list thinking it was creation/write issue and let the periodic assessment run on its own, but now the only error I see in 0.aa.core.log from the latest run is:
ERROR:Auto-assessment NOT STARTED as arc extension is running. [Attempted=0][ARCSequenceNo=8]<Log file was closed.>
I would like the automated periodic assessments to run successfully.