Hi,
I have installed sentry system-wide on ubuntu 18.04 LTS server, using pip install sentry in a virtualenv and running with postgresql. Its running and we are able to loginto the dashboard but there are many errors, like when we click on projects it says “unable to fetch all project stats” I created a django project and used its dsn in our django project which has logging on another sentry , i only changed the DSN, but not getting any Event.
Below is the error printed when i click on “Projects”
*Traceback (most recent call last):
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/base.py”, line 134, in handle_exception
response = super(Endpoint, self).handle_exception(exc)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/rest_framework/views.py”, line 449, in handle_exception
self.raise_uncaught_exception(exc)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/base.py”, line 247, in dispatch
response = handler(request, *args, **kwargs)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/endpoints/organization_projects.py”, line 125, in get
paginator_cls=OffsetPaginator,
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/base.py”, line 335, in paginate
results = on_results(cursor_result.results)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/endpoints/organization_projects.py”, line 118, in serialize_on_result
return serialize(result, request.user, serializer)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/serializers/base.py”, line 41, in serialize
**kwargs
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/serializers/models/project.py”, line 293, in get_attrs
attrs = super(ProjectSummarySerializer, self).get_attrs(item_list, user)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/serializers/models/project.py”, line 257, in get_attrs
attrs = super(ProjectWithTeamSerializer, self).get_attrs(item_list, user)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/api/serializers/models/project.py”, line 143, in get_attrs
environment_ids=self.environment_id and [self.environment_id],
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/utils/services.py”, line 105, in
context[key] = (lambda f: lambda *a, **k: getattr(self, f)(*a, **k))(key)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/tsdb/redissnuba.py”, line 87, in method
return getattr(self.backends[backend], key)(*a, **kw)
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/tsdb/snuba.py”, line 356, in get_range
group_on_time=True,
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/tsdb/snuba.py”, line 284, in get_data
is_grouprelease=(model == TSDBModel.frequent_releases_by_group),
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/utils/snuba.py”, line 705, in query
*kwargs
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/utils/snuba.py”, line 584, in raw_query
return bulk_raw_query([snuba_params], referrer=referrer)[0]
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/utils/snuba.py”, line 630, in bulk_raw_query
query_results = [snuba_query(query_param_list[0] + (Hub(Hub.current),))]
File “/home/sentry/sentryp2.7/local/lib/python2.7/site-packages/sentry/utils/snuba.py”, line 614, in snuba_query
raise SnubaError(err)
SnubaError: HTTPConnectionPool(host=‘127.0.0.1’, port=1218): Max retries exceeded with url: /query (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7eff551dae90>: Failed to establish a new connection: [Errno 111] Connection refused’,))
I followed this tutorial:
Thanks in Advance.