wandb: Cannot get api key after run local WANDB

Weights and Biases version: version 0.8.36 Python version: 3.7.5 Operating System: Linux

Description

I’m running wandb localy: wandb local --upgrade --port 8892

Then i get in console: wandb: You can find your API key in your browser here: http://localhost:8892/authorize wandb: Paste an API key from your profile and hit enter:

And when i go to page, i see image this endless (and reloading) message. Sometimes browser redirect me to /signup page, but there’s error: image restarts and rebuilds didn’t help.

In debug.log i only see: 2020-05-21 17:03:16,408 DEBUG MainThread:22316 [auth.py:find_config_file():47] Trying paths: ['/home/seeall/.docker/config.json', '/home/seeall/.dockercfg'] 2020-05-21 17:03:16,408 DEBUG MainThread:22316 [auth.py:find_config_file():54] No config file found 2020-05-21 17:03:16,598 DEBUG MainThread:22316 [auth.py:resolve_authconfig():295] Looking for auth entry for 'docker.io' 2020-05-21 17:03:16,599 DEBUG MainThread:22316 [auth.py:resolve_authconfig():306] No entry found 2020-05-21 17:03:19,564 DEBUG MainThread:22316 [auth.py:resolve_authconfig():295] Looking for auth entry for 'docker.io' 2020-05-21 17:03:19,564 DEBUG MainThread:22316 [auth.py:resolve_authconfig():306] No entry found

BUT dockerlogs spam:

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/enable-services.sh...
*** Running /etc/my_init.d/load-settings.sh...
*** Enabling production mode
*** Booting runit daemon...
*** Runit started as PID 38
panic: Dirty database version 8. Fix and force version.
*** Starting wandb servers...

*** Migrating database...
goroutine 1 [running]:
main.main()
	/home/runner/work/core/src/github.com/wandb/core/services/gorilla/cmd/migrate/main.go:82 +0x7dd
*** All services started
panic: github.com/wandb/core/services/gorilla/mysql.(*metadataStore).prepareInsertUser-fm: Error 1054: Unknown column 'user_info' in 'field list'
*** Access W&B at http://localhost:8080

goroutine 1 [running]:
main.main()
	/home/runner/work/core/src/github.com/wandb/core/services/gorilla/cmd/gorilla-filemeta/main.go:102 +0x118e
panic: github.com/wandb/core/services/gorilla/mysql.(*metadataStore).prepareInsertUser-fm: Error 1054: Unknown column 'user_info' in 'field list'

goroutine 1 [running]:
main.main()
	/home/runner/work/core/src/github.com/wandb/core/services/gorilla/cmd/gorilla/main.go:268 +0x534e
panic: github.com/wandb/core/services/gorilla/mysql.(*metadataStore).prepareInsertUser-fm: Error 1054: Unknown column 'user_info' in 'field list'

goroutine 1 [running]:
main.main()
	/home/runner/work/core/src/github.com/wandb/core/services/gorilla/cmd/gorilla-filemeta/main.go:102 +0x118e```

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

@stalkermustang when the container boots it will run migrations. If you kill or stop the container during the running of these migrations you’ll end up with the database in an invalid state. We need to get to the bottom of why your migration is failing. Can you run the following?

docker stop wandb-local
docker volume rm wandb
wandb local

Once this is up and running you can see the migration progress in the vm by querying the database:

docker exec -it bash wandb-local
sudo mysql
use wandb_local;
SELECT * FROM schema_migrations;

You’d will need to run the SELECT statement multiple times and ultimately it should return finish at version 67 with the dirty column equal to 0.

Got the same problem today after upgrading wandb-local with wandb local --upgrade