plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Redirect loop: https://DOMAIN/profile/ > https://DOMAIN/?next_path=/profile/

Open Streamline25 opened this issue 10 months ago • 5 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current behavior

When I navigate onto https://domain/profile/

Plane gets caught between the above link and https://domain/?next_path=/profile/

Here are the logs:

api-1 | 172.18.0.14:60174 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:34784 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:34796 - "GET /api/users/me/ HTTP/1.1" 200 api-1 | 172.18.0.14:34808 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:34810 - "GET /api/users/me/workspaces/ HTTP/1.1" 200 api-1 | 172.18.0.14:34838 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | 172.18.0.14:34826 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | WARNING 2025-03-03 17:35:42,169 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:34842 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:34856 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:34872 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:35:44,599 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:34862 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:34888 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:34930 - "GET /api/users/me/workspaces/?v=1740410211100 HTTP/1.1" 200 api-1 | 172.18.0.14:34932 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:34964 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:35:46,849 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:34950 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:34992 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:35000 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:35020 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:35:49,105 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:35014 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:35022 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:41294 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:41296 - "GET /api/users/me/ HTTP/1.1" 200 api-1 | 172.18.0.14:41304 - "GET /api/users/me/profile/ HTTP/1.1" 200 api-1 | 172.18.0.14:41316 - "GET /api/users/me/settings/ HTTP/1.1" 200 api-1 | 172.18.0.14:41336 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:35:51,843 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:41330 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:41350 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:41366 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:41378 - "GET /api/users/me/workspaces/ HTTP/1.1" 200 api-1 | 172.18.0.14:41394 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | 172.18.0.14:41386 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | WARNING 2025-03-03 17:35:54,371 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:41398 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:41414 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:55878 - "GET /api/users/me/ HTTP/1.1" 200 api-1 | 172.18.0.14:55886 - "GET /api/users/me/profile/ HTTP/1.1" 200 api-1 | 172.18.0.14:55890 - "GET /api/users/me/settings/ HTTP/1.1" 200 api-1 | 172.18.0.14:55902 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:36:03,152 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:55898 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:55906 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:55920 - "GET /api/users/me/workspaces/?v=1740410211100 HTTP/1.1" 200 api-1 | 172.18.0.14:55924 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:55934 - "GET /api/users/me/workspaces/ HTTP/1.1" 200 api-1 | 172.18.0.14:55960 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:36:06,071 log 25 136934367738680 Unauthorized: /api/unsplash/ api-1 | 172.18.0.14:55948 - "GET /api/unsplash/?query= HTTP/1.1" 401 api-1 | 172.18.0.14:55964 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:55978 - "GET /api/instances/ HTTP/1.1" 200 api-1 | 172.18.0.14:56016 - "GET /api/project-covers/ HTTP/1.1" 200 api-1 | WARNING 2025-03-03 17:36:08,433 log 25 136934367738680 Unauthorized: /api/unsplash/

Steps to reproduce

Go to https://DOMAIN/profile/

Environment

Production

Browser

Mozilla Firefox

Variant

Self-hosted

Version

latest

Streamline25 avatar Mar 03 '25 17:03 Streamline25

Are you using docker-compose or kubernetes to self-host the plane?

akshat5302 avatar Mar 04 '25 06:03 akshat5302

Docker compose On 4 Mar 2025, at 07:02, Akshat Jain @.> wrote: Are you using docker-compose or kubernetes to self-host the plane?—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>

akshat5302 left a comment (makeplane/plane#6694) Are you using docker-compose or kubernetes to self-host the plane?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Streamline25 avatar Mar 04 '25 07:03 Streamline25

Do you have any external reverse proxy configured in front of the plane app?

akshat5302 avatar Mar 06 '25 06:03 akshat5302

Yes Nginx

server { http2 on; server_name DOMAIN;

location / {
    proxy_pass http://10.10.10.113/; 
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # Increase timeouts to prevent dropped connections
    proxy_connect_timeout 60s;
    proxy_send_timeout 60s;
    proxy_read_timeout 60s;

    # Keep WebSocket connections alive
    keepalive_timeout 65s;
    proxy_buffering off;

}

listen 443 ssl;
ssl_certificate fullchain.pem;
ssl_certificate_key privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

} server { if ($host = domain) { return 301 https://$host$request_uri/; } # managed by Certbot

listen 80;
server_name DOMAIN;
return 404;

}

Streamline25 avatar Mar 06 '25 11:03 Streamline25

Hey, @StreamlineXpert. We're investigating the issue and will update you as soon as we find anything.

akshat5302 avatar Mar 07 '25 08:03 akshat5302