server icon indicating copy to clipboard operation
server copied to clipboard

Failed to sign up 'Unable to create account, contact your administrator.'

Open chuber1986 opened this issue 4 years ago • 19 comments

Hi, everytime I want to signup an account, I get this error message: grafik

Docker logs do look fine. The MySQL log ends with the following entries: grafik

I tried with and without '-e LOCAL_RESTORE=true' and deleting the docker volume. I also tried multiple mount point (shared, local, explicitly create a docker volume).

Am I doing something wrong?

br Ch

chuber1986 avatar Nov 03 '21 13:11 chuber1986

Actually, it looks very similar to #40 . Could someone figure out what waas the problem there?

chuber1986 avatar Nov 03 '21 14:11 chuber1986

Hey @chuber1986 would you be up for hopping on a quick screenshare today after 12pm PDT? I can help you do some deeper digging to see what the root cause is here. My email address is [email protected] if you just want to send an invite.

vanpelt avatar Nov 03 '21 17:11 vanpelt

Hey @vanpelt, unfortunatly I did see you kind offer earlier. I'm 8h ahead of PDT. If you could spare a couple of minutes today between 10am and 12pm PDT, I'd glady accept your offer!? Would you prefer Zoom of MS Teams? br Ch

chuber1986 avatar Nov 04 '21 06:11 chuber1986

Hey @chuber1986 apologies for the back and forth. I can do tomorrow at 11am PDT if that works for you? Zoom is preferred, but either work.

vanpelt avatar Nov 04 '21 21:11 vanpelt

Hey, 11am is fine. I sent you a Zoom invite. Thanks, for your time!

chuber1986 avatar Nov 05 '21 08:11 chuber1986

Glad we got it sorted. For anyone else coming to this thread, we're still digging into the root cause, but you can get yourself out of it with the following steps:

docker exec -it wandb-local bash
vi /vol/env/users.htpasswd # Remove the line with [email protected] in it
/usr/local/bin/local password [email protected]

Once those steps have been completed, you can logout and log back into your instance.

vanpelt avatar Nov 05 '21 19:11 vanpelt

@vanpelt, hi! I have the same problem

Can you correct my steps?

  1. docker stop wandb-local
  2. docker volume rm wandb
  3. wandb local -e LOCAL_RESTORE=true ------- ----- Wait 60 seconds ----- --------
  4. docker exec -it wandb-local bash
  5. vi /vol/env/users.htpasswd
  6. replace "[email protected]..." with "/usr/local/bin/local password [email protected]"
  7. exit
  8. refresh the page with an error

What password and [email protected] should be used in the 6)?

ViktorGrinin avatar Mar 22 '22 11:03 ViktorGrinin

Whatever you choose, this is your account...

This shouldn't be necessary however. If you're not accessing the local server at http://localhost:8080 you need to start the server with the host you're accessing it from:

wandb local -e HOST=http://192.168.0.10:8080

vanpelt avatar Mar 22 '22 12:03 vanpelt

docker exec -it wandb-local bash vi /vol/env/users.htpasswd # Remove the line with [email protected] in it /usr/local/bin/local password [email protected]

I finished the above steps and I get this message: A service is down or restarting, contact your administrator to check the system logs.

roganwang avatar Apr 02 '22 02:04 roganwang

docker exec -it wandb-local bash vi /vol/env/users.htpasswd # Remove the line with [email protected] in it /usr/local/bin/local password [email protected]

I finished the above steps and I get this message: A service is down or restarting, contact your administrator to check the system logs.

Refresh the page and get "Loading is taking longer than expected" again. No matter what I do, I will always get the same messge.

roganwang avatar Apr 02 '22 02:04 roganwang

This likely means your database is corrupt. If you don't have any important data logged to the server, you can run:

docker stop wandb-local docker volume rm wandb

Then you can start wandb again. If you're still having issues, please share the output of

docker logs wandb-local

vanpelt avatar Apr 02 '22 09:04 vanpelt

This likely means your database is corrupt. If you don't have any important data logged to the server, you can run:

docker stop wandb-local docker volume rm wandb

Then you can start wandb again. If you're still having issues, please share the output of

docker logs wandb-local

pre:

  • wandb version: 0.12.14
  • wandb local docker image version: latest

Following your script, I got the login page, and input the username & password, click login, then I got the signup page, finally login failed. (if signup, entity already exists for the user local ocurred)

Step 1:

docker stop wandb-local
docker volume rm wandb

docker run -e LOCAL_RESTORE=true --rm -d -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local

Step 2:

docker exec -it wandb-local bash
/usr/local/bin/local password [email protected]

Step 3:

docker stop wandb-local
docker run -e LOCAL_RESTORE=true --rm -d -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local

Attached: docker logs -f wandb-local

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/01_enable-services.sh...
*** Copying services to runit
*** Copying jobber template
*** Enabling restore mode

