Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _integration-test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def configure_self_hosted_environment(request):
"exec",
"-T",
"web",
"sentry",
"sentry-server",
"createuser",
"--force-update",
"--superuser",
Expand Down
4 changes: 2 additions & 2 deletions _integration-test/test_01_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_memcached_django_cache():
"exec",
"-T",
"web",
"sentry",
"sentry-server",
"exec",
],
input=script,
Expand Down Expand Up @@ -197,7 +197,7 @@ def test_valkey_sentry_cache():
"exec",
"-T",
"web",
"sentry",
"sentry-server",
"exec",
],
input=script,
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ services:
args:
BASE_IMAGE: sentry-self-hosted-local
entrypoint: "/entrypoint.sh"
command: '"0 0 * * * gosu sentry sentry cleanup --days $SENTRY_EVENT_RETENTION_DAYS"'
command: '"0 0 * * * gosu sentry sentry-server cleanup --days $SENTRY_EVENT_RETENTION_DAYS"'
nginx:
<<: *restart_policy
ports:
Expand Down
6 changes: 4 additions & 2 deletions sentry-admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ invocation() {
$dcr --no-deps -v "$VOLUME_MAPPING" -T -e SENTRY_LOG_LEVEL=CRITICAL web "$@" 2>&1
}

# Function to modify lines starting with `Usage: sentry` to say `Usage: ./sentry-admin.sh` instead.
# Function to modify lines starting with `Usage: sentry-server` (or the legacy `Usage: sentry`) to say
# `Usage: ./sentry-admin.sh` instead.
rename_sentry_bin_in_help_output() {
local output="$1"
local help_prefix="$2"
Expand All @@ -40,7 +41,8 @@ rename_sentry_bin_in_help_output() {
while IFS= read -r line; do
if [[ $line == "Usage: sentry"* ]] && [ "$usage_seen" = false ]; then
echo -e "\n\n"
echo "${line/sentry/./sentry-admin.sh}"
line="${line/#Usage: sentry-server/Usage: sentry}"
echo "${line/#Usage: sentry/Usage: ./sentry-admin.sh}"
echo "$help_prefix"
usage_seen=true
else
Expand Down
3 changes: 2 additions & 1 deletion sentry/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ system.internal-url-prefix: 'http://web:9000'

# If this file ever becomes compromised, it's important to generate a new key.
# Changing this value will result in all current sessions being invalidated.
# A new key can be generated with `$ sentry config generate-secret-key`
# A new key can be generated with `sentry-server config generate-secret-key`
# inside the container, e.g. `docker compose run --rm web config generate-secret-key`
#
# If you are using SENTRY_SYSTEM_SECRET_KEY that is being set on your `.env` or `.env.custom` file,
# you should remove this line below as it won't be used anyway.
Expand Down
3 changes: 2 additions & 1 deletion sentry/sentry.conf.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def get_internal_network():
#
# If the key ever becomes compromised, it's important to generate a new key.
# Changing this value will result in all current sessions being invalidated.
# A new key can be generated with `$ sentry config generate-secret-key`
# A new key can be generated with `sentry-server config generate-secret-key`
# inside the container, e.g. `docker compose run --rm web config generate-secret-key`
if env("SENTRY_SYSTEM_SECRET_KEY"):
SENTRY_OPTIONS["system.secret-key"] = env("SENTRY_SYSTEM_SECRET_KEY", "")

Expand Down
Loading