Skip to content

Install handler failed for the extension: permission denied #202

@450518

Description

@450518

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'"}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions