Plex-Meta-Manager: Config Error: config not found at //config

I’m missing something and I’m not sure where it’s at. I’m running the docker container under Unraid and I posted my setup over in issue #4. It starts up fine and I just put a config.yml and movies.yml into the folder this afternoon for the first time. I’m assuming the docker container is working because in my /config folder on Unraid that the docker image is pointing to, the logs folder got created fine and the meta.log is there.

But I’m getting this error in my docker log.

File "//plex_meta_manager.py", line 26, in <module>
elif not os.path.exists(os.path.join(default_dir, "config.yml")): raise util.Failed("Config Error: config not found at {}".format(os.path.abspath(default_dir)))

modules.util.Failed: Config Error: config not found at //config

Looks like there’s an extra // on the //config somewhere, but I don’t see it in either yml file.

Any ideas what I’ve missed?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

apologies for the necro, just wanted to point out to anyone who may be having this issue that I was able to fix this by adding a trailing / to the container path like so: image

I’m also using Unraid to host this container, and I’m seeing this double slash prefix as well. I’m combing through the Dockerfile to see if there’s something about the application transition which causes it.

I’d like to point out to @Tharic99 that they may have set up their path mount incorrectly, if they need to pass the --config argument. I assume they made it an environment variable. This screenshot specifies /mnt/user/appdata/plex-meta-manager as the default directory holding the config.yml file which works for me. The config.yml file must exist prior to running the container.

image

I’ll get around to pushing Unraid CA support later this week.

Just as a heads up in the wiki almost everywhere is says --config-path in the examples.

Screenshot

I had same issue with the Unraid Docker container and there the reason was wrong owner. It must be root, otherwise the config.yml will not be detected.

@meisnate12 Just as an additional follow-up, when I go to a console prompt for the unraid docker container.

# ls
Dockerfile  boot    dev  home  lib64  mnt      opt                   proc  run   srv  tmp  var
bin         config  etc  lib   media  modules  plex_meta_manager.py  root  sbin  sys  usr
# python plex_meta_manager.py --run
|====================================================================================================|
|                                                                                                    |
|        ____  _             __  __      _          __  __                                           |
|       |  _ \| | _____  __ |  \/  | ___| |_ __ _  |  \/  | __ _ _ __   __ _  __ _  ___ _ __         |
|       | |_) | |/ _ \ \/ / | |\/| |/ _ \ __/ _` | | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__|        |
|       |  __/| |  __/>  <  | |  | |  __/ || (_| | | |  | | (_| | | | | (_| | (_| |  __/ |           |
|       |_|   |_|\___/_/\_\ |_|  |_|\___|\__\__,_| |_|  |_|\__,_|_| |_|\__,_|\__, |\___|_|           |
|                                                                            |___/                   |
|           Version: 1.0.0                                                                           |
|====================================================================================================|
|====================================================================================================|
|                                         Starting Daily Run                                         |
|====================================================================================================|
| Locating config...                                                                                 |
| Using //config/config.yml as config                                                                |
|====================================================================================================|
| Using cache database at //config/config.cache                                                      |
|====================================================================================================|
| Connecting to TMDb...                                                                              |
| TMDb Connection Successful                                                                         |
|====================================================================================================|
| Connecting to Trakt...                                                                             |
| Trakt Connection Successful                                                                        |
|====================================================================================================|
| mal attribute not found                                                                            |
|====================================================================================================|
| Connecting to Plex Libraries...                                                                    |
|====================================================================================================|
| Connecting to Movies Library...                                                                    |
| Config Error: Skipping Movies Library default metadata_path not found at //config/Movies.yml       |
|====================================================================================================|
| Connecting to TV Shows Library...                                                                  |
| Config Error: Skipping TV Shows Library default metadata_path not found at //config/TV Shows.yml   |
|====================================================================================================|
| Plex Error: No Plex libraries were found                                                           |
|                                                                                                    |
|====================================================================================================|
|                                         Finished Daily Run                                         |
|====================================================================================================|
# 

It’s explicitly looking for Movies.yml and not movies.yml, which under *nix is two different files. Renamed the movies.yml to Movies.yml and the error goes away.

# python plex_meta_manager.py --run
|====================================================================================================|
|                                                                                                    |
|        ____  _             __  __      _          __  __                                           |
|       |  _ \| | _____  __ |  \/  | ___| |_ __ _  |  \/  | __ _ _ __   __ _  __ _  ___ _ __         |
|       | |_) | |/ _ \ \/ / | |\/| |/ _ \ __/ _` | | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__|        |
|       |  __/| |  __/>  <  | |  | |  __/ || (_| | | |  | | (_| | | | | (_| | (_| |  __/ |           |
|       |_|   |_|\___/_/\_\ |_|  |_|\___|\__\__,_| |_|  |_|\__,_|_| |_|\__,_|\__, |\___|_|           |
|                                                                            |___/                   |
|           Version: 1.0.0                                                                           |
|====================================================================================================|
|====================================================================================================|
|                                         Starting Daily Run                                         |
|====================================================================================================|
| Locating config...                                                                                 |
| Using //config/config.yml as config                                                                |
|====================================================================================================|
| Using cache database at //config/config.cache                                                      |
|====================================================================================================|
| Connecting to TMDb...                                                                              |
| TMDb Connection Successful                                                                         |
|====================================================================================================|
| Connecting to Trakt...                                                                             |
| Trakt Connection Successful                                                                        |
|====================================================================================================|
| mal attribute not found                                                                            |
|====================================================================================================|
| Connecting to Plex Libraries...                                                                    |
|====================================================================================================|
| Connecting to Movies Library...                                                                    |
| 'utf-8' codec can't decode byte 0x92 in position 13535: invalid start byte                         |
|                                                                                                    |
|====================================================================================================|
|                                         Finished Daily Run                                         |
|====================================================================================================|
# 

Of course now I have a different error, but that could very easily be related to my Movies.yml, so I’ll check that out.

I’m also using Unraid to host this container, and I’m seeing this double slash prefix as well. I’m combing through the Dockerfile to see if there’s something about the application transition which causes it.

I’d like to point out to @Tharic99 that they may have set up their path mount incorrectly, if they need to pass the --config argument. I assume they made it an environment variable. This screenshot specifies /mnt/user/appdata/plex-meta-manager as the default directory holding the config.yml file which works for me. The config.yml file must exist prior to running the container.

image

I’ll get around to pushing Unraid CA support later this week.

Looking forward to this, will you post here when you’ve added it? Thanks for adding!