wandb / server

W&B Server is the self hosted version of Weights & Biases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to login?

fekstr opened this issue · comments

After the latest update, when starting the server with wandb server start and opening http://localhost:8080, essentially everything seems to require authentication with email + password. However, I can't find any way to create an account that works locally.

I can't use wandb login because it asks me to go to http://localhost:8080/authorize which is behind the login screen.

I can't add the licence at http://localhost:8080/system-admin because it's also behind the login.

How are we supposed to use this login?

Screenshot 2023-08-14 at 11 30 35 AM

Hello @fekstr !

If you have an account that you can login into, you can go into http://localhost:8080/admin/users and create users via the Add User button. That would be the easiest way to make new accounts since when you invite a new user, they get their own unique signup link in order to create a new account.

@rsanandres-wandb that is also behind the login. The problem is I can't figure out how to create the first account. The accounts I'm using to log in to the hosted version don't work here and I can't find any signup/admin view I can access. Looking at the network tab, when I'm entering the credentials and submitting, there is a post request to http://localhost:8080/oidc/login? and a response saying {error: "user not found"}. I'm assuming I need to create an account locally but can't find any instructions on how to do this. I'm trying to use the basic setup guide but this doesn't mention anything about creating an account.

This should direct you straight to the first sign up page in order to make your account. Since this is your first time setup, I would suggest to run docker ps then delete any wandb-local containers that are active and recreating the local instance. Once you run wandb server start again, it should create a new container then bring you to the initial sign up page.

WandB Internal User commented:
rsanandres-wandb commented:
Hello @fekstr !

If you have an account that you can login into, you can go into http://localhost:8080/admin/users and create users via the Add User button. That would be the easiest way to make new accounts since when you invite a new user, they get their own unique signup link in order to create a new account.

@rsanandres-wandb I tried deleting the docker container and running wandb server start to pull the latest image and create the container. Output looks like this

(base) ➜  ~ wandb server start
Command '['docker', 'inspect', 'wandb/local', '--format', '{{json .RepoDigests}}']' returned non-zero exit status 1.
Unable to find image 'wandb/local:latest' locally
latest: Pulling from wandb/local
2b55860d4c66: Pull complete
8e058277d049: Pull complete
cac814e1eefd: Pull complete
b1c730ddad53: Pull complete
aa251a6aef86: Pull complete
583333778a7e: Pull complete
4f4fb700ef54: Pull complete
6719e823b8f4: Pull complete
527801bfde7c: Pull complete
e89cb7f868f6: Pull complete
3528f20537e7: Pull complete
b6124fe78422: Pull complete
7cc2552adaf2: Pull complete
964b5a240b2a: Pull complete
72f4096789f7: Pull complete
2c096825edf0: Pull complete
8694acefb5a5: Pull complete
0048491868fb: Pull complete
4ae29896488c: Pull complete
c5c92f34a3ae: Pull complete
2244198c5678: Pull complete
f8b93fad82f1: Pull complete
c144cc97b7e7: Pull complete
Digest: sha256:345189b04ab0f45d00c32b66bebbf83c1fc067a82a0288a6156435150bfa8432
Status: Downloaded newer image for wandb/local:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
wandb: W&B server started at http://localhost:8080 🚀
wandb: You can stop the server by running `wandb server stop`
wandb: You can find your API key in your browser here: http://localhost:8080/authorize
wandb: Paste an API key from your profile and hit enter, or press ctrl+c to quit:

When I go to http://localhost:8080 I get to this page

Screenshot 2023-08-17 at 3 49 22 PM

and when I go to http://localhost:8080/authorize I get to the login page above. I can't find any sign up page.

Hi @fekstr, thanks for sharing this! What if you go to http://localhost:8080/signup? Also, are you still unable to login from http://localhost:8080/login?

@luisbergua http://localhost:8080/signup redirects me to the login page, and yes, I still cannot login because I cannot create an account.

Thanks for confirming this @fekstr! I tested on my end but this works properly for me. What happens if you try using a previous version and would you mind sharing how did you upgrade?

Hi @fekstr, following up here! Wondering if you tested previous versions and also if it would be possible to share how you upgraded your server

Hi @fekstr, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!