#Kometa Quickstart hanging when accessing "Libraries" tab

1 messages · Page 1 of 1 (latest)

sterile aspen
#

Hello,

I've been using Kometa Quickstart without issue for other six months however recently I've been unable to create a configuration.

When I get to the TMBd API page and hit "next" after validating, quickstart just hangs forever. The Next button spins forever.

This also seems to corrupt the current config as after I restart the docker, I am unable to proceed to any menu outside of the homepage when that config is selected.

I've tried completely wiping the docker and reinstalling it, including the configs itself.

I'm using version 0.8.20 on Unraid.

remote flaxBOT
#

Welcome @sterile aspen!

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.

warm compassBOT
#
Providing Log Files

1: Go to your config folder

2: Go into the logs folder

3: Look for meta.log (not meta.1.log etc)

4: Drag it in the Discord thread - the whole thing, DO NOT EDIT IT

5: Still confused? ¯_(ツ)_/¯

Log file too big? USE PASTEBIN or ZIP THE FILE

sterile aspen
#

I only have quickstart logs not meta.log

limpid gyro
#

That's fine. The autoresponses are geared to Kometa.

sterile aspen
#

Ah right. Do you need my quickstart logs?

#

I'm puzzled as quickstart used to work fine.

#

should i try removing both kometa and kometa-quickstart dockers?

limpid gyro
#

I imagine they would help, but probably @wise mirage needs to have a look at this.

limpid gyro
sterile aspen
#

that's what I thought

limpid gyro
#

And there's nothing config-related stored in the container

sterile aspen
#

It's odd that it breaks the config I'm setting up also

limpid gyro
#

You could try stopping the container, renaming the config dir, and starting with a fresh one.

sterile aspen
#

Well I removed Kometa QS docker completely and deleted the config folder

#

then reinstalled

#

and the issue persists

#

I've left it hanging and there hasn't been a log for 10 minutes

#

its odd

wise mirage
#

Hi

sterile aspen
wise mirage
#

So are you getting a QuickStart.log?

sterile aspen
#

Yep

wise mirage
#

Ok... is debug mode on?

sterile aspen
#

Yep

wise mirage
#

Ok. How many libraries do you have in plex

#

Like I have 7

sterile aspen
#

6

wise mirage
#

Ok...

#

Instead of hitting next on the tmdb page, can you hit the drop-down and jump to playlist.... the one after libraries?

#

I suspect that you might have very large libraries with many movies and many episodes in your show libraries?

sterile aspen
#

That's correct

#

Ahh I can see what's happening

#

I can't get to Libraries

#

That's causing it to hang

#

So much so that I have to restart the docker to be able to interact with it at all

#

Is my plex server too large? It's odd because I used QS for months previously with the same plex server

#

Kometa Quickstart hanging when accessing "Libraries" tab

limpid gyro
#

Quickstart shouldn't care about the size of the libraries. [apparently it does, but it shouldn't have to] There's probably nothing you as a user can do about this.

#

You could try giving the container more RAM?

sterile aspen
#

I might try that

#

has there been a change recently because it worked fine about 2 months ago

#

It has 32gbs so it shouldnt be an issue

sterile aspen
#

So once the Plex IP and token are entered, both Plex and Libraries Tabs break

limpid gyro
#

Yeah, this needs some refactoring.

#

This is my tiny test server and it's rough.

sterile aspen
#

I wonder if there was a recent change?

wise mirage
#

So the idea of the table is to provide the user and support with some metrics about the libraries. Likely, we are not getting the totals in the most efficient way. Rightmost column is probably the one that costs a lot.

sterile aspen
#

Okay, sort of happy it’s not a me issue then

#

Will wait for a fix

wise mirage
#

Well can you share the nunber of media items per library? Rough estimate

#

It's not hanging but likely taking a long time to get the data from your plex server

#

Plus a little trick in chrome browser is to open up Inspect and look at the console. You will likely see data flying by and not hanging

#

So on the start page, rclick | Inspect and then in the new window, choose Console

#

See how Console was selected on the right

#

Then when you go to libraries, you should be seeing a lot of lines being written here when in debug mode

limpid gyro
#

It's gathering the episode counts that takes forever.

wise mirage
limpid gyro
#

Now I'll try my production server

#

Prod library still going after 10 minutes:

 Plex  python list-libraries.py
creating plex with plexapi config
connected to Madrigal
on 0: Movies
on 1: Movies - 4K
on 2: Movies - Alternate Cuts
on 3: Movies - Anime
on 4: Movies - French
on 5: Movies - German
on 6: Movies - International
on 7: Courses
on 7:   Counting episodes...
on 8: Fitness
on 8:   Counting episodes...
on 9: TV Shows
on 9:   Counting episodes...
Library list - Plex |███████████████████████████▊            | ▆█▆ 9/13 [69%] in 9:58 (0.0/s, eta: 32s) 
#

Code in the loop:

    for section in sections:
        print(section.title)
        totalEpisodes = 0
        if section.type == "show" and count_episodes:
            print("  Counting episodes...")
            episodes = section.search(libtype='episode')
            totalEpisodes = len(episodes)

        info = []
        info.append(section.key)
        info.append(section.title)
        info.append(section.type)
        info.append(section.agent)
        info.append(section.scanner)
        info.append(section.createdAt.strftime("%Y-%m-%d %H:%M:%S"))
        info.append(section.updatedAt.strftime("%Y-%m-%d %H:%M:%S"))
        info.append(section.totalSize)
        info.append(totalEpisodes)
        info.append(section.uuid)

        table.append(info)
wise mirage
#

Sounds like we won't be able to provide episode totals

#

Almost like plex does not have a direct way to get nunber of episodes per show library, efficiently

#

Or the plexapi

limpid gyro
#

25 minutes and still counting that one library

#

which contains 437584 episodes

#
    for section in sections:
        print(section.title)
        totalEpisodes = 0
        if section.type == "show" and count_episodes:
            print("  Counting episodes...")
            totalEpisodes = section.totalViewSize(libtype='episode')
wise mirage
#

Wow. That is a performance gain if I have ever seen one

limpid gyro
#

PR done

wise mirage
warm compassBOT
#

bullmoose20 used !aenh

@sterile aspen, anything else needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.