Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shokofin unexpected interal server error #60

Closed
1 task done
johanno opened this issue Jul 7, 2024 · 9 comments
Closed
1 task done

Shokofin unexpected interal server error #60

johanno opened this issue Jul 7, 2024 · 9 comments

Comments

@johanno
Copy link

johanno commented Jul 7, 2024

Jellyfin version.

10.9.7

Shokofin version.

4.0.1.0

Shoko Server version, release channel, and commit hash.

4.2.2.0, https://truecharts.org/charts/stable/shoko-server/

File structure of your Media Library Folder in Jellyfin/Import Folder in Shoko Server.

Anime/Episode1.mkv, Anime/Episode2.mkv, Anime/Season1/Episode1.mkv ....
Basically there is no structure.

Screenshot of the "library settings" section of the plugin settings.

shokofin_1
shokofin_2
shokofin_3
shokofin_4

Library Type(s).

Shows

Do the issue persists after creating a library with Shoko set as the only metadata provider? (Now is your time to check if you haven't already.)

  • Yes, I hereby confirm that the issue persists after creating a library with Shoko set as the only metadata provider.

Issue

Refresh metadata crashes the plugin like shown in the stack trace.

Stack Trace

2024-07-07 21:06:16.201244+02:00[21:06:16] [WRN] [58] Shokofin.Providers.SeriesProvider: Unable to find show info for path /media/Animes/[Erai-raws] Ookami to Koushinryou - 01 ~ 13 [480p][Multiple Subtitle]
2024-07-07 21:06:16.259014+02:00[21:06:16] [ERR] [38] Shokofin.Resolvers.ShokoResolver: Threw unexpectedly; InternalServerErrorException
2024-07-07 21:06:16.259035+02:00Shokofin.API.Models.ApiException: InternalServerErrorException
2024-07-07 21:06:16.259043+02:00at Shokofin.API.ShokoAPIClient.Get[ReturnType](String url, HttpMethod method, String apiKey, Boolean skipCache)
2024-07-07 21:06:16.259050+02:00at Shokofin.API.ShokoAPIClient.GetFilesForImportFolder(Int32 importFolderId, String subPath, Int32 page)
2024-07-07 21:06:16.259063+02:00at Shokofin.Resolvers.VirtualFileSystemService.GetFilesForImportFolder(IReadOnlyList`1 mediaConfigs, HashSet`1 fileSet)+MoveNext()
2024-07-07 21:06:16.259071+02:00at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
2024-07-07 21:06:16.259077+02:00at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
2024-07-07 21:06:16.259083+02:00at Shokofin.Resolvers.VirtualFileSystemService.GenerateStructure(Nullable`1 collectionType, String vfsPath, IEnumerable`1 allFiles)
2024-07-07 21:06:16.259089+02:00at Shokofin.Resolvers.VirtualFileSystemService.<>c__DisplayClass16_0.<<GenerateStructureInVFS>b__2>d.MoveNext()
2024-07-07 21:06:16.259095+02:00--- End of stack trace from previous location ---
2024-07-07 21:06:16.259100+02:00at Shokofin.Utils.GuardedMemoryCache.GetOrCreateAsync[TItem](Object key, Func`1 createFactory, MemoryCacheEntryOptions createOptions)
2024-07-07 21:06:16.259106+02:00at Shokofin.Resolvers.VirtualFileSystemService.GenerateStructureInVFS(Folder mediaFolder, String path)
2024-07-07 21:06:16.259112+02:00at Shokofin.Resolvers.ShokoResolver.ResolveMultiple(Folder parent, Nullable`1 collectionType, List`1 fileInfoList)
2024-07-07 21:06:16.259276+02:00[21:06:16] [ERR] [38] MediaBrowser.Controller.Entities.BaseItem: Error retrieving children
2024-07-07 21:06:16.259302+02:00Shokofin.API.Models.ApiException: InternalServerErrorException
2024-07-07 21:06:16.259313+02:00at Shokofin.API.ShokoAPIClient.Get[ReturnType](String url, HttpMethod method, String apiKey, Boolean skipCache)
2024-07-07 21:06:16.259324+02:00at Shokofin.API.ShokoAPIClient.GetFilesForImportFolder(Int32 importFolderId, String subPath, Int32 page)
2024-07-07 21:06:16.259335+02:00at Shokofin.Resolvers.VirtualFileSystemService.GetFilesForImportFolder(IReadOnlyList`1 mediaConfigs, HashSet`1 fileSet)+MoveNext()
2024-07-07 21:06:16.259346+02:00at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
2024-07-07 21:06:16.259356+02:00at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
2024-07-07 21:06:16.259365+02:00at Shokofin.Resolvers.VirtualFileSystemService.GenerateStructure(Nullable`1 collectionType, String vfsPath, IEnumerable`1 allFiles)
2024-07-07 21:06:16.259374+02:00at Shokofin.Resolvers.VirtualFileSystemService.<>c__DisplayClass16_0.<<GenerateStructureInVFS>b__2>d.MoveNext()
2024-07-07 21:06:16.259383+02:00--- End of stack trace from previous location ---
2024-07-07 21:06:16.259392+02:00at Shokofin.Utils.GuardedMemoryCache.GetOrCreateAsync[TItem](Object key, Func`1 createFactory, MemoryCacheEntryOptions createOptions)
2024-07-07 21:06:16.259403+02:00at Shokofin.Resolvers.VirtualFileSystemService.GenerateStructureInVFS(Folder mediaFolder, String path)
2024-07-07 21:06:16.259414+02:00at Shokofin.Resolvers.ShokoResolver.ResolveMultiple(Folder parent, Nullable`1 collectionType, List`1 fileInfoList)
2024-07-07 21:06:16.259424+02:00at Shokofin.Resolvers.ShokoResolver.MediaBrowser.Controller.Resolvers.IMultiItemResolver.ResolveMultiple(Folder parent, List`1 files, Nullable`1 collectionType, IDirectoryService directoryService)
2024-07-07 21:06:16.259434+02:00at Emby.Server.Implementations.Library.LibraryManager.ResolvePaths(IEnumerable`1 files, IDirectoryService directoryService, Folder parent, LibraryOptions libraryOptions, Nullable`1 collectionType, IItemResolver[] resolvers)
2024-07-07 21:06:16.259443+02:00at MediaBrowser.Controller.Entities.Folder.GetNonCachedChildren(IDirectoryService directoryService)
2024-07-07 21:06:16.259466+02:00at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
2024-07-07 21:06:21.227850+02:00[21:06:21] [INF] [38] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification: Started library sync
2024-07-07 21:06:21.297378+02:00[21:06:21] [INF] [38] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.LibrarySyncNotification: Library Sync: Updated 1 items
@johanno
Copy link
Author

johanno commented Jul 7, 2024

Maybe I have setup sth. wrong. I do not fully understand how shoko works, or this plugin, but I assumed that it should just work.

Also thanks for updating to 10.9. Truenas downgrading wasn't possible for me.

@sigmakey
Copy link

sigmakey commented Jul 8, 2024

I'm getting the same error after setting up a new library with the latest jellyfin and shokofin. Also see the following in Shoko server logs:

2024-07-08 17:14:28 Event '00000000000000000000000000000000' queued.
2024-07-08 17:14:28 Connection id "0HN4V89SQ7FGA", Request id "0HN4V89SQ7FGA:00000004": An unhandled exception was thrown by the application.

@revam
Copy link
Member

revam commented Jul 8, 2024

Actually a duplicate of #61 (which I just transferred back to this repository for people to find when searching for their issue). So run the task to clean up missing file locations in Shoko Server and you should be good to go. @johanno @sigmakey

I'm closing both issues now.

@revam revam closed this as completed Jul 8, 2024
@revam
Copy link
Member

revam commented Jul 8, 2024

Posting the screenshot here too, in case people discover this issue first and don't bother going to the other issue.

image

@revam
Copy link
Member

revam commented Jul 8, 2024

Feel free to reopen this issue if running the action (and making sure it completes) followed by a new scan/refresh doesn't fix the issue.

@johanno
Copy link
Author

johanno commented Jul 9, 2024

I only have the option "Remove Missing Files" and it did not work.

2024-07-09 00:33:40
Connection id "0HN4M41ELL33P", Request id "0HN4M41ELL33P:00000003": An unhandled exception was thrown by the application.
2024-07-08T22:34:46.9085027Z
Event '00000000000000000000000000000000' queued.
2024-07-08T22:34:46.9085027Z
Connection id "0HN4M41ELL33P", Request id "0HN4M41ELL33P:00000004": An unhandled exception was thrown by the application.
2024-07-08T22:36:03.7364283Z
Remove Missing Files: Start
2024-07-08T22:36:03.8015704Z
Remove Missing Files: Finished
2024-07-08T22:37:58.9913388Z
Event '00000000000000000000000000000000' queued.
2024-07-08T22:37:58.9913388Z
Connection id "0HN4M41ELL36C", Request id "0HN4M41ELL36C:00000002": An unhandled exception was thrown by the application.

@johanno
Copy link
Author

johanno commented Jul 9, 2024

@revam I can not open the issue again.

@revam revam reopened this Jul 10, 2024
@revam
Copy link
Member

revam commented Jul 10, 2024

for now, I'll recommend subscribing to #61, and/or add future comments in that issue if you have something to add. and I'll leave both issues open until a fix have been found (for stable shoko server users, as the issue has already been patched in daily shoko server).

@revam
Copy link
Member

revam commented Jul 12, 2024

See #61 (comment) fir hiw to fix it.

@revam revam closed this as completed Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants