I just installed the sentry via Docker. Here is the instructions I followed. https://docs.sentry.io/server/installation/docker/
I created a web app locally using http-server. I try to send event to the sentry service using Raven-JS. Sentry can get the event. But meanwhile I get the error like this:
ConnectionError: HTTPConnectionPool(host=‘localhost’, port=8000): Max retries exceeded with url: /app/js/controllers.js (Caused by NewConnectionError(’<requests.packages.urllib3.connection.HTTPConnection object at 0x7f123f554dd0>: Failed to establish a new connection: [Errno 111] Connection refused’,))
11:05:58 [WARNING] sentry.lang.javascript.processor: Disabling sources to localhost:8000 for 300s
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/sentry/utils/safe.py”, line 29, in safe_execute
result = func(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/sentry/plugins/sentry_webhooks/plugin.py”, line 103, in send_webhook
verify_ssl=False,
File “/usr/local/lib/python2.7/site-packages/sentry/http.py”, line 158, in safe_urlopen
**kwargs
File “/usr/local/lib/python2.7/site-packages/requests/sessions.py”, line 475, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python2.7/site-packages/raven/breadcrumbs.py”, line 297, in send
resp = real_send(self, request, *args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/sessions.py”, line 596, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python2.7/site-packages/sentry/http.py”, line 108, in send
return super(BlacklistAdapter, self).send(request, *args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/adapters.py”, line 487, in send
raise ConnectionError(e, request=request)
I guess the Sentry in Docker can not “communicate” with the world outside. How should I do the configuration in order to make it right? Do you guys have any idea? Thanks in advance.