-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extensions Custom Script not running #1356
Comments
This is the same as #1267 |
Seems like some other process is using the custom-script-extension executable. |
@dougclayton, @vrdmr could this be a race condition while the agent is also calling chmod on the file? The extension is crashing while calling the extension executable. I'm wondering if this https://github.com/Azure/WALinuxAgent/blob/master/azurelinuxagent/ga/exthandlers.py#L779 could be the cause (mix with some weird race condition). |
@Diastro I am pretty sure it is a race condition, but I don't know that it involves the chmod. I have traced back that particular error to a line in the custom script extension (bin/custom-script-shim) which executes another file (bin/custom-script-extension) which is what is apparently open, and thus gives the error. So it is likely something that opens the file for writing. Since the WALinuxAgent is what writes both those files in the first place (https://github.com/Azure/WALinuxAgent/blob/master/azurelinuxagent/ga/exthandlers.py#L771), I believe it is where the problem lies. |
I'm facing the same issue with custom-script extension failing with the "text file busy" error also. To make things worst now, after the commit #1397, the WAAGENT fails at an early phase and I can't even ssh into the VM to view the failure. |
Fixed by CSE - Azure/custom-script-extension-linux#153 and Azure/custom-script-extension-linux#155. As a part of the CSE v2.1.2. Closing the issue now. |
I believe this is related to #1269
I saw this happen today in VMs in scale sets in east us. The VM is running WALinuxAgent-2.2.31, and see this in the waagent.log
And see this in /var/log/azure/custom-script/handler.log:
This is an CentOS 7.4 image.
I've attached the waagaent.log
waagent.not-working.log
The text was updated successfully, but these errors were encountered: