waagent failing with custom-script-extension: Text file busy
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
- Domain
- cloud, devops, operating-systems
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/custom-script-extension-linux
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Azure/custom-script-extension-linux
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·