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

Checksum prevents startup script from installing the my-app.service into /etc/systemd/system #3735

Open
patterns opened this issue Jan 16, 2024 · 1 comment
Assignees
Labels
🚨 This issue needs some love. samples Issues that are directly related to samples.

Comments

@patterns
Copy link

if [ "$checksum" != "ec78e9067f45f6653a6749cf922dbc9d79f80027d098c90da02f71532b5cc967" ]; then

After seeing the console log, it states that the new checksum is 3c6816ebd2d5f853fcf8579517380b03677a8aad43d193863ecc197a60bed52e

The reproduction steps are in the quick start guide for GCE -- https://cloud.google.com/go/getting-started/getting-started-on-compute-engine#use_a_startup_script_to_initialize_an_instance

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jan 16, 2024
@subfuzion subfuzion added stale: old Pull request is old and needs attention. 🚨 This issue needs some love. labels Jul 31, 2024
@subfuzion
Copy link
Contributor

Updating this issue with a note for follow-up. The sample in question uses both curl and gsutil (which is no longer recommended). The sample should be updated to remove both commands in favor of using gcloud storage cp, which performs automatic checksum validation (which makes the manual check shown in the sample unnecessary).

References:
https://cloud.google.com/storage/docs/data-validation#cli
https://cloud.google.com/sdk/gcloud/reference/storage
https://cloud.google.com/storage/docs/gsutil

@subfuzion subfuzion removed the stale: old Pull request is old and needs attention. label Jul 31, 2024
@subfuzion subfuzion self-assigned this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. samples Issues that are directly related to samples.
Projects
None yet
Development

No branches or pull requests

2 participants