GitLab integration doesn't work

Hello,

I’m trying to set up a GitLab integration for my Sentry on-premise. I run Sentry on-premise with Docker on my computer to play around with Sentry and my aim is to set up a little demo with a GitLab integration. Therefore I have set up a new GitLab instance with Docker.

For the GitLab integration I followed the workflow mentioned in the docs. This leads to the Gitlab Dialog (picture 1), but after clicking ‘Authorize’ I get the following error by Sentry (picture 2). Ich checked the log files which I attached below and it seems to me that there is a problem in the Sentry web process.

I looked for solutions by similar issues but nothing handled my problem. It would be great if someone can explain me how to fix this.

Thanks in advance!
Christian


The log from the GitLab Container (looks good to me):

==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/oauth/authorize?scope=api&state=1f895e18feac471483f2c03884d35dbb&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Fextensions%2Fgitlab%2Fsetup%2F&response_type=code&client_id=55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5" for 172.17.0.1 at 2020-11-04 13:51:06 +0000

Processing by Oauth::AuthorizationsController#new as HTML

Parameters: {"scope"=>"api", "state"=>"1f895e18feac471483f2c03884d35dbb", "redirect_uri"=>"http://localhost:9000/extensions/gitlab/setup/", "response_type"=>"code", "client_id"=>"55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5"}

Completed 200 OK in 382ms (Views: 191.8ms | ActiveRecord: 77.1ms | Elasticsearch: 0.0ms | Allocations: 273724)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/oauth/authorize","format":"html","controller":"Oauth::AuthorizationsController","action":"new","status":200,"time":"2020-11-04T13:51:07.207Z","params":[{"key":"scope","value":"api"},{"key":"state","value":"1f895e18feac471483f2c03884d35dbb"},{"key":"redirect_uri","value":"http://localhost:9000/extensions/gitlab/setup/"},{"key":"response_type","value":"code"},{"key":"client_id","value":"55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5"}],"remote_ip":null,"user_id":null,"username":null,"ua":null,"redis_calls":14,"redis_duration_s":0.004591,"redis_read_bytes":857,"redis_write_bytes":1873,"redis_cache_calls":13,"redis_cache_duration_s":0.004363,"redis_cache_read_bytes":674,"redis_cache_write_bytes":998,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000228,"redis_shared_state_read_bytes":183,"redis_shared_state_write_bytes":875,"correlation_id":"afEk0e3lcra","cpu_s":0.31,"db_duration_s":0.07713,"view_duration_s":0.1918,"duration_s":0.38196,"db_count":16,"db_write_count":0,"db_cached_count":5}


==> /var/log/gitlab/gitlab-workhorse/current <==

{"content_type":"text/html; charset=utf-8","correlation_id":"afEk0e3lcra","duration_ms":391,"host":"localhost:8929","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"http://localhost:9000/extensions/gitlab/setup/?completed_installation_guide","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":200,"system":"http","time":"2020-11-04T13:51:07Z","uri":"/oauth/authorize?scope=api\u0026state=1f895e18feac471483f2c03884d35dbb\u0026redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Fextensions%2Fgitlab%2Fsetup%2F\u0026response_type=code\u0026client_id=55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0","written_bytes":32450}


==> /var/log/gitlab/nginx/gitlab_access.log <==

172.17.0.1 - - [04/Nov/2020:13:51:07 +0000] "GET /oauth/authorize?scope=api&state=1f895e18feac471483f2c03884d35dbb&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Fextensions%2Fgitlab%2Fsetup%2F&response_type=code&client_id=55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5 HTTP/1.1" 200 8523 "http://localhost:9000/extensions/gitlab/setup/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" 3.81


==> /var/log/gitlab/gitaly/current <==

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:09Z","wrapper":2318}

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:09Z","wrapper":2318}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/-/metrics" for 127.0.0.1 at 2020-11-04 13:51:12 +0000

Processing by MetricsController#index as HTML

Completed 200 OK in 41ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 1550)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"time":"2020-11-04T13:51:12.620Z","params":[],"remote_ip":null,"user_id":null,"username":null,"ua":null,"correlation_id":"abb77fa4-e2d9-4376-8397-1e0dafa6bafc","cpu_s":0.05,"db_duration_s":0.0,"view_duration_s":0.00047,"duration_s":0.04123,"db_count":0,"db_write_count":0,"db_cached_count":0}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/help" for 127.0.0.1 at 2020-11-04 13:51:13 +0000

