Azure / custom-script-extension-linux

Azure Custom Script Virtual Machine Extension :new:
Apache License 2.0
108 stars 33 forks source link

Install handler failed for the extension: permission denied #202

Open 450518 opened 1 year ago

450518 commented 1 year ago

Hi team, Running custom script extension on Oracle Linux (8.5) spits out this error in the portal. The VM was some time ago, and trying to install agents on it. What could be the possible fix? [{"code":"VMExtensionHandlerNonTransientError","message":"The handler for VM extension type 'Microsoft.Azure.Extensions.CustomScript' has reported terminal failure for VM extension 'cse-install-agents' with error message: '[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.7/bin/custom-script-shim install\n[stdout]\n\n\n[stderr]\n/bin/sh: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.7/bin/custom-script-shim: Permission denied\n'.\r\n \r\n'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot'"}]}