#Kometa Stuck in a loop

1 messages ยท Page 1 of 1 (latest)

tawdry mist
#

I have just configured kometa, with some default items and have not configured any runtime schedules. Upon verifying the container logs, I can observe that it has been running in a loop, going over the same step for ever 3 time.

Config: https://pastebin.com/S8rtbHvb
Logs: https://pastebin.com/k8cNueYU

jolly frostBOT
#

Welcome @tawdry mist!

It looks like you have not yet completed the id:customize section of our Discord server, this will allow us to help you quicker.

Someone from <@&938443185347244033> will assist when they're available.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

rigid shadow
#

can you just drag and drop the meta.log into this thread please and then answer yes (green check) to both prompts?

#

we can get the redacted config from the meta.log

#

pastebin for logs is incomplete... hence the drag and drop into discord please

tawdry mist
jolly frostBOT
#

๐Ÿ“ If you want to review this again, monologu:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

#
**Rec 09** - ๐Ÿ’ฌ๐Ÿ’ก๏ธ **PLEX DB CACHE ADVICE**

๐Ÿ’ฌ๐Ÿ’ก๏ธ PLEX DB CACHE ADVICE
Consider updating the Plex DB cache setting from 0.04 GB, to a value greater than 1 GB based on the total memory of 16.00 GB.
Setting db_cache: 1024 within the plex settings in your config.yml is effectively 1024MB which is 1GB. For more info on this setting: https://kometa.wiki/en/latest/config/plex#plex-attributes
NOTE:The number you choose can vary wildly based on a number of factors (such as the size and number of libraries, and the amount of files/operations/overlays that are being utilized).

rigid shadow
#

ok. so it looks like you have some things going on in your setup as per the luma bot

#

are you running this via docker compose?

tawdry mist
#

yes, compose

rigid shadow
#

can you share that please

tawdry mist
#

one moment

rigid shadow
#

i think you might be using a restart line in that and this is causing the loop

#

sorry.. I am tired... so I would also like to know how you are running kometa... was this a manual run that you did? Or was this from a scheduled run

tawdry mist
#
  kometa:
    image: kometateam/kometa:latest
    container_name: kometa
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - KOMETA_CONFIG=/config/config.yml
      - KOMETA_TIME=03:00
      - KOMETA_RUN=True
      - KOMETA_TEST=False
      - KOMETA_NO_MISSING=False 
    volumes:
      - ${DOCKERCONFDIR}/kometa:/config
#

I just launched the container with Kometa_run as true

#

and that was about it, besides the config

rigid shadow
#

ok. so the kometa_time is best to be set OUTSIDE of the plex maintenance peried whcih is 3-5am

#

I would not use the -KOMETA_RUN=True here

#

i suspect that the container stops and then there is a restart if stopped and the container loops endlessly

#
  kometa:
    image: kometateam/kometa:latest
    container_name: kometa
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - KOMETA_CONFIG=/config/config.yml
      - KOMETA_TIME=05:00
      - KOMETA_TEST=False
      - KOMETA_NO_MISSING=False 
    volumes:
      - ${DOCKERCONFDIR}/kometa:/config
tawdry mist
#

Ok, one moment to reconfigure it

#

Also, is there a way to configure kometa overlays to run every time media is being added ?

rigid shadow
#

also a path issue to fonts and a tautulli issue to resolve. So if you flip through the pages from luma above, you can see how to resolve those issues.

rigid shadow
#

there are reasons for it and I can explain if you'd like....

tawdry mist
#

at lest a short version, if it is not a big issue

tawdry mist
rigid shadow
#

so short version.... taking an overlay like imdb top 250, we don't know where it falls into the whole scheme of things without running a full overlay run agains the whole library. if something falls off the list, we would not know and if something just made the list we dont know...

#

tautulli url is in there, but as the bot is showing... not working

#

maybe a bad url or bad apikey?

#

or maybe a docker network issue where the kometa and tautulliu containers cannot "see" each other?

tawdry mist
#

does it care about base URLs ?

rigid shadow
#

mine looks like this:

tautulli:                                           # Can be individually specified per library as well
  url: http://192.168.2.242:8181
  apikey: 635(redacted)af789
tawdry mist
#
tautulli:
  url: http://10.1.10.254:8181
  apikey: ea451c5(redacted)d05abc3b7

Same as here ๐Ÿ˜

rigid shadow
#

seems like then you'd want to exec into the kometa container and try to ping that IP

#

i suspect that your container is not able to reach the tautulli container from Kometa container

#

alternatively, as the logs show, go to the lines reported and see what it says there?

tawdry mist
#

Ok, will do so, would it be an option to also use the docker internal netowork with container hostnames ?

rigid shadow
#

i have seen people do that... yes

#

again... this is outside of the scope of kometa itself, but people around here are better versed than me in docker

obsidian temple
#

I use docker and I assigned tautulli to the same network

#

In my compose file

tawdry mist
#

all my *arr + plex are on the same "backend" network so I beleve that should be fine, I will implement the luma recommended fixes, rerun kometa and then see if I have any more issues.

rigid shadow
#

fair enough. we are here to assist

tawdry mist
#

By default, the the scripts do not execute at container startup ?

obsidian temple
#

by default, Kometa runs at 5am

tawdry mist
#

Is there a way to manually force an execution ?

obsidian temple
#

are you running with docker compose?

tawdry mist
#

yes

obsidian temple
#

KOMETA_RUN=true as an env variable

