TIL

[TIL] wandb Docker에서 실행시 폴더 소유권 문제

hu-nie 2022. 9. 22. 15:42

Wandb를 사용하던중 다음과 같은 에러가 생겨 확인해보니 도커위에서 사용중인데 폴더의 소유권의 문제였다

  stderr: 'fatal: detected dubious ownership in repository at '/home/ubuntu/Pytorch-UNet'
To add an exception for this directory, call:

'

'

'



Traceback (most recent call last):
  File "train.py", line 203, in <module>
    amp=args.amp)
  File "train.py", line 51, in train_net
    wandb.init(project="test", entity="hunie")
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_init.py", line 509, in init
    six.raise_from(Exception("problem"), error_seen)
  File "<string>", line 3, in raise_from
Exception: problem

"chown -R root [폴더이름] "으로 해결함