Open ankit2809 opened 3 years ago
hi @MSSedusch could you pls look at the issue?
I also tried to update aem extension using command "az extension update --name aem" but got the error :
cli.azure.cli.core.extension.operations: Executing pip with args: ['install', '--target', '/home/ankit_gupta1/.azure/cliextensions/aem', '/tmp/tmp3e6o16nw/aem-0.2.1-py2.py3-none-any.whl'] cli.azure.cli.core.extension.operations: Running: ['/opt/az/bin/python3', '-m', 'pip', 'install', '--target', '/home/ankit_gupta1/.azure/cliextensions/aem', '/tmp/tmp3e6o16nw/aem-0.2.1-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir'] cli.azure.cli.core.extension.operations: The folder you are executing pip from can no longer be found.
Can you please try to uninstall the aem extension and reinstall? (maybe even reinstall the Azure CLI completely) I was able to install aem 0.2.1 with the latest Azure CLI version 2.20.0 that you are using and could install the extension on a SLES 15 VM.
I am executing the commands using Azure Cloud shell. Is it possible to reinstall aem here as well ? Also, we are using RHEL 8.2 where this issue is occuring.
yes, that should be possible with
az extension remove --name aem
az extension add --name aem
After removing and adding the extension, now I receive a new error :
(VMExtensionHandlerNonTransientError) The handler for VM extension type 'Microsoft.OSTCExtensions.AzureEnhancedMonitorForLinux' has reported terminal failure for VM extension 'AzureEnhancedMonitorForLinux' with error message: '[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.OSTCExtensions.AzureEnhancedMonitorForLinux-3.0.1.0/installer.py [stdout]
[stderr] File "/var/lib/waagent/Microsoft.OSTCExtensions.AzureEnhancedMonitorForLinux-3.0.1.0/installer.py", line 42 except Exception, e: ^ SyntaxError: invalid syntax '.
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'
The error looks like you are installing the default version of the AEM extension which does not work on RHEL 8.2. Can you install the new version with
az vm aem set -g {} -n {} --subscription {} --install-new-extension
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az vm aem set Extension Name: aem. Version: 0.1.1.
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az vm aem set -g {} -n {} --subscription {}
Expected Behavior
Environment Summary
Additional Context