Please help me fix this: "wandb: Network error (SSLError), entering retry loop."

I cannot use wandb on my server normally for a long time.

There is a trial in my terminal:

Python 3.7.16 (default, Jan 17 2023, 22:20:44) 
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wandb
>>> wandb.init(project='project1')
wandb: Network error (SSLError), entering retry loop.
wandb: W&B API key is configured. Use `wandb login --relogin` to force relogin
wandb: Network error (SSLError), entering retry loop.
Problem at: <stdin> 1 <module>t()...
wandb: ERROR Run initialization has timed out after 60.0 sec. 
wandb: ERROR Please refer to the documentation for additional information: https://docs.wandb.ai/guides/track/tracking-faq#initstarterror-error-communicating-with-wandb-process-

I can provide any other information if anyone who can help me require it.

Look forward to assistants! :sob:

Hi @correr thanks for reporting this. It seems to timeout, do you have access to internet on this machine? Could you please try to force relogin as follows?

import wandb
print(wandb.__version__)
wandb.login(relogin=True)
wandb.init(entity="REPLACE-WITH-YOUR-ENTITY", project="project1")

Hi Thanos,

I figure it out!

It seems that I installed PyTorch with a previous version and somehow the installation process degraded the lib about the SSL certificate.

I just created a new env and installed PyTorch with a more recent version, and thus this error disappeared.

Sincerely help my solution can help others.

Thanks for your time and attention!

1 Like

Hi @correr thank you for taking the time and explain the steps you’ve followed to fix this! That’s really helpful and glad it’s now resolved. I will close the ticket on our end now, but please feel free to reach out to us if you had any other questions/issues.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.