# Wandb login issue

**URL:** <https://community.wandb.ai/t/wandb-login-issue/3023>\
**Category:** W&B Help\
**Tags:** wandb, beginner-friendly\
**Created:** [August 29, 2022, 11:52am UTC](https://community.wandb.ai/t/wandb-login-issue/3023 "2022-08-29T11:52:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijaya](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@vijaya](https://community.wandb.ai/u/vijaya)\
**Post date:** [August 29, 2022, 11:52am UTC](https://community.wandb.ai/t/wandb-login-issue/3023/1 "2022-08-29T11:52:51Z")

</div>

Hi, everytime I run my experiment in kubernetes, wandb is asking for options wandb:  
(1) Create a W&B account  
wandb: (2) Use an existing W&B account  
wandb: (3) Don’t visualize my results

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [August 29, 2022, 3:32pm UTC](https://community.wandb.ai/t/wandb-login-issue/3023/2 "2022-08-29T15:32:38Z")

</div>

Hi @vijaya, you should be able to [environment](https://docs.wandb.ai/guides/track/advanced/environment-variables) to set your API Key and host url when setting up your Kubernetes environment which will allow you to not have to login every time you start an experiment. Setting `WANDB_API_KEY` and `WANDB_BASE_URL` should help you get past this.

Let me know if you have any other questions around this.

Thank you,  
Nate

---

<div class="post-metadata">

**Author:** ![sydholl](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sydholl](https://community.wandb.ai/u/sydholl)\
**Post date:** [August 29, 2022, 3:33pm UTC](https://community.wandb.ai/t/wandb-login-issue/3023/3 "2022-08-29T15:33:06Z")

</div>

Hi @vijaya, you should be able to environment to set your API Key and host url when setting up your Kubernetes environment which will allow you to not have to login every time you start an experiment. Setting `WANDB_API_KEY` and `WANDB_BASE_URL` should help you get past this.

Let me know if you have any other questions around this.

Thank you,  
Nate

[Discourse post]

---

<div class="post-metadata">

**Author:** ![vijaya](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@vijaya](https://community.wandb.ai/u/vijaya)\
**Post date:** [August 31, 2022, 7:28am UTC](https://community.wandb.ai/t/wandb-login-issue/3023/4 "2022-08-31T07:28:32Z")

</div>

Hi @sydholl,  
Thank you for your reply. Now I am getting a new error saying " mkdir(name, mode)  
PermissionError: [Errno 13] Permission denied: ‘/.config’" while I try to run wandb in a docker environment. Can you please help me resolve this issue.

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [September 1, 2022, 7:26pm UTC](https://community.wandb.ai/t/wandb-login-issue/3023/5 "2022-09-01T19:26:18Z")

</div>

HI @vijaya, this looks like your script does not have write access to ‘/config’. You can either resolve this by giving your script root access or you can change the folder that W&B is trying to write to.

The env variables WANDB\_DIR, WANDB\_CACHE\_DIR, and WANDB\_CONFIG\_DIR should all be set to folders that you have permissions to write to.

Let me know if this resolves the issue for you

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [September 6, 2022, 7:41pm UTC](https://community.wandb.ai/t/wandb-login-issue/3023/6 "2022-09-06T19:41:42Z")

</div>

@vijaya I wanted to follow up and see if you were able to get this to work or if you still needed any help with this?

---

<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:** [November 5, 2022, 7:42pm UTC](https://community.wandb.ai/t/wandb-login-issue/3023/7 "2022-11-05T19:42:25Z")

</div>

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