self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

sentry-cli upload ios dSYM get 413 Request Entity Too Large error

Open feeops opened this issue 3 years ago • 10 comments

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Version

22.7.0

Steps to Reproduce

sentry-cli --url https://{server}/ --auth-token {token} upload-dif --org sentry --project {project} xxx.dSYM

Expected Result

sucess

Actual Result

iShot_2022-09-13_15 39 27

And I changed nginx.conf client_max_body_size from 100m to 1000m. But It did not work.

feeops avatar Sep 13 '22 07:09 feeops

Routing to @getsentry/team-mobile for triage. ⏲️

getsentry-release avatar Sep 13 '22 16:09 getsentry-release

Hello @feeops, what version of the sentry-cli are you running?

Kobby-Bawuah avatar Sep 13 '22 16:09 Kobby-Bawuah

Hello @feeops, what version of the sentry-cli are you running?

2.5.2

feeops avatar Sep 14 '22 02:09 feeops

Transferred to this repo as it's related to sentry-cli.

philipphofmann avatar Sep 15 '22 07:09 philipphofmann

It has nothing to do with Nginx. The maximum file size for dsym uploads is configured via system.maximum-file-size - https://develop.sentry.dev/self-hosted/#configuration

kamilogorek avatar Sep 15 '22 08:09 kamilogorek

It has nothing to do with Nginx. The maximum file size for dsym uploads is configured via system.maximum-file-size - https://develop.sentry.dev/self-hosted/#configuration

I check the source code

https://github.com/getsentry/sentry/blob/master/src/sentry/options/defaults.py

system.maximum-file-size default=2**31

I changed it to 10*2**31

But it do not work

feeops avatar Sep 19 '22 03:09 feeops

Transfering this issue to self-hosted, as this CLI is not in control o this behavior. It only outputs what server is returning for the request.

kamilogorek avatar Sep 19 '22 08:09 kamilogorek

@feeops Have you restarted nginx container after making the changes?

Also https://github.com/getsentry/self-hosted/issues/937#issuecomment-828371053 ? :smile:

aminvakil avatar Sep 19 '22 09:09 aminvakil

@feeops Have you restarted nginx container after making the changes?

Also #937 (comment) ? 😄

Yes.I had restart nginx and web

docker  restart sentry-self-hosted-web-1
docker  restart sentry-self-hosted-nginx-1

feeops avatar Sep 19 '22 11:09 feeops

Seems pretty strange that this error is occuring even after restarting nginx and editing the client_max_body_size. The only thing I can think of is that the value of client_max_body_size still isn't high enough

hubertdeng123 avatar Sep 19 '22 17:09 hubertdeng123

Relay and sentry both have upload limits as well, you might want to check your settings for that: https://docs.sentry.io/product/relay/options/#size-limits

emmatyping avatar Sep 26 '22 23:09 emmatyping

Relay and sentry both have upload limits as well, you might want to check your settings for that: https://docs.sentry.io/product/relay/options/#size-limits

It do not work.

feeops avatar Oct 09 '22 08:10 feeops

Sorry, and just to make sure, you restarted the relevant containers after editing the relay config file?

emmatyping avatar Oct 12 '22 00:10 emmatyping

Sorry, and just to make sure, you restarted the relevant containers after editing the relay config file?

yes

feeops avatar Oct 12 '22 14:10 feeops

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Nov 03 '22 00:11 github-actions[bot]