tawdry mist
#

if I add meta log agin, will I trigger luma ?

jolly frostBOT
#

๐Ÿ“ If you want to review this again, monologu:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

tawdry mist
#

Ok, so container hostnames did not work... bummer

tawdry mist
jolly frostBOT
#

๐Ÿ“ If you want to review this again, monologu:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

#
**Rec 06** - ๐Ÿ’ฌ **CONVERT WARNING**

๐Ÿ’ฌ CONVERT WARNING
Convert Warning: No * ID Found for * ID.
These sorts of errors indicate that the thing can't be cross-referenced between sites. For example:

Convert Warning: No TVDb ID Found for TMDb ID: 15733

In the above scenario, the TMDB record for The Two Mrs. Grenvilles ID 15733 didn't contain a TVDB ID. This could be because the record just hasn't been updated, or because The Two Mrs. Grenvilles isn't listed on TVDB.

The fix is for someone like you, perhaps to go to the relevant site and fill in the missing data.
For more information on handling these, [https://kometa.wiki/en/latest/kometa/logs/#warning]
136 line(s) with Convert Warnings. Line number(s): 1068, 2009-2014, 14288-14303, 14918-14923, 15045-15060, 15104-15139, 15183-15184, 15228, 15808-15843, 16111-16126

tawdry mist
obsidian temple
tawdry mist
#

in compose nope

obsidian temple
#

but in my kometa config, i have this ```yaml
tautulli: # Can be individually specified per library as well
url: http://tautulli:8181
apikey: 8qPp-i3{redacted}N9TCx

tawdry mist
obsidian temple
#

i don't use the time and run at the same time

tawdry mist
#

Hmm, that might be an issue I suppose then. But hey, this means that I am getting updates non stop ๐Ÿ˜‰

obsidian temple
#

so do you want it to loop or not?

tawdry mist
#

That is not how it's suppoed to work so, to skip any potential further issues I will revert to one time per day

obsidian temple
#

or you could add a restart policy and say never. and then comment out the time and just use the kometa_run=true

tawdry mist
#

And if I only specify kometa_run then the execution time will still be 5am ?

obsidian temple
#

no, run makes it run as in run now

#

is the loop a portainer issue?

tawdry mist
#

now that I have commented out the time and set restart to no in compose nope, looks like it executed once and stopped

jolly frostBOT
#

๐Ÿ“ If you want to review this again, monologu:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

#
**Rec 01** - โŒ **[ERROR]**

โŒ [ERROR]
Error messages found in your attached log.
There is a very strong likelihood that Kometa did not complete all of what you wanted. Some [ERROR] lines can be ignored.
For more information on handling these, [https://kometa.wiki/en/latest/kometa/logs/?h=[error]#error]
64 line(s) with [ERROR] messages. Line number(s): 4252, 4340, 4428, 4516, 4604, 4692, 4780, 4868, 4956, 5044, 5132, 5220, 5308, 5396, 5484, 5572, 5660, 5748, 8993, 9078, 9163, 9248, 9333, 9418, 9503, 9588, 9673, 9758, 9843, 9928, 10013, 10098, 10183, 10268, 10353, 10438, 14314, 20288, 20373, 20458, 20543, 20628, 20713, 20798, 20883, 20968, 21053, 21138, 21223, 21308, 21393, 21478, 21563, 21648, 21733, 24567, 24613, 24659, 24705, 24751, 24797, 24843, 24889, 24935

obsidian temple
#

don't need a log for that

tawdry mist
#

That was for myself ๐Ÿ™‚ To see if there are other issues I should fix

obsidian temple
#

if you want it to run at a specified time, then remove the run and add the specified time, but you can't do both from the same container

#

and in that case you would do the time and then set your restart to unless_stopped

tawdry mist
#

I also see that I have some collections which are empty, how can I avoid them to be created ?

obsidian temple
#

minimum_items: 1 or whatever you want it to be in your config settings

tawdry mist
#
  minimum_items: 1
  delete_below_minimum: true

Already have this in the settings

obsidian temple
#

were those collections created by plex and not Kometa?

tawdry mist
#

That is a good question to be honest, I have no idea as I never looked into collections before using kometa, I will manually delete them, run kometa and see if they appear back

#

Also, is there a way to supress errors for quality types the script is unabel to find as my media is only 1080p or 4k ?

obsidian temple
#

no

#

you could turn off those resolutions

rigid shadow
#

yes but not in the way you think

#

exactly what antwan said

#

by avoiding resolutions that are not in your library, you avoid the errors

#

but if ever you add a resolution that is not 4k or 1080p, the overlay wont show either

obsidian temple
#

but that means, if you do have something with that resolution, it won't be caught because kometa isn't looking for it

tawdry mist
#

So I basically configure it to not look at all for those resolutions, ok, sounds good, how ?

wanton junco
#
libraries:
  Movies:
    overlay_files:
      - default: resolution
        template_variables:
          use_720p: false

etc.

tawdry mist
#

is there a list of all possible resolutions kometa scans for ?

wanton junco
#

The wiki page for each default file shows specifically what it does.

tawdry mist
#

ok, thanks

obsidian temple
#

recommend taking a look at the wiki

wanton junco
#

Some don't have a fixed list, like genres

tawdry mist
obsidian temple
#

that's how we learn

wanton junco
#

If you have constructive suggestions on ways it could be made more accessible, bring them on.

obsidian temple
umbral kindleBOT
#

Anything further needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.