Processing by HelpController#index as */*

Completed 200 OK in 399ms (Views: 391.3ms | ActiveRecord: 0.8ms | Elasticsearch: 0.0ms | Allocations: 362363)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/help","format":"*/*","controller":"HelpController","action":"index","status":200,"time":"2020-11-04T13:51:13.939Z","params":[],"remote_ip":"127.0.0.1","user_id":null,"username":null,"ua":"curl/7.59.0-DEV","correlation_id":"nrZM9bpjvG1","meta.caller_id":"HelpController#index","meta.feature_category":"not_owned","redis_calls":8,"redis_duration_s":0.003524,"redis_read_bytes":1156,"redis_write_bytes":463,"redis_cache_calls":8,"redis_cache_duration_s":0.003524,"redis_cache_read_bytes":1156,"redis_cache_write_bytes":463,"queue_duration_s":0.004526,"cpu_s":0.41,"db_duration_s":0.00085,"view_duration_s":0.39129,"duration_s":0.40207,"db_count":3,"db_write_count":0,"db_cached_count":2}


==> /var/log/gitlab/gitlab-workhorse/current <==

{"content_type":"text/html; charset=utf-8","correlation_id":"nrZM9bpjvG1","duration_ms":416,"host":"localhost:8929","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":200,"system":"http","time":"2020-11-04T13:51:13Z","uri":"/help","user_agent":"curl/7.59.0-DEV","written_bytes":90225}


==> /var/log/gitlab/nginx/gitlab_access.log <==

127.0.0.1 - - [04/Nov/2020:13:51:13 +0000] "GET /help HTTP/1.1" 200 90332 "" "curl/7.59.0-DEV" -


==> /var/log/gitlab/puma/puma_stdout.log <==

{"timestamp":"2020-11-04T13:51:19.589Z","pid":2525,"message":"PumaWorkerKiller: Consuming 6123.47265625 mb with master and 8 workers."}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/-/metrics" for 127.0.0.1 at 2020-11-04 13:51:27 +0000

Processing by MetricsController#index as HTML

Completed 200 OK in 50ms (Views: 0.9ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 1549)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"time":"2020-11-04T13:51:27.647Z","params":[],"remote_ip":null,"user_id":null,"username":null,"ua":null,"correlation_id":"2cb1dbda-7c9d-4696-a317-4306be03adcc","cpu_s":0.07,"db_duration_s":0.0,"view_duration_s":0.00086,"duration_s":0.0502,"db_count":0,"db_write_count":0,"db_cached_count":0}


==> /var/log/gitlab/gitaly/current <==

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:29Z","wrapper":2318}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started POST "/oauth/authorize" for 172.17.0.1 at 2020-11-04 13:51:37 +0000

Processing by Oauth::AuthorizationsController#create as HTML

Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "client_id"=>"55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5", "redirect_uri"=>"http://localhost:9000/extensions/gitlab/setup/", "state"=>"1f895e18feac471483f2c03884d35dbb", "response_type"=>"code", "scope"=>"api", "nonce"=>""}

Redirected to http://localhost:9000/extensions/gitlab/setup/?code=6428aa5962e0c427b8eacf0d3837e0cdaf3436fc5cad63973f08d060a8850394&state=1f895e18feac471483f2c03884d35dbb

Completed 302 Found in 40ms (ActiveRecord: 20.1ms | Elasticsearch: 0.0ms | Allocations: 10722)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"POST","path":"/oauth/authorize","format":"html","controller":"Oauth::AuthorizationsController","action":"create","status":302,"location":"http://localhost:9000/extensions/gitlab/setup/","time":"2020-11-04T13:51:37.478Z","params":[{"key":"utf8","value":"✓"},{"key":"authenticity_token","value":"[FILTERED]"},{"key":"client_id","value":"55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5"},{"key":"redirect_uri","value":"http://localhost:9000/extensions/gitlab/setup/"},{"key":"state","value":"1f895e18feac471483f2c03884d35dbb"},{"key":"response_type","value":"code"},{"key":"scope","value":"api"},{"key":"nonce","value":""}],"remote_ip":null,"user_id":null,"username":null,"ua":null,"redis_calls":1,"redis_duration_s":0.000744,"redis_read_bytes":183,"redis_write_bytes":1527,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000744,"redis_shared_state_read_bytes":183,"redis_shared_state_write_bytes":1527,"correlation_id":"AdNDiqChJH9","cpu_s":0.03,"db_duration_s":0.02006,"view_duration_s":0.0,"duration_s":0.04042,"db_count":4,"db_write_count":1,"db_cached_count":0}


==> /var/log/gitlab/gitlab-workhorse/current <==

{"content_type":"text/html; charset=utf-8","correlation_id":"AdNDiqChJH9","duration_ms":53,"host":"localhost:8929","level":"info","method":"POST","msg":"access","proto":"HTTP/1.1","referrer":"http://localhost:8929/oauth/authorize?scope=api\u0026state=1f895e18feac471483f2c03884d35dbb\u0026redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Fextensions%2Fgitlab%2Fsetup%2F\u0026response_type=code\u0026client_id=55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":302,"system":"http","time":"2020-11-04T13:51:37Z","uri":"/oauth/authorize","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0","written_bytes":225}


==> /var/log/gitlab/nginx/gitlab_access.log <==

172.17.0.1 - - [04/Nov/2020:13:51:37 +0000] "POST /oauth/authorize HTTP/1.1" 302 225 "http://localhost:8929/oauth/authorize" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" -


==> /var/log/gitlab/puma/puma_stdout.log <==

{"timestamp":"2020-11-04T13:51:39.592Z","pid":2525,"message":"PumaWorkerKiller: Consuming 6124.0703125 mb with master and 8 workers."}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/-/metrics" for 127.0.0.1 at 2020-11-04 13:51:42 +0000

Processing by MetricsController#index as HTML

Completed 200 OK in 42ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 1549)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"time":"2020-11-04T13:51:42.657Z","params":[],"remote_ip":null,"user_id":null,"username":null,"ua":null,"correlation_id":"6fbae47d-1789-4463-8236-f91372b6b6a9","cpu_s":0.08,"db_duration_s":0.0,"view_duration_s":0.00045,"duration_s":0.04258,"db_count":0,"db_write_count":0,"db_cached_count":0}


==> /var/log/gitlab/gitaly/current <==

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:47Z","wrapper":2318}

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:51Z","wrapper":2318}

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:51Z","wrapper":2318}

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:51:53Z","wrapper":2318}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/-/metrics" for 127.0.0.1 at 2020-11-04 13:51:57 +0000

Processing by MetricsController#index as HTML

Completed 200 OK in 21ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 1549)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"time":"2020-11-04T13:51:57.621Z","params":[],"remote_ip":null,"user_id":null,"username":null,"ua":null,"correlation_id":"f09651f5-54bd-4824-8874-234e47553d6b","cpu_s":0.04,"db_duration_s":0.0,"view_duration_s":0.00049,"duration_s":0.02065,"db_count":0,"db_write_count":0,"db_cached_count":0}


==> /var/log/gitlab/puma/puma_stdout.log <==

{"timestamp":"2020-11-04T13:51:59.593Z","pid":2525,"message":"PumaWorkerKiller: Consuming 6124.58984375 mb with master and 8 workers."}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/-/metrics" for 127.0.0.1 at 2020-11-04 13:52:12 +0000

Processing by MetricsController#index as HTML

Completed 200 OK in 33ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 1549)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"time":"2020-11-04T13:52:12.613Z","params":[],"remote_ip":null,"user_id":null,"username":null,"ua":null,"correlation_id":"5e662c32-1295-4167-9f73-5d6bdcf5c791","cpu_s":0.04,"db_duration_s":0.0,"view_duration_s":0.00051,"duration_s":0.03271,"db_count":0,"db_write_count":0,"db_cached_count":0}


==> /var/log/gitlab/gitaly/current <==

{"gitaly":2324,"level":"warning","msg":"forwarding signal","signal":23,"time":"2020-11-04T13:52:12Z","wrapper":2318}


==> /var/log/gitlab/gitlab-rails/production.log <==

Started GET "/help" for 127.0.0.1 at 2020-11-04 13:52:14 +0000

Processing by HelpController#index as */*

