ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.21k stars 114 forks source link

Two shows refuse to load/fetch metadata even after doing a plex dance. Had metadata prior to losing it. #569

Open randomdice101 opened 5 months ago

randomdice101 commented 5 months ago

I've had a weird bug occur that suddenly erased all my metadata, marked all shows as if being added the same recent day. The server slowly fetched and reloaded all metadata but for some reason Mahou Tsukai Precure (Anidb-11794) and Detective Conan (Anidb-266) refuse to load metadata. Prior to the bug the two shows loaded metadata fine. I've tried to remove the shows, clear cache, empty my trash and nothing seems to fix this issue.

image 名探偵コナン [anidb-266].agent-search.log 名探偵コナン [anidb-266].agent-update.log 魔法つかいプリキュア! [anidb-11794].agent-search.log 魔法つかいプリキュア! [anidb-11794].agent-update.log I've added the logs I could find at %plex location%\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Anime (25TB)

Hopefully that is the right log? Please let me know if there is another log you require.

ZeroQI commented 5 months ago

both search function worked ok "[名探偵コナン [anidb-266]]" log is truncated, as if it crashed but no crash error logged "魔法つかいプリキュア! [anidb-11794]" is complete with all metadata, so you have a Plex issue, possibly corrupted database

https://support.plex.tv/articles/repair-a-corrupted-database/

randomdice101 commented 5 months ago

Is there somewhere I could see the crash log for conan?

ZeroQI commented 5 months ago

It should be logged there, maybe restart plex refresh metadata for conan manually and it should be in hama agent log in l9gs folder. I did separate to create per seties log as hama logs were generally two concurrent updates logged simultaneously so was unreadable as a result

randomdice101 commented 5 months ago

Okay let me give that a shot. then ill check the corrupted database steps

randomdice101 commented 5 months ago

Produced the same log I'll try and fix the db hang on

randomdice101 commented 5 months ago

I've found the tool, I'm trying to use it to fix the db but nothing seems to be wrong per the report

randomdice101 commented 5 months ago

I've run all the steps, rebuilt the database, i'm still getting the same error. any way to fix this or logs you could help me check? I don't underestand why its refusing to load any metadata

ZeroQI commented 5 months ago

Try another agent to prove if it is plex or agent specific. It should show an error on the series specific logs or hama.log.... Do not believe it is related to the agent but could be wrong

randomdice101 commented 5 months ago

Like add it in a folder that uses the plex agent then it should fail to find it? Or I can set the agent specific to the show? Just don’t want to change the whole library away

On Jun 2, 2024, at 14:24, Benjamin Brisson @.***> wrote:



Try another agent to prove if it is plex or agent specific. It should show an error on the series specific logs or hama.log.... Do not believe it is related to the agent but could be wrong

— Reply to this email directly, view it on GitHubhttps://github.com/ZeroQI/Hama.bundle/issues/569#issuecomment-2143977987, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA6UWJBTPJ53JDZSIFXITKDZFNPM7AVCNFSM6AAAAABIVA6LSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHE3TOOJYG4. You are receiving this because you authored the thread.Message ID: @.***>

ZeroQI commented 5 months ago

Create another library with another custom agent or thetvdb (not the new type libraries, they don't support third party agents, point to a folder with a series folder in it with videos inside. If it doesn't work it a plex issue. Change thz agent to hama, check if it updates metadata and if logs are full or show an error mesage...

randomdice101 commented 5 months ago

I just made a new library with thetvdb and move it to its folder. without having to do anything metadata seems to have loaded. image

randomdice101 commented 5 months ago

I also made a new test library using hamatv and it finds it okay???? image (Second entry is a collection) image So how can i fix the other entry?

ZeroQI commented 5 months ago

Your library is corrupted, do the clean bundle and optimize actions, and see... It might have to be recreated with the same folder, but not an hama issue i am afraid

Le dim. 2 juin 2024 à 22:52, randomdice101 @.***> a écrit :

I also made a new test library using hamatv and it finds it okay???? image.png (view on web) https://github.com/ZeroQI/Hama.bundle/assets/4016932/231e9844-3579-469c-a689-6a06161408c2 image.png (view on web) https://github.com/ZeroQI/Hama.bundle/assets/4016932/126db3ac-566c-47df-a5e8-1c1900a6aa96 So how can i fix the other entry?

— Reply to this email directly, view it on GitHub https://github.com/ZeroQI/Hama.bundle/issues/569#issuecomment-2144017260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHMWZK5C7N3KYQ7USUQLMTZFOA2HAVCNFSM6AAAAABIVA6LSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGAYTOMRWGA . You are receiving this because you commented.Message ID: <ZeroQI/Hama. @.***>

randomdice101 commented 5 months ago

I did the clean bundle and optimize actions as well prior to this. it didn't fix it either... if i recreate with the same folder I'll lose my watch history right?

randomdice101 commented 5 months ago

Detective conan didn't load metadata however image Same issue as the other one

ZeroQI commented 5 months ago

I am not sure but believe so... You need to fix the plex database corruption...

ZeroQI commented 5 months ago

Weird, but without logs with error message, difficult to create a fix and unlikely hama is at fault

randomdice101 commented 5 months ago

Yeah I hit refresh metadata ill post the output once its done. same log as before just from the new library right?

ZeroQI commented 5 months ago

Hamlog and custom series log in case any of them have an error logged

randomdice101 commented 5 months ago

Where is the custom series log? I know for the hama one

ZeroQI commented 5 months ago

Title.agent.log yiu gave it previously

randomdice101 commented 5 months ago

名探偵コナン [anidb-266].agent-search.log 名探偵コナン [anidb-266].agent-update.log 魔法つかいプリキュア! [anidb-11794].agent-search.log 魔法つかいプリキュア! [anidb-11794].agent-update.log

Seems like its having the same issue as before. as for the Precure series though its smaller (158kb versus 208kb)

ZeroQI commented 2 weeks ago

11794 seem to work ok 266 crash while building AniDBTVDBMap but did a fix for that, please update hama and refresh metadata