Skip to content
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

Startup script doesn't run in the gcve-monitoring module #89

Open
JohnHales opened this issue Jan 15, 2025 · 0 comments
Open

Startup script doesn't run in the gcve-monitoring module #89

JohnHales opened this issue Jan 15, 2025 · 0 comments

Comments

@JohnHales
Copy link

JohnHales commented Jan 15, 2025

The Startup Script doesn't run as it exists today in the gcve-monitoring module. When this doesn't run, the health check fails. When that fails, the instance is replaced over and over. When I logged in and ran sudo journalctl -u google-startup-scripts.service, I get the message shown in the screenshot here.

The key is "/usr/bin/env: bash\r : No such file or directory and then the script ends with exist status 127. The odd thing is that is I manually copy and run the startup script, it runs as expected.

Upon further investigation, it appears to be an issue when run from a Windows Server, but works OK from CloudShell (and presumably any other Linux environment). Maybe update the Readme with the requirement to run from Linux or update the editor (such as VS Code) to handle correctly (just in Linux) or run the git config core.autocrlf false before cloning the repository.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant