[GH-ISSUE #342] Authorization failed when link start to a wrong environment #3295

Closed
opened 2026-02-28 11:55:25 +03:00 by kerem · 6 comments
Owner

Originally created by @leic4u on GitHub (Apr 1, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/342

Describe the bug
There are 3 Nginx-UI on 3 VPS. we could call them S1, S2, S3.

S3 was linked to the others.
A few days ago, the domain of S1 was expired, then I changed the DNS of S1.
Today I logged in Nginx-UI on S3, and found that S1 was disconnected, then I clicked the LINK START button, and I was be forced logout from Nginx-ui on S3.
Just like this: (and I lose the Nginx-UI on S1 after I click the button)
image

When I want to login, the Nginx-UI tells me Authorization failed.
image

To Reproduce
Steps to reproduce the behavior:

  1. Add a wrong url item in Environment.
  2. Click on 'Link Start'.
  3. You will be forced logout.
  4. Login.
  5. See error.

Expected behavior
Login correctly.

Info (please complete the following information):

  • Server OS: Ubuntu 22.04
  • Server Arch: x86(S1) and aach64(S3)
  • Nginx UI Version: 2.0.0-beta.18 (122)
  • Your Browser: Chrome
Originally created by @leic4u on GitHub (Apr 1, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/342 **Describe the bug** There are 3 Nginx-UI on 3 VPS. we could call them S1, S2, S3. S3 was linked to the others. A few days ago, the domain of S1 was expired, then I changed the DNS of S1. Today I logged in Nginx-UI on S3, and found that S1 was disconnected, then I clicked the LINK START button, and I was be forced logout from Nginx-ui on S3. Just like this: (and I lose the Nginx-UI on S1 after I click the button) ![image](https://github.com/0xJacky/nginx-ui/assets/32786903/3266600a-062b-4712-b996-1fc7f4908919) When I want to login, the Nginx-UI tells me _Authorization failed_. ![image](https://github.com/0xJacky/nginx-ui/assets/32786903/bd77d26e-d359-463b-999e-5a4efb5efdc1) **To Reproduce** Steps to reproduce the behavior: 1. Add a wrong url item in Environment. 2. Click on 'Link Start'. 3. You will be forced logout. 4. Login. 5. See error. **Expected behavior** Login correctly. **Info (please complete the following information):** - Server OS: Ubuntu 22.04 - Server Arch: x86(S1) and aach64(S3) - Nginx UI Version: 2.0.0-beta.18 (122) - Your Browser: Chrome
kerem 2026-02-28 11:55:25 +03:00
Author
Owner

@nianzecong commented on GitHub (Apr 12, 2024):

same issue

<!-- gh-comment-id:2051059984 --> @nianzecong commented on GitHub (Apr 12, 2024): same issue
Author
Owner

@nianzecong commented on GitHub (Apr 12, 2024):

same issue

A front-end stored configuration is causing this issue. Open the browser console, delete the data in storage under 'settings', refresh the page, and log in again to fix the issue.

<!-- gh-comment-id:2051097567 --> @nianzecong commented on GitHub (Apr 12, 2024): > same issue A front-end stored configuration is causing this issue. Open the browser console, delete the data in storage under 'settings', refresh the page, and log in again to fix the issue.
Author
Owner

@0xJacky commented on GitHub (Apr 27, 2024):

I am sorry that I can't reproduce this issue. First I login in into S1 and click link start to S2, then I stop the nginx-ui on S2. I can logout and login again.

By the way, we did not proxy the login request to the target server you linked to.

<!-- gh-comment-id:2080770275 --> @0xJacky commented on GitHub (Apr 27, 2024): I am sorry that I can't reproduce this issue. First I login in into S1 and click link start to S2, then I stop the nginx-ui on S2. I can logout and login again. By the way, we did not proxy the login request to the target server you linked to.
Author
Owner

@leic4u commented on GitHub (Apr 27, 2024):

I am sorry that I can't reproduce this issue. First I login in into S1 and click link start to S2, then I stop the nginx-ui on S2. I can logout and login again.

By the way, we did not proxy the login request to the target server you linked to.

Try to fill in a wrong url to click the Link Start?

<!-- gh-comment-id:2080949547 --> @leic4u commented on GitHub (Apr 27, 2024): > I am sorry that I can't reproduce this issue. First I login in into S1 and click link start to S2, then I stop the nginx-ui on S2. I can logout and login again. > > By the way, we did not proxy the login request to the target server you linked to. Try to fill in a wrong url to click the Link Start?
Author
Owner

@0xJacky commented on GitHub (Apr 28, 2024):

Still can not reproduce.

<!-- gh-comment-id:2081285715 --> @0xJacky commented on GitHub (Apr 28, 2024): Still can not reproduce.
Author
Owner

@leic4u commented on GitHub (Apr 28, 2024):

I could reporduce this issue everytime...

The simplest way is to delete one letter from Node Secret of S2, making the enviroment wrong.

image

I test it in the latest version of Chrome. And I can solve this issue by using the method @nianzecong provided in https://github.com/0xJacky/nginx-ui/issues/342#issuecomment-2051097567 .

<!-- gh-comment-id:2081357118 --> @leic4u commented on GitHub (Apr 28, 2024): I could reporduce this issue everytime... The simplest way is to delete one letter from Node Secret of S2, making the enviroment wrong. ![image](https://github.com/0xJacky/nginx-ui/assets/32786903/1eb36d1b-6dbf-4a7f-a6c2-bbda7753f6c6) I test it in the latest version of Chrome. And I can solve this issue by using the method @nianzecong provided in https://github.com/0xJacky/nginx-ui/issues/342#issuecomment-2051097567 .
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#3295
No description provided.