Skip to content

Going into login loop of sentry #3628

Open
@rahulbalubankar

Description

@rahulbalubankar

Self-Hosted Version

24.12.0

CPU Architecture

x86_64

Docker Version

25.0.8

Docker Compose Version

v2.19.0

Machine Specification

  • My system meets the minimum system requirements of Sentry

Steps to Reproduce

when i try to hit https://sentry-selfhosted.gamma.alt.meanion.com/auth/login/sentry/ it asks for login again... logs say 302 redirection for everything

description- I deployed 24.12.0 version of selfhosted sentry and having mulitple ec2 instances which are having selfhosted sentry deployed and i am accessing this sentry via domain that is mapped to alb dns. Also having asg to manage the scaling of these ec2. When ASG min=max=desired=1 sentry is accessible when i login using credentials but it goes into loop when i have multiple ec2 spinned and targets are healthy for alb.. Please help on this

Expected Result

i should be able to login and use sentry------

Actual Result

logs:
07:36:01 [INFO] sentry.access.api: api.access (method='POST' view='sentry.web.frontend.auth_organization_login.AuthOrganizationLoginView' response=302 user_id='None' is_app='None' token_type='None' is_frontend_request='True' organization_id='None' auth_id='None' path='/auth/login/sentry/' caller_ip='223.228.46.98' user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.0473177433013916 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')
07:36:03 [INFO] sentry.superuser: superuser.needs-validation (DISABLE_SU_FORM_U2F_CHECK_FOR_LOCAL=False self_hosted=True)
07:36:03 [INFO] sentry.superuser: superuser.logged-in (ip_address='223.228.46.98' user_id=1)
07:36:03 [INFO] sentry.auth: user.auth.success (ip_address='223.228.46.98' username='[email protected]' organization_id=1)
07:36:03 [INFO] sentry.access.api: api.access (method='POST' view='sentry.auth.providers.saml2.provider.SAML2AcceptACSView' response=302 user_id='1' is_app='None' token_type='None' is_frontend_request='True' organization_id='None' auth_id='None' path='/saml/acs/sentry/' caller_ip='223.228.46.98' user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.14129400253295898 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')
07:36:03 [INFO] sentry.access.api: api.access (method='GET' view='sentry.web.frontend.auth_organization_login.AuthOrganizationLoginView' response=200 user_id='None' is_app='None' token_type='None' is_frontend_request='True' organization_id='None' auth_id='None' path='/auth/login/sentry/' caller_ip='223.228.46.98' user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.033577919006347656 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')
07:36:39 [INFO] sentry.access.api: api.access (method='GET' view='sentry.web.frontend.react_page.ReactPageView' response=302 user_id='None' is_app='None' token_type='None' is_frontend_request='True' organization_id='None' auth_id='None' path='/organizations/sentry/issues/' caller_ip='223.228.46.98' user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.002358675003051758 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')

07:41:27 [INFO] sentry.access.api: api.access (method='GET' view='sentry.web.frontend.auth_login.AuthLoginView' response=302 user_id='None' is_app='None' token_type='None' is_frontend_request='False' organization_id='None' auth_id='None' path='/auth/login/' caller_ip='147.185.133.235' user_agent='Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: [email protected]' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.1318502426147461 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')
07:42:27 [INFO] sentry.access.api: api.access (method='GET' view='sentry.web.frontend.auth_login.AuthLoginView' response=302 user_id='None' is_app='None' token_type='None' is_frontend_request='True' organization_id='None' auth_id='None' path='/auth/login/' caller_ip='223.228.46.98' user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' rate_limited='False' rate_limit_category='None' request_duration_seconds=0.02491450309753418 rate_limit_type='DNE' concurrent_limit='None' concurrent_requests='None' reset_time='None' group='None' limit='None' remaining='None')

Event ID

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      No status
    • Status

      Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions