Hello All,
I am new to Sentry and I am trying to install Sentry on our on-premise server, but I get the error as below.
Traceback (most recent call last):
File “/usr/local/bin/sentry”, line 8, in
sys.exit(main())
File “/usr/local/lib/python2.7/site-packages/sentry/runner/init.py”, line 165, in main
cli(prog_name=get_prog(), obj={}, max_content_width=100)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/sentry/runner/decorators.py”, line 29, in inner
configure()
File “/usr/local/lib/python2.7/site-packages/sentry/runner/init.py”, line 128, in configure
configure(ctx, py, yaml, skip_service_validation)
File “/usr/local/lib/python2.7/site-packages/sentry/runner/settings.py”, line 158, in configure
skip_service_validation=skip_service_validation,
File “/usr/local/lib/python2.7/site-packages/sentry/runner/initializer.py”, line 328, in initialize_app
setup_services(validate=not skip_service_validation)
File “/usr/local/lib/python2.7/site-packages/sentry/runner/initializer.py”, line 370, in setup_services
service.validate()
File “/usr/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 “/usr/local/lib/python2.7/site-packages/sentry/buffer/redis.py”, line 97, in validate
raise InvalidConfiguration(six.text_type(e))
sentry.exceptions.InvalidConfiguration: Error 111 connecting to redis:6380. Connection refused.
Cleaning up…
I try to run Sentry on port 6380 as 6379 is already being occupied by one of our other application running on the same server. I can see that both ports 6379 and 6380 are open based on the output below.
$ ps -ef|grep redis|grep -v grep
polkitd 1342 1318 0 15:15 ? 00:00:05 redis-server *:6379
root 7616 1 0 15:52 ? 00:00:00 redis-server 127.0.0.1:6380
Kindly advise if I am doing something wrong over here.
Please do not hesitate to let me know if any further information is needed from my end.
Any help would be appreciated.
Thanks in advance.
Best Regards