Hi,
I am using on-premise sentry in a Kubernetes setup. I want to be able to use the S3 feature to upload dsym files. This is enabled through the following flags in sentry.conf.py:
SENTRY_OPTIONS[‘filestore.backend’] = ‘s3’
SENTRY_OPTIONS[‘filestore.options’] = {
‘bucket_name’: env(‘SENTRY_S3_BUCKET_NAME’),
}
While trying to upload dsym files from the sentry-cli using the below command I am getting 404 error.
sentry-cli upload-dif -t dsym --project service-level-reporting --log-level debug .
On enabling debug logs I can see that it is throwing 404 while making the request:
DEBUG 2019-03-15 10:05:34.924500 +01:00 request GET https://sentry.stups-test.zalan.do/api/0/organizations/Sentry/chunk-upload/
Below are some detailed logs on the cli:
DEBUG 2019-03-15 10:28:34.433066 +01:00 request GET https:///api/0/projects/Sentry/service-level-reporting/files/dsyms/unknown/?checksums=*
DEBUG 2019-03-15 10:28:34.473626 +01:00 < HTTP/1.1 404 Not Found
DEBUG 2019-03-15 10:28:34.473969 +01:00 response status: 404
DEBUG 2019-03-15 10:28:34.474046 +01:00 body: {“detail”: “”}error: API request failed
caused by: sentry reported an error: not found (http status: 404)
Below are some detailed logs on the sentry-web pod:
10.2.6.0 - - "GET /api/0/organizations/Sentry/chunk-upload/ HTTP/1.1" 404 267 "-" "sentry-cli/1.40.0" 10.2.23.0 - -"GET /api/0/projects/Sentry/service-level-reporting/files/dsyms/unknown/?checksums=********** HTTP/1.1" 404 261 "-" "sentry-cli/1.40.0"
I have checked my Kubernetes pods that the target S3 bucket is accessible and I am able to list them. Could someone please help us to resolve this issue?
Kind regards
Rajat