Completed 200 OK in 446ms (Views: 437.1ms | ActiveRecord: 0.7ms | Elasticsearch: 0.0ms | Allocations: 362313)


==> /var/log/gitlab/gitlab-rails/production_json.log <==

{"method":"GET","path":"/help","format":"*/*","controller":"HelpController","action":"index","status":200,"time":"2020-11-04T13:52:14.506Z","params":[],"remote_ip":"127.0.0.1","user_id":null,"username":null,"ua":"curl/7.59.0-DEV","correlation_id":"3hO6AQ8P2y6","meta.caller_id":"HelpController#index","meta.feature_category":"not_owned","redis_calls":8,"redis_duration_s":0.005033,"redis_read_bytes":1156,"redis_write_bytes":408,"redis_cache_calls":8,"redis_cache_duration_s":0.005033,"redis_cache_read_bytes":1156,"redis_cache_write_bytes":408,"queue_duration_s":0.004192,"cpu_s":0.45,"db_duration_s":0.0007,"view_duration_s":0.43715,"duration_s":0.44588,"db_count":3,"db_write_count":0,"db_cached_count":2}


==> /var/log/gitlab/nginx/gitlab_access.log <==

127.0.0.1 - - [04/Nov/2020:13:52:14 +0000] "GET /help HTTP/1.1" 200 90317 "" "curl/7.59.0-DEV" -


