Superuser rights issue

Good afternoon dear community!
I need your help in solving the problem with sentry. The following error was recently discovered - a user with owner rights cannot access the management console and gets an error

I decided to try to create a new superuser from the console. After that, I logged in under this new superuser and did not observe any more errors. However, when changing user rights in the Users tab, the rights are not saved. Only the Active switch is saved. Also, it is not possible to delete a user. Nothing comes up in the web interface, but in the docker-compose logs I see the following error:
web_1 | 14:50:21 [WARNING] django.request: Forbidden: /api/0/users/56/ (status_code=403 request=<WSGIRequest: DELETE ‘/api/0/users/56/’>)
Please tell me where to look for a solution to the problem?
Input data:

  • Debian 10
  • Sentry 22.1.0
    Postges 9.6 database and hosted separately on the same server
    Log install
    :arrow_forward: Parsing command line …

:arrow_forward: Setting up error handling …

:arrow_forward: Checking minimum requirements …
WARN: Recommended minimum RAM available to Docker is 7800 MB, found 3946 MB

:arrow_forward: Creating volumes for persistent storage …
Created sentry-clickhouse.
Created sentry-data.
Created sentry-kafka.
Created sentry-postgres.
Created sentry-redis.
Created sentry-symbolicator.
Created sentry-zookeeper.

:arrow_forward: Ensuring files from examples …
…/sentry/sentry.conf.py already exists, skipped creation.
…/sentry/config.yml already exists, skipped creation.
…/symbolicator/config.yml already exists, skipped creation.
…/sentry/requirements.txt already exists, skipped creation.

:arrow_forward: Generating secret key …

:arrow_forward: Replacing TSDB …

:arrow_forward: Fetching and updating Docker images …
Some service image(s) must be built from source by running:
docker-compose build symbolicator-cleanup snuba-cleanup snuba-transactions-cleanup sentry-cleanup
22.1.0: Pulling from getsentry/sentry
Digest: sha256:6d1aa6de79eccb6f1355e5da545a2f7533b632b8548a870d3335e83696bec8be
Status: Image is up to date for getsentry/sentry:22.1.0
docker.io/getsentry/sentry:22.1.0

:arrow_forward: Building and tagging Docker images …

smtp uses an image, skipping
memcached uses an image, skipping
redis uses an image, skipping
zookeeper uses an image, skipping
kafka uses an image, skipping
clickhouse uses an image, skipping
geoipupdate uses an image, skipping
snuba-api uses an image, skipping
snuba-consumer uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-sessions-consumer uses an image, skipping
snuba-transactions-consumer uses an image, skipping
snuba-replacer uses an image, skipping
snuba-subscription-consumer-events uses an image, skipping
snuba-subscription-consumer-transactions uses an image, skipping
symbolicator uses an image, skipping
web uses an image, skipping
cron uses an image, skipping
worker uses an image, skipping
ingest-consumer uses an image, skipping
post-process-forwarder uses an image, skipping
subscription-consumer-events uses an image, skipping
subscription-consumer-transactions uses an image, skipping
relay uses an image, skipping
nginx uses an image, skipping
Building snuba-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> 05eabef29ebf
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 2855b3b9a7ca
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> 937d1511a896
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> 33084e175e98
Successfully built 33084e175e98
Successfully tagged snuba-cleanup-self-hosted-local:latest
Building snuba-transactions-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> 05eabef29ebf
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 2855b3b9a7ca
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> 937d1511a896
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> 33084e175e98
Successfully built 33084e175e98
Successfully tagged snuba-cleanup-self-hosted-local:latest
Building symbolicator-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> 104c91c44bc1
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 46d39ef578be
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> e835d854181a
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> 39f1662ac195
Successfully built 39f1662ac195
Successfully tagged symbolicator-cleanup-self-hosted-local:latest
Building sentry-cleanup
Sending build context to Docker daemon 3.584kB
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
—> 344aa307904d
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
—> Using cache
—> 9c340c5b2cdb
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
—> Using cache
—> 1285003b1e01
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
—> Using cache
—> 88ecf46b008b
Successfully built 88ecf46b008b
Successfully tagged sentry-cleanup-self-hosted-local:latest

Docker images built.

:arrow_forward: Turning things off …
Removing network onpremise_default
Network onpremise_default not found.
Removing network sentry-self-hosted_default
Network sentry-self-hosted_default not found.

