jkirkcaldy / plex-utills

Manage your Plex library automatically
MIT License
324 stars 24 forks source link

/config/config.ini exists error #33

Closed hackmonker closed 2 years ago

hackmonker commented 3 years ago

I am trying to run the docker container for the first time and it keeps giving me this error

config/config.ini exists

services:
    plex-utills:
        image: jkirkcaldy/plex-utills
        container_name: plex-utills
        restart: unless-stopped
        volumes: 
            - /mnt:/mnt
            - /opt/plex-utills/config:/config
        environment: 
            - TZ=Europe/London

This is my compose

[PLEXSERVER]
PLEX_URL = http://plex:32400
TOKEN = xxxxxxxxxxxxx
# This should match the library title seen in Plex
FILMSLIBRARY = 4K Movies
3D_Library = 3D-Films
#Use the setup helper if you don't know what to use here.
PLEXPATH = /mnt/unionfs/Media/Movies/Movies-4K

# If using Docker, leave this as /films. No trailing slash.
MOUNTEDPATH = /mnt/unionfs/Media/Movies/Movies-4K

[SCHEDULES]
#enter the time of day you want the script to run
4k_poster_schedule = 23:00
3d_poster_schedule = 22:45
disney_schedule = 22:00
pixar_schedule = 22:10
hide_poster_schedule = 01:00

[DOWNLOADERS]
#Coming Soon
sonarrurl = "https://sonarrurl"
sonarrapi = "sonarapi"
radarrurl = "https://radarurl"
radarrapi = "radarrapi"

[OPTIONS]
# Enter either True or False only to turn on/off the features you wish to use.
#Create a backup of your posters before adding banners. This is global for 4k/HDR or 3D films
POSTER_BU = true

4k_hdr_posters = true
mini_4k = false
HDR_BANNER = TRUE

3D_posters = false
mini_3D = false

Disney = false
Pixar = false
hide_4k = false

#Set this to true, if you would like your Plex Server to create an optimised HD version of your 4K films. This is not reccomended on low powered hardware
transcode = false

#Use ffmpeg to check for corrupted files. It will check files added in however many days you set below.
CHECK_FILES = false
#Set the number of days you want to go back and check, the longer you go back the longer the checks will take.
CHECK_FILES_HISTORY = 10

This is my config.

what could be the reason?

td001 commented 3 years ago

Ditto.

curious44 commented 3 years ago

I also get this, just tried installing in unRaid last week. Here is what I see in my logs.

14:31:08 : This script is now running, check back later for more info
 Plex mount path is:
/mnt 
 # You should use the mount path of all your media not just your movies folder. 
 checking poster download permissions...
Traceback (most recent call last):
File "/app/./run_all.py", line 110, in <module>
plex_file_path()
File "/app/./run_all.py", line 92, in plex_file_path
imgurl = i[0].posterUrl
IndexError: list index out of range
/config/config.ini exists
jkirkcaldy commented 3 years ago

the line config/config.ini exists is not an error. It is part of the first run script. All it means is that the config file exists so it won't copy over the file with the example file included in the docker container.

If you have set the schedule to run the scripts late at night you won't see anything else in the logs until the scheduled time where it will run the scripts if you have enabled them.

td001 commented 3 years ago

@jkirkcaldy is there a way to turn it off or is it supposed to repeat itself over and over?

jkirkcaldy commented 3 years ago

@td001 What would you like to turn off?

ApfelBirneKreis commented 3 years ago

I´m seeing this issue now too. Same log error:

checking poster download permissions...
Traceback (most recent call last):
File "/app/./run_all.py", line 110, in <module>
plex_file_path()
File "/app/./run_all.py", line 92, in plex_file_path
imgurl = i[0].posterUrl
IndexError: list index out of range

The odd thing is that it was perfectly running before. I just restarted the system and the error occoured. Container is not starting up now.

claygorman commented 3 years ago

I had this same issue and noticed my container kept restarting. Issue for me was that my image was using latest and config has breaking changes. This is not technically a bug but a warning that my config is not valid would be ideal. (pinning to 21.07.1 worked for me)

jsbear commented 3 years ago

Anyone have this working on UNRAID? My was working for a bit, then an update to the docker came out a few months back, and it stopped working. Figured I would circle back, as I tested again this morning, and still no go.

Thanks.

ApfelBirneKreis commented 3 years ago

@jsbear yeah i got it working on my UnRaid Server. post your config and your settings in the docker tab.

jsbear commented 3 years ago

@ApfelBirneKreis I started over, completely deleting the old image, and was able to get it working this time. I noticed a few differences than my original working config file. Plex token had changed, not sure why, I haven't changed my password in recent memory, or forcefully signed out any devices.

td001 commented 3 years ago

Nope, still seems to be in this continues restart of the docker container with the "/config/config.ini exists" over and over (keeps restarting). I've deleted everything and redownloaded the image again and the same result. My config settings are here: https://i.imgur.com/5rBjD7y.png

jkirkcaldy commented 3 years ago

I think this may be because of the way the schedulign works. Try adding 00:00 for the schedule for the scripts you don't want to run.

I'll fix this in the next push.

td001 commented 3 years ago

Tried that, sadly still the same issue. However, I manually pulled the package down and copied over the config.ini and it ran successfully. I think I will stick with that for now.