RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
408 stars 15 forks source link

PermissionError: [Errno 13] Permission denied: '/config' #79

Open jangerhard opened 1 year ago

jangerhard commented 1 year ago

I am using the python version of the program, and for some reason I can load the config-file I've created, under the config-folder, but I get an error running the program.

Full stack-trace:

[USER]@[MACHINE]:~/.apps/Plex-Auto-Languages$ python3 main.py -c ./config/config.yaml
2023-06-05 10:35:35,437 [INFO] Parsing config file './config/config.yaml'
2023-06-05 10:35:35,439 [INFO] The provided configuration has been successfully validated
Traceback (most recent call last):
  File "/home/user/.apps/Plex-Auto-Languages/main.py", line 117, in <module>
    plex_auto_languages = PlexAutoLanguages(args.config_file)
  File "/home/user/.apps/Plex-Auto-Languages/main.py", line 27, in __init__
    self.config = Configuration(user_config_path)
  File "/home/user/.apps/Plex-Auto-Languages/plex_auto_languages/utils/configuration.py", line 74, in __init__
    self._add_system_config()
  File "/home/user/.apps/Plex-Auto-Languages/plex_auto_languages/utils/configuration.py", line 128, in _add_system_config
    os.makedirs(self._config["data_dir"])
  File "/usr/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/config'

I've tried changing the owner to myself, with chown, and I've tried to give all files permission 777 with chmod.

RemiRigal commented 11 months ago

It appears that Plex-Auto-Languages wrongly identify your environment as a Docker container one, that's why it's trying to create a /config directory.

Could you give me additional information about your operating system ? Are running inside a VM or LXC container ?

If either one of the following conditions is true, Plex-Auto-Languages assumes that it runs inside a Docker container:

Could you check these conditions and provide the results ? Thanks.

jangerhard commented 11 months ago

I'm trying to run this inside a VM.

Is there a way of overriding this behaviour?