2
0
Commit Graph

164 Commits

Author SHA1 Message Date
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
sentry-update-license-date[bot]
1748073324 license: Update BSL change date 2020-01-23 19:36:19 +00:00
Burak Yigit Kaya
dbcf4cc528 license: Update BSL change date
* license: Update BSL change date

* try being too protective in the future

* set the date properly
2020-01-23 19:13:28 +00:00
Burak Yigit Kaya
1292a125b8
fix(install): Remove unnecessary infinite loop from snuba bootst… (#354)
With getsentry/snuba#709 merged, we no longer need to randomly try forever creating Kafka topics, which were a prerequisite for creating Clickhouse tables. This patch also removes the preceding (and obsolete) `docker-compose up` statement which was used to "speed up" the `snuba bootstrap` command in the hopes to fix it.
2020-01-21 22:56:45 +03:00
Burak Yigit Kaya
b8405fca76
build(compose): Bump required compose version (#353)
With #343, we added the `--parallel` flag which only got introduced in `docker-compose` `1.23.0` (source https://medium.com/schkn/parallelize-your-docker-compose-build-8ac653e3e596 as Docker docs themselves don't really mention these) so bumping the minimum required version.

Fixes #351.
2020-01-21 22:56:04 +03:00
Burak Yigit Kaya
dffd59723c
meta(readme): Update docs and chat links in readme (#346)
Fixes #345.
2020-01-13 22:28:19 +03:00
Burak Yigit Kaya
70674e252a
fix(data-migration): Make sure to chown the /data folder on sentry (#336)
Fixes #334.
2020-01-13 22:25:27 +03:00
Burak Yigit Kaya
a655b4799c
feat(build): Enable parallel builds for docker-compose (#343) 2020-01-12 18:53:54 +03:00
Burak Yigit Kaya
d6951a2c32
fix(install): Fix secret key gen on BSD (#338)
Fixes #330.
2020-01-10 12:34:36 +03:00