==> /var/log/gitlab/gitlab-workhorse/current <==

{"content_type":"text/html; charset=utf-8","correlation_id":"3hO6AQ8P2y6","duration_ms":461,"host":"localhost:8929","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":200,"system":"http","time":"2020-11-04T13:52:14Z","uri":"/help","user_agent":"curl/7.59.0-DEV","written_bytes":90225}

The log from the sentry_onpremise_web container:

13:51:06 [INFO] sentry.superuser: superuser.request (user_id=1 url=u'http://localhost/extensions/gitlab/setup/?completed_installation_guide' method=u'POST' ip_address=u'172.18.0.1')

13:51:06 [INFO] sentry.integration.gitlab: gitlab.setup.installation-config-view.success (base_url=u'http://localhost:8929' verify_ssl=False client_id=u'55387a80371ba976e0d4f19abc6c36c2e72fe5f0ccb6a9d22bd3e757fbc782a5')

13:51:37 [INFO] sentry.superuser: superuser.request (user_id=1 url=u'http://localhost/extensions/gitlab/setup/?code=6428aa5962e0c427b8eacf0d3837e0cdaf3436fc5cad63973f08d060a8850394&state=1f895e18feac471483f2c03884d35dbb' method=u'GET' ip_address=u'172.18.0.1')

Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response

