waagent failing with custom-script-extension: Text file busy

Open
#188 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, go, linux

Research direction

Start with /var/log/waagent.log and the reported custom-script-shim command, then review the Microsoft.Azure.Extensions.CustomScript 2.0.7 paths and the available waagent version 2.2.46 on RHEL 7.9. Done means determining whether a supported version resolves the “Text file busy” failure and documenting how to install or select that version.

Written by the indexing model from the issue text.

Description

'm running an azure govcloud environment with many VMSS using the CIS RHEL 7.9 image. About 70% of the time my extension scripts fail to run and looking in /var/log/waagent.log see the error
The handler for VM extension type 'Microsoft.Azure.Extensions.CustomScript' has reported terminal failure for VM extension 'fastcore-proxy-MSILinuxExtension1' with error message: '[ExtensionOperationError] Non-zero exit code: 1, /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-shim install [stdout] + /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension install /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-shim: line 77: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension: Text file busy [stderr] '. 'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot'

Googling for answers I found many experiencing same issue on CentOS. The microsoft repo (rhui-1.microsoft.com) I'm using is allowing me to only set version 2.2.46.

Is there a known version of waagent that fixes this problem on RHEL 7.9 and if so any documentation on how I could install that particular version?

Dominant language
Go
Stars
113
Forks
46
Avg merge
4d 15h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/custom-script-extension-linux

All issues in Azure/custom-script-extension-linux

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.