How do I deal with network issues?
If you encounter SSL or network errors, such as wandb: Network error (ConnectionError), entering retry loop
, use the following solutions:
- Upgrade the SSL certificate. On an Ubuntu server, run
update-ca-certificates
. A valid SSL certificate is essential for syncing training logs to mitigate security risks. - If the network connection is unstable, operate in offline mode by setting the optional environment variable
WANDB_MODE
tooffline
, and sync files later from a device with Internet access. - Consider using W&B Private Hosting, which runs locally and avoids syncing to cloud servers.
For the SSL CERTIFICATE_VERIFY_FAILED
error, this issue might stem from a company firewall. Configure local CAs and execute:
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt