Inconsistend behaviour with custom script at linux

Open
#162 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
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, linux, shell
Domain
cloud, devops

Research direction

Start by reviewing /var/log/azure/custom-script/handler.log and /var/log/waagent.log, then compare the custom-script execution with running the same shell script over SSH. Investigate the intermittent termination and the read-only filesystem error. Done means identifying a reproducible cause and documenting or implementing a fix for the extension behavior.

Written by the indexing model from the issue text.

Description

I am executing a custom script on an azure Linux machine, the custom script is referring to a shell script which has few long-running commands.

I have observed intermittently different behaviors with the output of the command

  • Sometimes the long-running command is getting terminated in between without any error.
  • Sometimes command failed with error:
    cannot touch '/etc/<application>/repl-force-mysql': Read-only file system

Though, If I execute the same shell script on the terminal of the same machine after login via SSH script is succeeding.

  • /var/log/azure/custom-script/handler.log
  • /var/log/waagent.log

I didn't see any error in the above-mentioned logs. Please share email Id where I can share these logs.

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.