getsentry / docker-sentry

Docker Official Image packaging for Sentry
https://sentry.io
Other
349 stars 150 forks source link

upload-sourcemaps failed - [uwsgi-body-read] Timeout reading 65536 bytes. Content-Length: x consumed: 0 left: x` #168

Closed Jakst3r closed 5 years ago

Jakst3r commented 5 years ago

I'm getting an error when uploading larger files to Sentry hosted on our in-house docker server

./node_modules/.bin/sentry-cli releases files "$sentryVERSION" upload-sourcemaps --rewrite --url-prefix "~/assets" ./dist/test/assets
> Analyzing 28 sources
> Rewriting sources
> Adding source map references
> Uploading source maps for release 1aba7b53f2a0ef25f7b7a056df2231c76a173f26
> ~/assets/vendor-5a1257888e1fbca1ff0e3871ca0f99ec.map
█████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9/28
████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  1.94MB/5.98MB (18s)

Docker log:

<SNIP>

sentry_web_01 | [uwsgi-body-read] Error reading 65536 bytes. Content-Length: 6265927 consumed: 0 left: 6265927 message: Client closed connection

<SNIP>

Modifying the sentry.conf.py fixes the issue

File: sentry.conf.py

<SNIP>

SENTRY_WEB_OPTIONS = {
    'workers': 10,
    'socket-timeout': 300, # This fixed the issue
}

<SNIP>
mattrobenolt commented 5 years ago

I think this is a correct assessment and adjustment for your environment. I don’t think we should set this default value for everyone though. Everyone has specific needs to suit themselves.

Jakst3r commented 5 years ago

Fair enough