# wandb.errors.CommError: It appears that you do not have permission to access the requested resource

**URL:** <https://community.wandb.ai/t/wandb-errors-commerror-it-appears-that-you-do-not-have-permission-to-access-the-requested-resource/4711>\
**Category:** W&B Help\
**Tags:** projects, wandb, beginner-friendly\
**Created:** [July 10, 2023, 7:34pm UTC](https://community.wandb.ai/t/wandb-errors-commerror-it-appears-that-you-do-not-have-permission-to-access-the-requested-resource/4711 "2023-07-10T19:34:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zsheikhb](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zsheikhb](https://community.wandb.ai/u/zsheikhb)\
**Post date:** [July 10, 2023, 7:34pm UTC](https://community.wandb.ai/t/wandb-errors-commerror-it-appears-that-you-do-not-have-permission-to-access-the-requested-resource/4711/1 "2023-07-10T19:34:56Z")

</div>

Hi I am trying to debug a code in google colab. I want to use weights and biases to show the results. Here is the content of the cell which I am running

```auto
%cd /content/drive/MyDrive/MPPO-ATTENTIOAN/onpolicy/scripts/train_mpe_scripts

!wandb login My_login_pass

wandb.init(settings=wandb.Settings(start_method='fork'))

wandb.init(settings=wandb.Settings(start_method='thread'))

!chmod +x train_mpe_comm.sh

!ls -ltr

!bash train_mpe_comm.sh --algorithm_name="ippo" --wandb_name="ippo_train_data"

```

The content of train\_mpe\_comm.sh is

```auto
#!/bin/sh
env="MPE"
scenario="simple_speaker_listener"
num_landmarks=3
num_agents=2
algo="rmappo" #"mappo" "ippo"
exp="check"
seed_max=1

echo "env is ${env}, scenario is ${scenario}, algo is ${algo}, exp is ${exp}, max seed is ${seed_max}"
for seed in `seq ${seed_max}`;
do
    echo "seed is ${seed}:"
    CUDA_VISIBLE_DEVICES=0 python ../train/train_mpe.py --env_name ${env} --algorithm_name ${algo} --experiment_name ${exp} \
    --scenario_name ${scenario} --num_agents ${num_agents} --num_landmarks ${num_landmarks} --seed ${seed} \
    --n_training_threads 1 --n_rollout_threads 128 --num_mini_batch 1 --episode_length 25 --num_env_steps 2000000 \
    --ppo_epoch 15 --gain 0.01 --lr 7e-4 --critic_lr 7e-4 --wandb_name "xxx" --user_name "yuchao" --share_policy
done

```

I am getting this error message in the colab

```auto
wandb: Currently logged in as: zsheikhb. Use `wandb login --relogin` to force relogin
Problem at: /content/drive/MyDrive/MPPO-ATTENTIOAN/onpolicy/scripts/train_mpe_scripts/../train/train_mpe.py 106 main
Traceback (most recent call last):
  File "/content/drive/MyDrive/MPPO-ATTENTIOAN/onpolicy/scripts/train_mpe_scripts/../train/train_mpe.py", line 174, in <module>
    main(sys.argv[1:])
  File "/content/drive/MyDrive/MPPO-ATTENTIOAN/onpolicy/scripts/train_mpe_scripts/../train/train_mpe.py", line 106, in main
    run = wandb.init(config=all_args,
  File "/usr/local/envs/mppo_env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1173, in init
    raise e
  File "/usr/local/envs/mppo_env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1154, in init
    run = wi.init()
  File "/usr/local/envs/mppo_env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 770, in init
    raise error
wandb.errors.CommError: It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 404: Not Found)

```

I will appreciate if anyone can help me to solve this error message

---

<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:** [July 13, 2023, 4:29pm UTC](https://community.wandb.ai/t/wandb-errors-commerror-it-appears-that-you-do-not-have-permission-to-access-the-requested-resource/4711/2 "2023-07-13T16:29:28Z")

</div>

Hi @zsheikhb, would you be opposed to passing the API key as the env variable `WANDB_API_KEY`? Also, when you run `!wandb login My_login_pass` does it output that you are logged in as `yuchao`

---

<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:** [July 19, 2023, 3:30pm UTC](https://community.wandb.ai/t/wandb-errors-commerror-it-appears-that-you-do-not-have-permission-to-access-the-requested-resource/4711/3 "2023-07-19T15:30:25Z")

</div>

Hi @zsheikhb, I wanted to follow up and see if this was still an issue?

---

<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:** [September 17, 2023, 3:30pm UTC](https://community.wandb.ai/t/wandb-errors-commerror-it-appears-that-you-do-not-have-permission-to-access-the-requested-resource/4711/4 "2023-09-17T15:30:48Z")

</div>

Closed on September 17, 2023, 3:30pm UTC

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