question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get api key after run local WANDB

See original GitHub issue

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```

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vanpeltcommented, May 21, 2020

@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.

1reaction
hokmundcommented, May 21, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot get api key after run local WANDB #1054 - GitHub
I'm running wandb localy: wandb local --upgrade --port 8892. Then i get in console: wandb: You can find your API key in your...
Read more >
Import & Export Data - Documentation - Weights & Biases
Run wandb login on the command line and paste in your API key. ... In the app UI, open a run page and...
Read more >
Quickstart - Documentation - Weights & Biases - Wandb
Initialize a new run in W&B in your Python script or notebook. wandb.init() will start tracking system metrics and console logs, right out...
Read more >
Basic Setup - Documentation - Weights & Biases - Wandb
Run the W&B Server locally on your machine or host it in a private cloud. ... will need to create your local W&B...
Read more >
Environment Variables - Documentation - Weights & Biases
Run this command export WANDB_API_KEY=X where X is your API key. When you're logged in, you can find your API key at wandb.ai/authorize....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found