# Problem logging in WandB from Ubuntu Server

**URL:** <https://community.wandb.ai/t/problem-logging-in-wandb-from-ubuntu-server/5280>\
**Category:** W&B Help\
**Created:** [October 27, 2023, 8:05am UTC](https://community.wandb.ai/t/problem-logging-in-wandb-from-ubuntu-server/5280 "2023-10-27T08:05:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![francois-baillard](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@francois-baillard](https://community.wandb.ai/u/francois-baillard)\
**Post date:** [October 27, 2023, 8:05am UTC](https://community.wandb.ai/t/problem-logging-in-wandb-from-ubuntu-server/5280/1 "2023-10-27T08:05:15Z")

</div>

Hello everyone, I am currently having an issue to login to wandb on my ubuntu 22.04 server using wandb login.  
See the message below:

**→ 124 raise ManagerConnectionRefusedError(message) 125 except Exception as e: 126 raise ManagerConnectionError(f"Connection to wandb service failed: {e}") ManagerConnectionRefusedError: Connection to wandb service failed: [Errno 111] Connection refused.**

I have been able to login on wandb with the same key on a laptop (WSL2) located in the same network. I have tried to troubleshoot the issue. I am able to ping the Wandb API on the Ubuntu server. I may suspect this has something to do with firewall or certificates. I tried what was mentioned here: [Troubleshooting | Weights & Biases Documentation](https://docs.wandb.ai/guides/technical-faq/troubleshooting) without success.  
Any idea how to resolve the issue?  
Thanks a lot  
Francois

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [November 1, 2023, 7:00pm UTC](https://community.wandb.ai/t/problem-logging-in-wandb-from-ubuntu-server/5280/2 "2023-11-01T19:00:02Z")

</div>

Hello @francois-baillard !

This issue may be that you cannot access certain filepaths that `wandb` uses from that script. Could you add a `os.environ['WANDB_DISABLE_SERVICE']='True'` before your `wandb.init()` call and check to see if you get a `PermissionError: [Errno 13] Permission denied: '/tmp/.config/wandb'`?

If so, you should set the following:

```auto
os.environ['WANDB_DISABLE_SERVICE'] = 'True'
os.environ['WANDB_CONFIG_DIR'] = "<CUSTOM_COFIG_DIR>"

```

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [November 3, 2023, 6:01pm UTC](https://community.wandb.ai/t/problem-logging-in-wandb-from-ubuntu-server/5280/3 "2023-11-03T18:01:02Z")

</div>

Hi Francois, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [December 31, 2023, 7:00pm UTC](https://community.wandb.ai/t/problem-logging-in-wandb-from-ubuntu-server/5280/4 "2023-12-31T19:00:50Z")

</div>

Closed on December 31, 2023, 7:00pm UTC

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