wandb / server

W&B Server is the self hosted version of Weights & Biases
MIT License
263 stars 21 forks source link

User not found in the local mode #110

Closed sworddish closed 1 year ago

sworddish commented 1 year ago

Previously, I deployed wandb server 0.27.0 locally without a problem. Recently, after a server crush, I have to setup wandb docker instance again.

This time I following the steps:

❯ docker volume rm wandb ❯ pip install wandb --upgrade ❯ docker pull wandb/local:0.27.0 ❯ docker run -e LOCAL_RESTORE=true --rm -d -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local:0.27.0

and then I tried to manually add a new user

image

I have no idea what should I do to resolve the issue and relogin again.

sworddish commented 1 year ago

This is the 1st time I met this error, last time when I can run '/usr/local/bin/local password ' successfully.

thanos-wandb commented 1 year ago

Hi @sworddish thanks for reporting this issue. Could you please run cat /vol/env/users.htpasswd from inside the container? This will return all users emails next to a hash of respective password. Would you find any user test@gmail.com in that list?

exalate-issue-sync[bot] commented 1 year ago

WandB Internal User commented: sworddish commented: This is the 1st time I met this error, last time when I can run '/usr/local/bin/local password ' succesfully.

sworddish commented 1 year ago

No, I can not find.

An quick update, after I reboot the system and rerun the docker instance, the problem sloved, but I don't know why?

thanos-wandb @.***>于2023年3月10日 周五19:03写道:

Hi @sworddish https://github.com/sworddish thanks for reporting this issue. Could you please run cat /vol/env/users.htpasswd from inside the container? This will return all users emails next to a hash of respective password. Would you find any user @.*** in that list?

— Reply to this email directly, view it on GitHub https://github.com/wandb/server/issues/110#issuecomment-1463639077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABVWIXBWQ6WBQ4C5OLKWXTW3MC63ANCNFSM6AAAAAAVTRWJWA . You are receiving this because you were mentioned.Message ID: @.***>

thanos-wandb commented 1 year ago

Hi @sworddish thanks for the update, glad to hear that this issue has been resolved for you after rebooting. It might have been that your signup flow was failing before because of some active sessions, or cookies.

In older versions you could indeed add a user/password with /usr/local/bin/local password <email>. This command now is to be used to reset the password if the user has already registered from the App, that's the reason you were seeing user <email> not found.

I hope this helps! I will now close this ticket as the issue is solved, but please feel free to reopen this if you have any other questions or issues.