Skip to content

PermissionError: [Errno 13] Permission denied: '/dev/null' #1496

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

Closed
alfred-soroush opened this issue Jul 14, 2022 · 3 comments · Fixed by #2579
Closed

PermissionError: [Errno 13] Permission denied: '/dev/null' #1496

alfred-soroush opened this issue Jul 14, 2022 · 3 comments · Fixed by #2579
Assignees
Labels
Integration: Serverless Triaged Has been looked at recently during old issue triage

Comments

@alfred-soroush
Copy link

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.4.3

Steps to Reproduce

  1. Add sentry-sdk to django
  2. Host on GCP CloudRun
  3. sentry_sdk.init() throws the mentioned exception

Expected Result

No exception

Actual Result

image

@alfred-soroush
Copy link
Author

Issue suddenly started occurring today. No changes were made to sdk version and it's been running smoothly until now

@sl0thentr0py
Copy link
Member

@alfred-soroush that can only happen if /dev/null somehow changes permissions, which in general is read/write for every user. Is something else in your application writing to /dev/null and possibly changing its permissions by mistake?

@alfred-soroush
Copy link
Author

@alfred-soroush that can only happen if /dev/null somehow changes permissions, which in general is read/write for every user. Is something else in your application writing to /dev/null and possibly changing its permissions by mistake?

No changes were made from our end as we don't manage permissions manually and everything is running on default cloudrun configs. the application is a simple django app running on cloudrun using terraform image garbetjie/cloud-run/google v 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integration: Serverless Triaged Has been looked at recently during old issue triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants