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

Permission denied #50

Open
stefluhh opened this issue Dec 4, 2022 · 4 comments
Open

Permission denied #50

stefluhh opened this issue Dec 4, 2022 · 4 comments

Comments

@stefluhh
Copy link

stefluhh commented Dec 4, 2022

Hi,

I am trying to get this running but I get permission denied right away when the container tries to start.

F1204 02:17:16.218653       1 main.go:204] open /etc/resolv.conf: permission denied"

Did Cloud run change something so this tool doesn't work anymore?

@ahmetb
Copy link
Owner

ahmetb commented Dec 4, 2022

I'd suspect it's more likely if something about your image or which user you run your process as has changed. I recommend trying to debug yourself in a more minimal repro that doesn't involve runsd.

@markus-wa
Copy link

I'm just starting to use runsd and am experiencing the same problem.

Locally running the image works fine, but in Cloud Run it crashes with this error

terminated: Application failed to start: Failed to create init process: failed to load /bin/runsd: permission denied

@markus-wa
Copy link

actually my issue was running runsd as non-root and without CLOUD_RUN_PROJECT_HASH

is there a way to run runsd as a non-root user - avoiding the need for -user=foo

@ahmetb
Copy link
Owner

ahmetb commented Dec 5, 2022

@markus-wa no (and please do not derail the conversation).

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

3 participants