Error: No such command "celery" on Sentry 9.1.2

CentOS 7

Full log here
gist_github_com/patsevanton/5fdb9a108180b3dd5e18ceaf4bc75a0d

yum install -y epel-release git
vi /etc/selinux/config
reboot
yum install -y git
git clone github_com/getsentry/sentry.git
yum install -y python-pip
cd sentry/
git checkout releases/9.1.x
pip install --upgrade pip
pip install -r requirements-base.txt
sudo yum install -y cargo gcc gcc-c++ libffi-devel libjpeg-devel libxml2-devel libxslt libxslt-devel make
sudo yum install -y openssl-devel postgresql-devel python-devel python-lxml python-nose python2-pip
sudo yum install -y python34 rpm-build rpmdevtools ruby-devel rubygems zlib-devel
pip install -r requirements-base.txt
pip install requests==2.20.1 -U --ignore-installed
pip install -r requirements-base.txt
pip install PyYAML==3.11 -U --ignore-installed
pip install -r requirements-base.txt
sudo sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config
reboot
cd sentry/
curl -sL rpm_nodesource_com/setup_10.x | sudo bash -
sudo yum install -y nodejs
sudo sed -e ‘/nodesource-source/,+6d’ -i /etc/yum.repos.d/nodesource-el7.repo
curl -sL dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install -y yarn
python2 setup.py build
python2 setup.py install
yum install -y download_postgresql_org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y postgresql96 postgresql96-server mc
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl status postgresql-9.6.service
systemctl start postgresql-9.6.service
su - postgres
Create user and databases in postgres
mkdir /etc/sentry
cd /etc/sentry/
yum install -y redis
systemctl start redis
vi sentry.conf.py
/usr/bin/sentry --config /etc/sentry/sentry.conf.py celery worker

[root@sentry-apatsev2 ~]# /usr/bin/sentry --version
sentry, version 10.1.0.dev0
[root@sentry-apatsev2 ~]# /usr/bin/sentry --config /root/sentry.conf celery worker
Usage: sentry [OPTIONS] COMMAND [ARGS]…

Error: No such command “celery”.

That’s not a command to run. I think you’re looking for sentry run worker

1 Like