:arrow_forward: Setting up Zookeeper …
Creating network “sentry-self-hosted_default” with the default driver
Creating sentry-self-hosted_zookeeper_run …
Creating sentry-self-hosted_zookeeper_run … done
Creating sentry-self-hosted_zookeeper_run …
Creating sentry-self-hosted_zookeeper_run … done
Creating sentry-self-hosted_zookeeper_run …
Creating sentry-self-hosted_zookeeper_run … done

:arrow_forward: Downloading and installing wal2json …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5417 100 5417 0 0 15215 0 --:–:-- --:–:-- --:–:-- 15259

:arrow_forward: Bootstrapping and migrating Snuba …
Creating sentry-self-hosted_redis_1 …
Creating sentry-self-hosted_zookeeper_1 …
Creating sentry-self-hosted_clickhouse_1 …
Creating sentry-self-hosted_zookeeper_1 … done
Creating sentry-self-hosted_clickhouse_1 … done
Creating sentry-self-hosted_redis_1 … done
Creating sentry-self-hosted_kafka_1 …
Creating sentry-self-hosted_kafka_1 … done
Creating sentry-self-hosted_snuba-api_run …
Creating sentry-self-hosted_snuba-api_run … done
2022-02-16 17:10:17,466 Attempting to connect to Kafka (attempt 0)…
2022-02-16 17:10:17,508 Connected to Kafka on attempt 0
2022-02-16 17:10:17,508 Creating Kafka topics…
Creating sentry-self-hosted_snuba-api_run …
Creating sentry-self-hosted_snuba-api_run … done
Finished running migrations

:arrow_forward: Creating additional Kafka topics …

:arrow_forward: Ensuring proper PostgreSQL version …

:arrow_forward: Setting up / migrating database …
Creating sentry-self-hosted_smtp_1 …
Creating sentry-self-hosted_symbolicator_1 …
Creating sentry-self-hosted_memcached_1 …
Creating sentry-self-hosted_snuba-replacer_1 …
Creating sentry-self-hosted_snuba-transactions-consumer_1 …
Creating sentry-self-hosted_snuba-api_1 …
Creating sentry-self-hosted_snuba-subscription-consumer-transactions_1 …
Creating sentry-self-hosted_snuba-consumer_1 …
Creating sentry-self-hosted_snuba-subscription-consumer-events_1 …
Creating sentry-self-hosted_snuba-sessions-consumer_1 …
Creating sentry-self-hosted_snuba-outcomes-consumer_1 …
Creating sentry-self-hosted_symbolicator_1 … done
Creating sentry-self-hosted_memcached_1 … done
Creating sentry-self-hosted_smtp_1 … done
Creating sentry-self-hosted_snuba-replacer_1 … done
Creating sentry-self-hosted_snuba-transactions-consumer_1 … done
Creating sentry-self-hosted_snuba-api_1 … done
Creating sentry-self-hosted_snuba-subscription-consumer-transactions_1 … done
Creating sentry-self-hosted_snuba-consumer_1 … done
Creating sentry-self-hosted_snuba-outcomes-consumer_1 … done
Creating sentry-self-hosted_snuba-subscription-consumer-events_1 … done
Creating sentry-self-hosted_snuba-sessions-consumer_1 … done
Creating sentry-self-hosted_web_run …
Creating sentry-self-hosted_web_run … done
Updating certificates in /etc/ssl/certs…
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…
done.
17:10:46 [INFO] sentry.plugins.github: apps-not-configured
Running migrations for default
Operations to perform:
Apply all migrations: admin, auth, contenttypes, nodestore, sentry, sessions, sites, social_auth
Running migrations:
No migrations to apply.
Creating missing DSNs
Correcting Group.num_comments counter

:arrow_forward: Migrating file storage …

:arrow_forward: Generating Relay credentials …
…/relay/config.yml already exists, skipped creation.

:arrow_forward: Setting up GeoIP integration …
Setting up IP address geolocation …
IP address geolocation database already exists.
IP address geolocation is not configured for updates.
See https://develop.sentry.dev/self-hosted/geolocation/ for instructions.
Error setting up IP address geolocation.


You’re all done! Run the following command to get Sentry running:

docker-compose up -d

Thanks in advance for your replies!

has no one come across this error? Unfortunately, I couldn’t find a solution to this issue on my own. :pensive: