Closed frostime closed 2 years ago
Hi @frostime, happy to help with your question.
Wandb does support port switching and binding. What I believe is happening here is you have your project WANDB_BASE_URL
configured to a different port than port 18080
. This will cause the network error you are experiencing as the project is attempting to log to a non existing instance. From your terminal, check your current setting using, wandb status
, verifying the "base_url"
is set correctly. If it isn't, set it via export WANDB_BASE_URL=<PORT>
, more on this here. Please let me know if this fixed your issue and/or if you have any questions.
Hi @frostime, happy to help with your question.
Wandb does support port switching and binding. What I believe is happening here is you have your project
WANDB_BASE_URL
configured to a different port thanport 18080
. This will cause the network error you are experiencing as the project is attempting to log to a non existing instance. From your terminal, check your current setting using,wandb status
, verifying the"base_url"
is set correctly. If it isn't, set it viaexport WANDB_BASE_URL=<PORT>
, more on this here. Please let me know if this fixed your issue and/or if you have any questions.
Hi @MBakirWB , thanks so much for your help! It really works.
And I summarize the total procedure if anyone want to run wandb local server on another port, denotes <port>
.
Start the server
wandb server start --port=<port>
Modify the environment variable WANDB_BASE_URL
export WANDB_BASE_URL=http://localhost:<port>
Run it in shell.
If anything settled, you will get the right bash_url
when you run wandb status
:
❯ wandb status
Current Settings
{
"api_key": null,
"base_url": "http://localhost:<port>",
"entity": "frostime",
"git_remote": "origin",
"ignore_globs": [],
"project": "EEGGAN",
"root_dir": null,
"section": "default"
}
Execute your code.
Thanks for the update @frostime , glad it worked and thank you for providing a thorough example for others to follow. Please do reach back out again when you have any questions.
Hello, I'was wondering if I could change the default 8080 port to any others, however I failed and got some network errors.
I started the server by:
The docker shown that the container was running correctly.
And when I executed
wandb login
command in cli, it also worked:But when I try to run my python script, error occured:
I guessed that it might stuck at
init
But when I run
wandb init
in cli environment, it also worked, so I'm quite confused.I wonder if it is really allowed to switch the binding port to other but 8080.