How to snuba install on sentry or sentry pod

Can anybody guide me how to i install/configured scuba on sentry pod or sentry.

Does this not work for you: https://github.com/getsentry/onpremise

If I don’t install the snub using docker container, how should I do to install it and run it? I am using ansible playbook to managing the installation. Thanks so much!

Do these dependants need to run as independent pods or in the sentry worker node ? https://github.com/getsentry/onpremise/blob/131a324af29c57716830c02996e753ee36d58d1b/docker-compose.yml#L17-L22

There’s no other way to run Snuba right now. You can try building it from the source by looking at its Docker file but know that we don’t support this and you’ll be on your own.

These all are completely separate from the Sentry worker. I don’t think they can run side-by-side at all as Sentry uses Python 2.7 whereas Snuba uses Python 3.7.

Hi, BYK, thank you for your reply. I have switched to use docker containers. As for the python version, as you said, sentry can only run using Python 2.7 and Snuba use Python 3.7. So do we need to install Python 3.7 as well?

Besides, If we want to install a certain sentry image version (like 10.0.0), how should I set the version for other services, like snuba? If I only override the sentry-version = 10.0.0 in the .env file, and set the snuba image, relay image to the latest. https://github.com/getsentry/onpremise/blob/131a324af29c57716830c02996e753ee36d58d1b/.env
it will have a problem during the installation of setting up database like the following:

Setting up database...
Creating sentry_onpremise_symbolicator_1 ... 
Creating sentry_onpremise_smtp_1         ... 
Starting sentry_onpremise_redis_1        ... 
Starting sentry_onpremise_redis_1        ... done
Starting sentry_onpremise_zookeeper_1    ... 
Starting sentry_onpremise_zookeeper_1    ... done
Starting sentry_onpremise_clickhouse_1   ... 
Creating sentry_onpremise_postgres_1     ... 
Starting sentry_onpremise_clickhouse_1   ... done
Creating sentry_onpremise_memcached_1    ... 
Starting sentry_onpremise_kafka_1        ... 
Starting sentry_onpremise_kafka_1        ... done
Creating sentry_onpremise_snuba-outcomes-consumer_1 ... 
Creating sentry_onpremise_snuba-sessions-consumer_1 ... 
Creating sentry_onpremise_snuba-consumer_1          ... 
Creating sentry_onpremise_snuba-replacer_1          ... 
Creating sentry_onpremise_snuba-api_1               ... 
Creating sentry_onpremise_smtp_1                    ... done
Creating sentry_onpremise_postgres_1                ... done
Creating sentry_onpremise_snuba-outcomes-consumer_1 ... done
Creating sentry_onpremise_symbolicator_1            ... done
Creating sentry_onpremise_snuba-replacer_1          ... done
Creating sentry_onpremise_snuba-consumer_1          ... done
Creating sentry_onpremise_memcached_1               ... done
Creating sentry_onpremise_snuba-sessions-consumer_1 ... done
Creating sentry_onpremise_snuba-api_1               ... done
upgrade: 1: exec: /etc/sentry/docker-entrypoint.sh: not found
Cleaning up...

Thanks!

Since you are using Docker containers, you don’t need Python anywhere at all. They are bundled in containers already :slight_smile:

We now have releases on on-premise which sets these versions: https://github.com/getsentry/onpremise/releases/

I recommend the latest release, which is 20.6.0.