response = self._get_response(request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response

response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/site-packages/sentry_sdk/integrations/django/views.py", line 51, in callback

return old_callback(*args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/sentry_sdk/integrations/django/views.py", line 51, in callback

return old_callback(*args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view

return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view

return view_func(*args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 227, in dispatch

return self.handle(request, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/sentry/web/decorators.py", line 48, in wrapped

return func(request, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/pipeline_advancer.py", line 55, in handle

return pipeline.current_step()

File "/usr/local/lib/python2.7/site-packages/sentry/pipeline/__init__.py", line 225, in current_step

return step.dispatch(request=self.request, pipeline=self)

File "/usr/local/lib/python2.7/site-packages/sentry/pipeline/__init__.py", line 98, in dispatch

return nested_pipeline.current_step()

File "/usr/local/lib/python2.7/site-packages/sentry/pipeline/__init__.py", line 225, in current_step

return step.dispatch(request=self.request, pipeline=self)

File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view

return view_func(*args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/sentry/identity/oauth2.py", line 237, in dispatch

return pipeline.next_step()

File "/usr/local/lib/python2.7/site-packages/sentry/pipeline/__init__.py", line 253, in next_step

return self.current_step()

File "/usr/local/lib/python2.7/site-packages/sentry/pipeline/__init__.py", line 225, in current_step

return step.dispatch(request=self.request, pipeline=self)

File "/usr/local/lib/python2.7/site-packages/sentry/identity/oauth2.py", line 322, in dispatch

data = self.exchange_token(request, pipeline, code)

File "/usr/local/lib/python2.7/site-packages/sentry/identity/oauth2.py", line 279, in exchange_token

req = safe_urlopen(self.access_token_url, data=data, verify_ssl=verify_ssl)

File "/usr/local/lib/python2.7/site-packages/sentry/http.py", line 117, in safe_urlopen

**kwargs

File "/usr/local/lib/python2.7/site-packages/sentry/net/http.py", line 150, in request

response = _Session.request(self, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request

resp = self.send(prep, **send_kwargs)

File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send

r = adapter.send(request, **kwargs)

File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send

raise ConnectionError(e, request=request)

ConnectionError: SafeHTTPConnectionPool(host='localhost', port=8929): Max retries exceeded with url: /oauth/token (Caused by NewConnectionError('<sentry.net.http.SafeHTTPConnection object at 0x7f1c13d3c110>: Failed to establish a new connection: [Errno 111] Connection refused',))

13:51:37 [ERROR] django.request: Internal Server Error: /extensions/gitlab/setup/ (status_code=500 request=<WSGIRequest: GET u'/extensions/gitlab/setup/?code=6428aa5962e0c427b8eacf0d3837e0cdaf3436fc5cad63973f08d060a8850394&state=1f895e18feac471483f2c03884d35dbb'>)

13:51:37 [WARNING] django.security.csrf: Forbidden (CSRF cookie not set.): /api/1/store/ (status_code=403 request=<WSGIRequest: POST u'/api/1/store/'>)

13:51:37 [ERROR] sentry_sdk.errors: Unexpected status code: 403 (body:










<!DOCTYPE html>

<html lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">

<meta name="robots" content="NONE,NOARCHIVE">

<meta name="viewport" content="width=device-width, initial-scale=1">


<link rel="icon" type="image/png" href="http://localhost:9000/_static/1604418244/sentry/images/favicon.png">


<link rel="apple-touch-icon" href="http://localhost:9000/_static/1604418244/sentry/images/logos/apple-touch-icon.png">

<link rel="apple-touch-icon" sizes="76x76" href="http://localhost:9000/_static/1604418244/sentry/images/logos/apple-touch-icon-76x76.png">

<link rel="apple-touch-icon" sizes="120x120" href="http://localhost:9000/_static/1604418244/sentry/images/logos/apple-touch-icon-120x120.png">

<link rel="apple-touch-icon" sizes="152x152" href="http://localhost:9000/_static/1604418244/sentry/images/logos/apple-touch-icon-152x152.png">


<link rel="mask-icon" sizes="any" href="http://localhost:9000/_static/1604418244/sentry/images/logos/logo-sentry.svg" color="#FB4226">


<link href="/_static/1604418244/sentry/dist/sentry.css" rel="stylesheet"/>




<title>CSRF Verification Failed | Sentry</title>


<script>

window.__initialData = {"languageCode":"en","csrfCookieName":"sc","features":[],"urlPrefix":"http://localhost:9000","needsUpgrade":false,"privacyUrl":null,"isOnPremise":true,"gravatarBaseUrl":"https://secure.gravatar.com","dsn":"http://4795faace13e464f8658b1cfbdb03643@localhost:9000/1","version":{"current":"20.8.0","build":"17e488c41c8fd551367fbf353d3916db8a99dfe0","upgradeAvailable":true,"latest":"20.10.1"},"termsUrl":null,"sentryConfig":{"dsn":"http://4795faace13e464f8658b1cfbdb03643@localhost:9000/1","release":"17e488c41c8fd551367fbf353d3916db8a99dfe0","whitelistUrls":[],"environment":"production"},"apmSampling":0.0,"singleOrganization":true,"user":null,"invitesEnabled":true,"dsn_requests":"","lastOrganization":null,"messages":[],"userIdentity":{"ip_address":"127.0.0.1"},"isAuthenticated":false,"statuspage":null,"supportEmail":"christian.zielke@exxeta.com","distPrefix":"/_static/1604418244/sentry/dist/"};

</script>




<script src="/_static/1604418244/sentry/dist/vendor.js"></script>

<script src="/_static/1604418244/sentry/dist/app.js" data-entry="true"></script>


<script>

// if the ads.js file loads below it will mark this variable as false

window.adblockSuspected = true;

</script>

<script src="/_static/1604418244/sentry/js/ads.js"></script>


</head>


<body class=" narrow">


<div class="app">





<div id="blk_alerts" class="messages-container"></div>

<script>

$(function(){

ReactDOM.render(React.createFactory(SentryApp.SystemAlerts)({

className: "alert-list"

}), document.getElementById('blk_alerts'));

});



</script>

<div id="blk_indicators"></div>

<script>

$(function(){

ReactDOM.render(React.createFactory(SentryApp.Indicators)({

className: "indicators-container"

}), document.getElementById('blk_indicators'));

});



</script>





<div class="container">

<div class="content">


<div class="pattern-bg"></div>

<section class="org-login">

<div class="box box-modal">

<div class="box-header">





<a class="logo-with-action" href="/">


<span class="icon-sentry-logo-full"></span>



</a>


</div>

<div class="box-content with-padding">


<section class="body">

<div class="page-header">

<h2>CSRF Verification Failed</h2>

</div>


<p>A required security token was not found or was invalid.</p>


<p>If you're continually seeing this issue, try the following:</p>


<ol>

<li>Clear cookies (at least for Sentry's domain).</li>

<li>Reload the page you're trying to submit (don't re-submit data).</li>

<li>Re-enter the information, and submit the form again.</li>

</ol>




<p>Read more about <a href="http://en.wikipedia.org/wiki/Cross-site_request_forgery">CSRF on Wikipedia</a>.</p>

</section>


</div>

</div>

</section>


</div>

</div>

<footer>

<div class="container">


<div class="pull-right">

<a href="https://docs.sentry.io/api/">API</a>

<a href="https://docs.sentry.io">Docs</a>

<a href="https://github.com/getsentry/sentry" rel="noreferrer">Contribute</a>

<a href="/out/">Migrate to SaaS</a>

</div>

<div class="version pull-left">Sentry 20.8.0 (17e488c41c8fd551367fbf353d3916db8a99dfe0) <a href="#" title="You're running an old version of Sentry, did you know 20.10.1 is available?" class="tip icon-circle-arrow-up">&nbsp;</a></div>

<a href="/" class="icon-sentry-logo"></a>


</div>

</footer>

</div>




</body>

</html>

)

Seems like you are using localhost as your GitLab instance domain, which would not work as the sentry web instance runs in its own isolated container in an isolated network.

This answer may help you identify your host machine IP visible from the Docker container: https://stackoverflow.com/questions/22944631/how-to-get-the-ip-address-of-the-docker-host-from-inside-a-docker-container

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.