getsentry / getsentry/self-hosted

Setting Account Security and Notification Stop to work

Open
#3,420 20 comments 1 reaction 0 assignees View on GitHub
Bug Type: Bug Waiting for: Product Owner
Dominant language
Shell
Stars
9.6k
Forks
2k
Avg merge
1d 3h
Merged PRs (30d)
12

Description

### Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

### Steps to Reproduce

Just navigate to `Settings/General Settings/Security ` or `Settings/General Settings/Notification`

### Expected Result

The UI working

### Actual Result

I have the same problem on 24.8.0, 24.9.0 and 24.10.0 versions

This is the image of Security:
![Image](https://github.com/user-attachments/assets/101f0bd9-baf5-4911-b6b9-9c0ff6dc992d)

This is the image for Notification (infinite loop)
![Image](https://github.com/user-attachments/assets/41e95c31-505e-44e4-9784-c98004ed705b)

On the web container log, I have a lot of the following lines :

```
web-1 | 17:44:49 [WARNING] django.request: Unauthorized: /api/0/projects/ccmn/node-chat-proxy/artifact-lookup/ (status_code=401 request=)
web-1 | 17:44:49 [ERROR] sentry.auth.system: Trying to use `SystemToken` from non-internal IP
web-1 | 17:44:49 [ERROR] sentry.auth.system: Trying to use `SystemToken` from non-internal IP
web-1 | 17:44:49 [INFO] sentry.access.api: api.access (method='GET' view='sentry.api.endpoints.artifact_lookup.ProjectArtifactLookupEndpoint' response=401 user_id='None' is_app='None' token_type='None' is_frontend_request='False' organization_id='None' auth_id='None' path='/api/0/projects/ccmn/node-chat-proxy/artifact-lookup/' caller_ip='XXX.XXX.XXX.XXX' user_agent='symbolicator/24.10.0' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.03459882736206055 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None' token_last_characters='2c2b')
web-1 | 17:44:49 [WARNING] django.request: Unauthorized: /api/0/projects/ccmn/node-chat-proxy/artifact-lookup/ (status_code=401 request=)

```

### Product Area

Settings - General

### Link

_No response_

### DSN

_No response_

### Version

24.10.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue at Settings/General Settings/Security and Settings/General Settings/Notification in the self-hosted web container, then review the reported django.request and artifact-lookup logs. Done means both settings pages load and the notification page no longer loops, without repeated unauthorized requests or SystemToken errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, docker
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.