Login at http://localhost:8080/api/login
  username: [email protected]
  password: xxxxx

*** Enabling production mode
*** Running /etc/my_init.d/02_load-settings.sh...
*** Loading settings...
2022/04/21 10:48:08 Created default user
2022/04/21 10:48:08 Generating new session key for auth...
2022/04/21 10:48:08 Generating new certificate and key for auth...
*** Booting runit daemon...
*** Runit started as PID 53
*** Setting up mysql database...
*** Starting wandb servers...
*** Minio still starting up...
*** Configuring minio...
Bucket created successfully `local/local-files`.
*** Minio still starting up...
*** Migrating database...
Successfully added arn:minio:sqs:wandb-local:_:redis

Loading custom chart definitions...
*** All services started
*** Access W&B at http://localhost:8080

airlsyn avatar Apr 21 '22 10:04 airlsyn

having same issue...

Takshan avatar Jun 27 '22 04:06 Takshan

WandB Internal User commented: chuber1986 commented: Actually, it looks very similar to #40 . Could someone figure out what waas the problem there?

exalate-issue-sync[bot] avatar Jun 27 '22 04:06 exalate-issue-sync[bot]

WandB Internal User commented: ericxsun commented:

This likely means your database is corrupt. If you don't have any important data logged to the server, you can run:

docker stop wandb-local docker volume rm wandb

Then you can start wandb again. If you're still having issues, please share the output of

docker logs wandb-local

pre:

  • wandb version: 0.12.14
  • wandb local docker image version: latest

Following your script, I got the login page, and input the username & password, click login, then I got the signup page, finally login failed. (if signup, entity already exists for the user local ocurred)

Step 1:

docker stop wandb-local
docker volume rm wandb

docker run -e LOCAL_RESTORE=true --rm -d -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local

Step 2:

docker exec -it wandb-local bash
/usr/local/bin/local password [email protected]

Step 3:

docker stop wandb-local
docker run -e LOCAL_RESTORE=true --rm -d -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local

Attached: docker logs -f wandb-local

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/01_enable-services.sh...
*** Copying services to runit
*** Copying jobber template
*** Enabling restore mode

Login at http://localhost:8080/api/login
  username: [email protected]
  password: xxxxx

*** Enabling production mode
*** Running /etc/my_init.d/02_load-settings.sh...
*** Loading settings...
2022/04/21 10:48:08 Created default user
2022/04/21 10:48:08 Generating new session key for auth...
2022/04/21 10:48:08 Generating new certificate and key for auth...
*** Booting runit daemon...
*** Runit started as PID 53
*** Setting up mysql database...
*** Starting wandb servers...
*** Minio still starting up...
*** Configuring minio...
Bucket created successfully `local/local-files`.
*** Minio still starting up...
*** Migrating database...
Successfully added arn:minio:sqs:wandb-local:_:redis

Loading custom chart definitions...
*** All services started
*** Access W&B at http://localhost:8080

exalate-issue-sync[bot] avatar Jun 27 '22 04:06 exalate-issue-sync[bot]

Hi! Having the same issue. After following these instructions

docker stop wandb-local
docker volume rm wandb
wandb local -e LOCAL_RESTORE=true
------- ----- Wait 60 seconds ----- --------
docker exec -it wandb-local bash
vi /vol/env/users.htpasswd
replace "[email protected]" with "/usr/local/bin/local password [email protected]"
exit
refresh the page with an error

I see the login page, but can't log in with my email and password specified in users.htpasswd.

Guitaricet avatar Jul 03 '22 17:07 Guitaricet

You need to specify the HOST environment variable if you're not accessing the UI from 127.0.0.1

Can you share a screenshot or error you're seeing?

vanpelt avatar Jul 04 '22 23:07 vanpelt

UPD: I resolved this issue. Please follow these instructions carefully. Do not replace [email protected] with /usr/local/bin/local password [email protected]. You need to delete the link with [email protected] in . htpasswd and then create a new user inside wandb container via /usr/local/bin/local [email protected].

Hello! I am accessing the UI from 127.0.01 Here's a screenshot Screen Shot 2022-07-10 at 8 41 32 PM

And this is the content of users.htpasswd

[email protected]:$2a$10$JqoD2FV.onFNXctgvhJlA.kWKlr0HNKoZE8faMGy/0y1vbnP496dC
/usr/local/bin/local password [email protected]:$2a$10$qUbWkNFrstUTtykU4iQy1.I0I99KSIHJ5ceW.EfPsXxHl591eRVhO

Guitaricet avatar Jul 11 '22 00:07 Guitaricet

after started docker container,I got an error: Loading your local environment... Loading is taking longer than expected. Check stdout, or the system logs at /var/log for error messages. You can restart your server with the environment variable LOCAL_RESTORE=true to regain access if you're unable to login. how to deal with it?

VincentFengwensen avatar Apr 14 '23 09:04 VincentFengwensen