2
0

222 Commits

Author SHA1 Message Date
Burak Yigit Kaya
83160e8bdb fix(gcb): We need to pull SENTRY_IMAGE on GCB
Follow up to #514.
2020-05-25 10:18:18 +03:00
Burak Yigit Kaya
3e7df7be17 fix(install): Skip pull when SENTRY_IMAGE is set (#514)
This also uses SENTRY_VERSION instead of hard-coding `:latest` as the tag when pulling (follow up to #509).
2020-05-25 01:11:19 +03:00
Burak Yigit Kaya
fe1f23f10f fix(zk): Fix zookeper upgrade to 5.5.0 (#511)
Fixes the "logs found but no snapshot" error when upgrading from a
short-lived older version. Fixes #472.

See https://issues.apache.org/jira/browse/ZOOKEEPER-3056.
2020-05-24 23:52:30 +03:00
Burak Yigit Kaya
9793bb7157 meta(versioning): Reword versioning sect. now that we have version tags (#510) 2020-05-23 22:49:31 +03:00
Burak Yigit Kaya
b651fc7fda fix(versioning): Fix leftover snuba:latest in cleanup
Follow up to #509.
2020-05-23 22:38:30 +03:00
Burak Yigit Kaya
e8d8cda688 feat(versioning): Add SENTRY_VERSION env var for sentry, snuba, relay (#509)
This is in preparation for the upcoming CalVer transition. Introduces a general `$SENTRY_VERSION` env variable, defaulting to `latest`.
2020-05-23 06:24:44 +03:00
Burak Yigit Kaya
9f39e3cea1 fix(uwsgi): Make sure uWSGI talks proper HTTP/1.1 (#499)
This patch brings back the HTTP/1.1 related settings for uWSGI to fix #486 as apparently Relay tries to talk to Sentry Web with keep alives where uWSGI terminates the connection unexpectedly. It also ports some configs for uWSGI and nginx from single-tenant.
2020-05-22 16:12:20 +03:00
Burak Yigit Kaya
c34484ddbf feat(kafka): Increase max message size (#497)
Fixes #402.
2020-05-18 19:22:54 +03:00
Lyn Nagara
29c6ef58ad feat(snuba): Skip snuba migrate task (#495) 2020-05-18 09:16:30 +03:00
Markus Unterwaditzer
adda25ee23 feat: Instruct users to migrate TSDB (#430)
Tested this in a Ubuntu VM. The output of `date` is not too pretty but at least localized (so D/M vs M/D is not confusing)

## What is the TSDB migration?

We're effectively deprecating all TSDB backends but `sentry.tsdb.redissnuba.RedisSnubaTSDB`. We cannot reasonably support any other backend due to the fact that we would have to reimplement each of the backends in Relay, which is written in a different language. Also, like with deprecating mysql support, we don't really have the capacity to support things we do not use ourselves.

## Migration

`install.sh` should rewrite your configuration automatically and define a cutover date such that no data is lost. Before the cutover date, data is written to two backends at once, Redis and Snuba, and read from one, Redis. After the cutover date, event-related metrics will be read from Snuba which matches what we have on sentry.io.

## Manual migration guide for TSDB

In case `install.sh` is unable to migrate your files you will be given basic instructions on the console that essentially tell you to completely delete all TSDB config and paste the new, standard one. If for some reason you cannot say goodbye to your existing TSDB config, please create a new issue in this repo and cc @untitaker on it.
2020-05-12 12:02:40 +02:00
Mohamed Laradji
a74a0cb221 feat(slack-integration): add reference to guide (#484)
This PR simply adds a reference to the guide for setting up the Slack integration. The url was obtained from [#249](https://github.com/getsentry/onpremise/issues/249#issuecomment-547117033).
2020-05-09 23:11:11 +03:00
Mohamed Laradji
45320c6e86 fix(install.sh): skip checking for sse4 2 flag if kvm was detected (#485)
This PR disables checking for the SSE4.2 flag, which may not be present if the server is running in a VM even if SSE4.2 is in fact available to use (ClickHouse/ClickHouse#20). The KVM check was obtained from a [comment](https://github.com/ClickHouse/ClickHouse/issues/20#issuecomment-226849297) in that issue.

If SSE4.2 is not actually available in the VM, then the installation script may fail in an unpredictable way. Perhaps we can add a keyword argument to the script to let the user decide if they want to skip the check.
2020-05-09 23:10:08 +03:00
Eric Feng
ad5b76fd29 Updating documentation link (#467)
Fixes #466.
2020-05-06 18:11:31 +03:00
wodry
b467e1c5b5 docs(sentry): Fix typo in example Sentry config (#471) 2020-05-06 17:54:00 +03:00
Burak Yigit Kaya
024024b198 ref(relay): More robust Relay credentials setting (#470)
This patch does two things:

1. Separate creating of Relay credentials from syncing them to Sentry config
2. Has a more flexible Relay credentials check and sync: look for the quoted public key in the config file, if it is there, assume this must be correctly set as it is very unlikely to have that random key in a different context with quotes around. The second one is to allow having other whitelisted relay keys by using an append method when adding the new key.
2020-05-04 21:44:34 +03:00
Burak Yigit Kaya
3c190eb138 upgrade(confluent): Upgrade cp-stack to 5.5.0 (#465)
Suggested [on the forum](https://forum.sentry.io/t/connection-to-kafka-failed-when-installing/9162/10?u=byk) and the [upgrade docs](https://kafka.apache.org/25/documentation.html#upgrade) suggest upgrading from `5.1.x` without a rolling upgrade should be fine by just upgrading the code.
2020-05-04 21:36:04 +03:00
Burak Yigit Kaya
74c0d4c257 fix(nginx): Fix proxy settings for Sentry (#463)
Fixes #447.

This patch should also fix issuer regarding large uploads such as minidumps by turning off any buffering.
2020-05-04 13:36:05 +03:00
Burak Yigit Kaya
4040e68267 upgrade(clickhouse): Use 19.17 as it seems to be fixing some issues (#464)
Fixes #433.
2020-05-02 08:07:12 +03:00
sentry-update-license-date[bot]
6308970ea7 license: Update BSL change date (#461) 2020-05-01 16:24:30 +03:00
Burak Yigit Kaya
3244a966ec fix(relay): Use Docker Hub as relay image registry (#462)
We regularly prune old Google Cloud Build images and also GCB registry is not accessible to everyone all the time (firewall settings, being in China, etc.)

Fixes #445.
2020-05-01 16:23:50 +03:00
Burak Yigit Kaya
8c053b661a feat(relay): Use a simpler hack for credentials (#452) 2020-04-27 21:35:59 +03:00
Burak Yigit Kaya
ecccb211aa fix(relay): Fix failed to write credentials (#450) 2020-04-27 20:54:59 +03:00
Joshua Gigg
d31f46831e Use restart-policy for nginx & relay (#448) 2020-04-27 18:15:17 +03:00
Burak Yigit Kaya
67ef528168 ci(logs): Show docker-compose ps and logs on fail (#443) 2020-04-27 17:10:22 +03:00
Radu Woinaroski
e97da7c56f feat(relay): Add Relay to onpremise installation (#421)
Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
2020-04-24 15:31:59 +03:00
Burak Yigit Kaya
b2076eaeed ref(install): Reduce noise on docker-compose pull (#442) 2020-04-24 15:13:38 +03:00
Lyn Nagara
c20956527c build: Update Snuba commands (#434)
Update the consumer and replacer commands. These now take a storage
instead of a dataset name as per https://github.com/getsentry/snuba/pull/875
and https://github.com/getsentry/snuba/pull/861.

This would require `getsentry/snuba:ab2e49cc1f475e59a037d882eb1cecddd23596b9` or more recent to work.
2020-04-22 22:04:57 +03:00
Burak Yigit Kaya
3c5ab100c2 docs(readme): Remove link to Discord (#438)
We don't provide great support for Sentry Server over at Discord so remove the reference to it from the README
2020-04-22 18:45:10 +03:00
Markus Unterwaditzer
88991582c5 fix: Add snuba outcomes consumers to setup (#426)
* feat: Add snuba outcomes consumers to setup

* fix: Rename all references of snuba-consumer

* ref: Rename back to snuba-consumer

* fix: Change auto-offset-reset

* fix: Attempt to fix CI
2020-04-03 15:16:26 +02:00
sentry-update-license-date[bot]
680fe082fe license: Update BSL change date (#425)
Co-authored-by: sentry-update-license-date[bot] <57668832+sentry-update-license-date[bot]@users.noreply.github.com>
2020-04-01 16:59:13 +03:00
ahmadali shafiee
d0ba529401 add volume for clickhouse logs (#414) 2020-03-30 20:42:41 +03:00
Joe Adams
a7c5a32e36 Fix regression from #407 for requirements install (#411)
Changing the sentry/Dockerfile to remove the WORKDIR caused the RUN install requirements to use the wrong directory as context.
2020-03-16 21:08:51 +03:00
Burak Yigit Kaya
5f7c18bd18 feat(config): Mount config as a volume to Sentry (#407)
This follows the best-practice of mounting the config folder as a volume and removes the need to rebuild sentry images for config changes. Partially addresses #314.
2020-03-12 20:14:46 +03:00
ffauvel
c95eb56467 Add missing restart policy unless-stopped (#409)
Add missing restart policy unless-stopped for symbolicator-cleanup service
2020-03-12 17:41:27 +03:00
Burak Yigit Kaya
3e8ed1a680 feat(snuba): Remove redundant UWSGI settings (#408)
These became obsolete after getsentry/snuba#825
2020-03-12 17:40:02 +03:00
xaver
335016ce24 Require docker compose version in README (#405) 2020-03-11 17:24:57 +03:00
sentry-update-license-date[bot]
2ff2f2ec12 license: Update BSL change date (#399) 2020-03-02 20:43:29 +03:00
Burak Yigit Kaya
f2876131fc feat(discover): Enable Discover v2 (#398)
Also removes some obsolete feature switches.
2020-02-28 17:49:31 +03:00
AlexanderLevchenkoTechs
1ee602110a docs(versioning): Fix Docker image tag name (#393) 2020-02-26 19:43:33 +03:00
Rob Nieuwenhuizen
3e0ca482c2 Make secret key generation idempotent (#390)
Only generate secret key if not set
2020-02-25 16:08:13 +03:00
Burak Yigit Kaya
9dfc5c99de docs(versioning): Add section about versioning and SENTRY_IMAGE (#381)
This addreses multiple questions raised about how to install a specific version of Sentry or using specific versions for images such as #378, #355, #348, and #326.
2020-02-15 01:59:25 +03:00
Burak Yigit Kaya
6979959a71 fix(postgres): Fix postgres suddenly failing after their 'patch' release
See
https://github.com/docker-library/postgres/pull/658#pullrequestreview-336007842
2020-02-15 01:39:55 +03:00
Burak Yigit Kaya
6538f47288 docs(upgrade): Add note regarding min Sentry 9.1.2 requirement (#380)
Fixes #325.
2020-02-05 23:59:15 +03:00
sentry-update-license-date[bot]
91cce7afa6 license: Update BSL change date
Co-authored-by: Burak Yigit Kaya <ben@byk.im>
2020-02-03 18:39:08 +00:00
Vernon Hockney
ce5834b8cf fix(install): Update exit status and fix premature exit (#375)
Update exit -1 to exit 1 in line with best practices
Fixes premature exit of the script when checking for sse42 support. The
script would exit before displaying the reason for failure to the user.
2020-02-03 21:01:12 +03:00
Burak Yigit Kaya
fd9bd107df fix(config): Enable http-chunked-input for UWSGI (#376)
Fixes getsentry/sentry#16596
2020-02-03 19:15:40 +03:00
Burak Yigit Kaya
37d6166032 build(clickhouse): Bump clickhouse version to match Snuba (#371) 2020-01-30 22:54:12 +03:00
Amphaal
cd1f9e811e Check SSE4.2 compatibility before installation (#361)
Fixes #358.
2020-01-29 16:29:38 +03:00
Burak Yigit Kaya
bc6d3b47e2 feat(config): Have better GitHub config examples (#327)
Better defaults and guidance regarding GitHub app settings after getsentry/sentry#16550.
2020-01-24 21:08:41 +03:00
Simon Golms
73bf3f5ab4 fix(config): parse env variable as int (#359)
- parse SENTRY_EVENT_RETENTION_DAYS as integer in case it is defined as a string like in kubernetes
2020-01-24 21:04:39 +03:00