-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
401 Unauthorized on GGR #297
Comments
@upenbendre could you show the command used to create |
Hello, Getting the same issues here. If I send tests to an individual grid, it's fine. Using GGR I get the following response in test suite: Caused by: org.openqa.selenium.json.JsonException: |
If it is any help, the issues appeared after the VM was updated, which included updating the docker API version from 1.39 to 1.40 |
Same logs for GGR node as reported in original post: |
Fixed.... just updated the username and password in the file and it seems happy again... not sure why it suddenly needed that, but hey ho, fixed! |
Argh- the issue returned suddenly, and I tried resetting the password to no avail. Sending tests to the individual grids works fine, and I even tried starting a manual session through GGR-UI, but this no longer works. I am at a loss as to what is happening because I can't see any errors logged anywhere... |
I have even tried removing the GGR container, creating a new one and no luck. I have tried deleting the .htpasswd file and recreating it, and then doing the above, but no luck |
@jsa34 yes, we do not log 401 errors. Could your password file be corrupted by some external tools (like security or antivirus software)? |
I can't see anything wrong with the password file itself, and the logs for ggr container suggest that it is picking up the correct file for username/pwd |
I checked htpasswd -bv users.htpasswd test password, and the username/password is returned as valid |
This fixed itself, it seems, again. I tried deleting and removing the ggr container, and then pulled and started it again, and suddenly it started working. The only difference between this and this other 5 or 6 times I tried before was I added the guest quota (docker run -d --name ggr -v /etc/grid-router/:/etc/grid-router:ro --net host aerokube/ggr:latest-release -guests-allowed -guests-quota test), but I am unconvinced that this was the cause of the solution... Mystery until it, probably, happens again! |
As an update: |
I am facing the exact same issue as #176, but it could not be resolved using the same fix.
I get a 401 Unauthorized, when running the test:
"http://test:testpassword@<ip_address>:4444/wd/hub"
as you can see my password does not contain any special characters.
if I enter http://test:testpassword@10.222.26.74:4444/quota on the browser , it still prompts me for a username and password. If I enter the same credentials, it still gives me a '401 Unauthorized"
there are no messages in the ggr container log. All I have is:
2019/11/20 12:37:56 [-] [-] [INIT] [-] [-] [-] [-] [-] [-] [Users file is "/etc/grid-router/users.htpasswd"]
2019/11/20 12:37:56 [-] [-] [INIT] [-] [-] [-] [-] [-] [-] [Loading configuration files from "/etc/grid-router/quota"]
My quota file is /etc/grid-router/quota/test.xml
The UI URL at port 8080 correctly shows this ggr linked to all the selenoid hosts, and the total quota count.
I have also set up the user and password correctly using htpasswd
The text was updated successfully, but these errors were encountered: