sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

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

Open alfred-soroush opened this issue 3 years ago • 3 comments

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 avatar Jul 14 '22 19:07 alfred-soroush

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

alfred-soroush avatar Jul 14 '22 19:07 alfred-soroush

@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?

sl0thentr0py avatar Jul 20 '22 10:07 sl0thentr0py

@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

alfred-soroush avatar Jul 20 '22 15:07 alfred-soroush