9

I know how to sentry start.

But when I change the sentry.conf.py, how can I make it work?

I run sentry help and can not find sentry stop or restart commond. Is there a way to restart the sentry server?

j0k
  • 22,600
  • 28
  • 79
  • 90
dongwq
  • 99
  • 1
  • 3

3 Answers3

1

I just ran into this problem myself. I was using supervisor to start my sentry server, and for some reason it was not killing sentry when I stopped supervisor. To fix this, I ran sudo netstat -tulpn | grep 9000 to find the process id that was still running. For me, it was gunicorn. Kill that process then start the server again and your new settings should take effect.

John
  • 11
  • 1
0

I'm using systemctl to manage sentry.

Firstly, create an executable file. run_worker

#!/bin/bash

source ~/.sentry/bin/activate
SENTRY_CONF=~/sentry sentry run worker>/var/log/sentry_worker.log 2>&1

Then, create service files. just like:

[Service]
ExecStart={YourPath}/sentry/run_worker
Restart=always
StartLimitInterval=0
[Install]
WantedBy=default.target

Create sentry_web.service sentry_cron.service likewise and use

systemctl --user restart sentry_*

to restart.

Za Ma
  • 81
  • 1
  • 4
-1

If you are running your workers using supervisor, just run the commands to restart all the workers:

supervisorctl
restart all

Or if you want to restart single worker enter:

supervisorctl
status

to get the list of the workers and use:

restart worker_name

It will restart the sentry process and enable your new configurations.

spwin
  • 61
  • 1
  • 1
  • 6
  • You should enter the sentry process name instead of restart all process managed by supervisord – Neo Ko Feb 21 '17 at 06:34