Azure Monitor upgrade fails to install GuestHealthLinuxAgent on ubuntu 20.04
Today I wanted to upgrade Azure Monitor for my VM.
Ubuntu 20.04 LTS.
Process downloaded extension "GuestHealthLinuxAgent-1.0.39", tried to install, but failed.
Supported Distros are only 16 and 18 version of Ubuntu, specified in installation files.
I have another VM that is also Ubuntu 20.04 LTS, I had Azure Monitor installed at 23rd March with extension "GuestHealthLinuxAgent-1.0.33".
There was no restrictions for Ubuntu versions that time and it works great.
"GuestHealthLinuxAgent-1.0.34" introduced restrictions.
Would it be horrible, if I modified file that holds requirements and added version 20?
As "GuestHealthLinuxAgent-1.0.33" works fine on Ubuntu 20.04, I imagine "1.0.39" should work fine too...
What could go wrong?
Even if I change requirements in "constants.py", they get overwritten to defaults(downloaded again) each time install is triggered from Azure Monitor section.
Next is to see what if I restrict overwriting that file.
Sign in to comment
I set "constants.py" as write protected, but looks like it failed because of that as well.
INFO ExtHandler [Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthLinuxAgent-1.0.39] Unzipping extension package: /var/lib/waagent/Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthLinuxAgent__1.0.39.zip
INFO ExtHandler ExtHandler Error while unzipping extension package: [Errno 1] Operation not permitted: '/var/lib/waagent/Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthLinuxAgent-1.0.39/scripts/constants.py'
python3: 2021-07-20T07:54:41.666158Z ERROR ExtHandler ExtHandler Event: name=Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.GuestHealthLinuxAgent, op=Download, message=[Errno 1] Operation not permitted: 'constants.py', duration=0
Hello @Lauris - Thanks for reaching out and being patient. We are currently investigating this and will get back to you shortly.