I am running a SLURM job through my school’s cluster.
I’m able to log in to my account using wandb.login(), but, whenever I try to post to https://api.wandb.ai/graphql, there is a certification error (i.e., when using .init() or defining a logger WandbLogger() from lightning).
wandb: Using wandb-core as the SDK backend. Please refer to https://wandb.me/wandb-core for more information.
wandb: Currently logged in as: hsp287. Use `wandb login --relogin` to force relogin
wandb: Appending key for api.wandb.ai to your netrc file: /home/hsp287/.netrc
wandb: ERROR failed to upsert bucket: api: failed sending: POST https://api.wandb.ai/graphql giving up after 1 attempt(s): Post "https://api.wandb.ai/graphql": tls: failed to verify certificate: x509: certificate signed by unknown authority
Ok, the issue is resolved.
The issue came from using a singularity container to run the script. I think there may be some additional steps when using singularity for certification.
To solve this, I switched to using a venv and installing the needed packages directly in my project directory.
Hi @hsp287, great to know you managed to fix this and thank you for sharing the fix . I will mark this as resolved, please don’t hesitate to reach out in the future for any further help.