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

v1.7.0 离线数据库更新失败 #174

Open
jones-187 opened this issue Nov 2, 2024 · 3 comments
Open

v1.7.0 离线数据库更新失败 #174

jones-187 opened this issue Nov 2, 2024 · 3 comments

Comments

@jones-187
Copy link

jones-187 commented Nov 2, 2024

1、版本:
jellyfin: v10.10.0
jellyfin-plugin-bangumi: v1.7.0

2、现象:

  • 计划任务提示更新离线数据库失败。断网查询用名称和bangumiId都查不到

image

  • 插件配置里又有相关信息:

image

  • 每更新失败一次,数据库文件夹就会增大一些:
    image

3、日志


[2024-11-02 12:17:57.687 +08:00] [INF] [23] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: download bangumi archive data from "https://github.com/bangumi/Archive/releases/download/archive/dump-2024-10-29.210231Z.zip"
[2024-11-02 12:18:07.773 +08:00] [INF] [16] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: download complete, total size: 311289591
[2024-11-02 12:18:07.777 +08:00] [INF] [16] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "character.jsonlines" to "temp/iv2wohkl.is3"
[2024-11-02 12:18:08.136 +08:00] [INF] [16] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/iv2wohkl.is3"
[2024-11-02 12:18:08.960 +08:00] [INF] [35] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "character.jsonlines" and index files with "temp/iv2wohkl.is3"
[2024-11-02 12:18:08.971 +08:00] [INF] [16] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "subject.jsonlines" to "temp/0kyqy5bg.llc"
[2024-11-02 12:18:10.945 +08:00] [INF] [25] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/0kyqy5bg.llc"
[2024-11-02 12:18:14.780 +08:00] [INF] [35] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "subject.jsonlines" and index files with "temp/0kyqy5bg.llc"
[2024-11-02 12:18:14.786 +08:00] [INF] [23] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "episode.jsonlines" to "temp/sqiw4hju.l3w"
[2024-11-02 12:18:15.343 +08:00] [INF] [23] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/sqiw4hju.l3w"
[2024-11-02 12:18:17.535 +08:00] [INF] [35] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "episode.jsonlines" and index files with "temp/sqiw4hju.l3w"
[2024-11-02 12:18:17.542 +08:00] [INF] [31] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "person.jsonlines" to "temp/dsqaaxd2.pvr"
[2024-11-02 12:18:17.689 +08:00] [INF] [25] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/dsqaaxd2.pvr"
[2024-11-02 12:18:18.034 +08:00] [INF] [23] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "person.jsonlines" and index files with "temp/dsqaaxd2.pvr"
[2024-11-02 12:18:20.978 +08:00] [ERR] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.IO.IOException: The process cannot access the file because it is being used by another process.
   at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.GenerateIndex(CancellationToken token)
   at Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask.ExecuteAsync(IProgress`1 progress, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask.ExecuteAsync(IProgress`1 progress, CancellationToken token)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2024-11-02 12:18:20.985 +08:00] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: "离线数据库更新" Failed after 0 minute(s) and 23 seconds

断网测试,好像没走离线数据库


[2024-11-02 12:21:16.528 +08:00] [INF] [29] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-11-02 12:22:16.524 +08:00] [INF] [14] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-11-02 12:23:34.525 +08:00] [INF] [14] Jellyfin.Plugin.Bangumi.BangumiApi: request api without cache: https://api.bgm.tv/v0/subjects/467461
[2024-11-02 12:23:34.534 +08:00] [ERR] [14] MediaBrowser.Providers.Manager.ProviderManager: Provider "Bangumi" failed to retrieve search results
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
 ---> System.Net.Sockets.SocketException (10054): 远程主机强迫关闭了一个现有的连接。
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.ReadAsync(Memory`1 destination)
   at System.Net.Http.HttpConnection.RawConnectionStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Jellyfin.Plugin.Bangumi.BangumiApi.SendWithOutCache(HttpRequestMessage request, String accessToken, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.BangumiApi.<>c__DisplayClass6_0.<<Send>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreateAsync[TItem](IMemoryCache cache, Object key, Func`2 factory)
   at Jellyfin.Plugin.Bangumi.BangumiApi.Get[T](String url, String accessToken, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.BangumiApi.Get[T](String url, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.BangumiApi.GetSubject(Int32 id, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.Providers.SeriesProvider.GetSearchResults(SeriesInfo searchInfo, CancellationToken token)
   at MediaBrowser.Providers.Manager.ProviderManager.GetRemoteSearchResults[TItemType,TLookupType](RemoteSearchQuery`1 searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)
[2024-11-02 12:25:04.534 +08:00] [INF] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-11-02 12:27:40.521 +08:00] [INF] [18] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.

[2024-11-02 12:32:19.133 +08:00] [ERR] [36] MediaBrowser.Providers.Manager.ProviderManager: Provider "Bangumi" failed to retrieve search results
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
 ---> System.Net.Sockets.SocketException (10054): 远程主机强迫关闭了一个现有的连接。
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.ReadAsync(Memory`1 destination)
   at System.Net.Http.HttpConnection.RawConnectionStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Jellyfin.Plugin.Bangumi.BangumiApi.SendWithOutCache(HttpRequestMessage request, String accessToken, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.BangumiApi.Post(String url, HttpContent content, String accessToken, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.BangumiApi.Post[T](String url, HttpContent content, String accessToken, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.BangumiApi.SearchSubject(String keyword, Nullable`1 type, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.Providers.SeriesProvider.GetSearchResults(SeriesInfo searchInfo, CancellationToken token)
   at MediaBrowser.Providers.Manager.ProviderManager.GetRemoteSearchResults[TItemType,TLookupType](RemoteSearchQuery`1 searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)
[2024-11-02 12:32:19.159 +08:00] [ERR] [17] MediaBrowser.Providers.Manager.ProviderManager: Provider "AniSearch" failed to retrieve search results
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
 ---> System.Net.Sockets.SocketException (10054): 远程主机强迫关闭了一个现有的连接。
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.ReadAsync(Memory`1 destination)
   at System.Net.Http.HttpConnection.RawConnectionStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniSearch.Providers.AniSearch.AniSearchApi.Search_GetSeries_list(String title, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniSearch.Providers.AniSearch.AniSearchSeriesProvider.GetSearchResults(SeriesInfo searchInfo, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.GetRemoteSearchResults[TItemType,TLookupType](RemoteSearchQuery`1 searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)
[2024-11-02 12:32:19.181 +08:00] [ERR] [43] MediaBrowser.Providers.Manager.ProviderManager: Provider "AniList" failed to retrieve search results
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。.
 ---> System.Net.Sockets.SocketException (10054): 远程主机强迫关闭了一个现有的连接。
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.ReadAsync(Memory`1 destination)
   at System.Net.Http.HttpConnection.RawConnectionStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Jellyfin.Plugin.AniList.Providers.AniList.AniListApi.WebRequestAPI(GraphQlRequest request, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniList.Providers.AniList.AniListApi.Search_GetSeries_list(String title, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniList.Providers.AniList.AniListSeriesProvider.GetSearchResults(SeriesInfo searchInfo, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.GetRemoteSearchResults[TItemType,TLookupType](RemoteSearchQuery`1 searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)
[2024-11-02 12:32:21.333 +08:00] [ERR] [17] MediaBrowser.Providers.Manager.ProviderManager: Provider "AniDB" failed to retrieve search results
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync_ReadData(Boolean needMoreChars)
   at System.Xml.AsyncHelper.CallBoolTaskFuncWhenFinishCoreAsync[TArg](Task task, Func`2 func, TArg arg)
   at System.Xml.XmlReader.MoveToContentAsync()
   at Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata.AniDbSeriesProvider.ExtractEpisodes(String seriesDataDirectory, String seriesDataPath)
   at Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata.AniDbSeriesProvider.DownloadSeriesData(String aid, String seriesDataPath, String cachePath, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata.AniDbSeriesProvider.GetSeriesData(IApplicationPaths appPaths, String seriesId, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata.AniDbSeriesProvider.GetMetadataForId(String animeId, SeriesInfo info, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata.AniDbSeriesProvider.GetSearchResultsByName(String name, SeriesInfo searchInfo, CancellationToken cancellationToken)
   at Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata.AniDbSeriesProvider.GetSearchResults(SeriesInfo searchInfo, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.GetRemoteSearchResults[TItemType,TLookupType](RemoteSearchQuery`1 searchInfo, BaseItem referenceItem, CancellationToken cancellationToken)

@kookxiang
Copy link
Owner

看提示是 temp 下的文件被占用了,可以重开 jellyfin 再试一下更新

@jones-187
Copy link
Author

重启电脑,重开jellyfin,重装过了,问题仍然存在。

1、再启动前,确保了任务管理器里没有jellifin相关进程。
2、启动方式是"\jellyfin-windows-tray\Jellyfin.Windows.Tray.exe"
3、v10.9到v10.10是通过压缩包替换升级上来的,重装是用的installer覆盖安装。
4、报错后尝试去手动删除临时文件夹下的文件,能够正常删除。

@jones-187
Copy link
Author

jones-187 commented Nov 13, 2024

正好最近换了台电脑,试了下还是通用问题。

1、版本:
jellyfin: v10.10.1
jellyfin-plugin-bangumi: v1.7.0

2、启动方式:
通过windows service启动的。

3、更新数据方式
任务里点手动执行

4、日志:

11-13 16:24:55.971 +08:00] [INF] [42] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2024-11-13 16:27:12.014 +08:00] [INF] [35] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: download bangumi archive data from "https://github.com/bangumi/Archive/releases/download/archive/dump-2024-11-12.210236Z.zip"
[2024-11-13 16:27:45.954 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: download complete, total size: 312717728
[2024-11-13 16:27:45.960 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "character.jsonlines" to "temp/gskpw2jd.am2"
[2024-11-13 16:27:46.492 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/gskpw2jd.am2"
[2024-11-13 16:27:47.706 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "character.jsonlines" and index files with "temp/gskpw2jd.am2"
[2024-11-13 16:27:47.716 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "subject.jsonlines" to "temp/vp3ktk4q.245"
[2024-11-13 16:27:50.088 +08:00] [INF] [15] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/vp3ktk4q.245"
[2024-11-13 16:27:55.588 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "subject.jsonlines" and index files with "temp/vp3ktk4q.245"
[2024-11-13 16:27:55.594 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "episode.jsonlines" to "temp/tc3i4ysp.ccu"
[2024-11-13 16:27:56.280 +08:00] [INF] [38] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/tc3i4ysp.ccu"
[2024-11-13 16:27:59.469 +08:00] [INF] [15] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "episode.jsonlines" and index files with "temp/tc3i4ysp.ccu"
[2024-11-13 16:27:59.473 +08:00] [INF] [15] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "person.jsonlines" to "temp/55l2om5t.eka"
[2024-11-13 16:27:59.645 +08:00] [INF] [34] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/55l2om5t.eka"
[2024-11-13 16:28:00.105 +08:00] [INF] [43] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "person.jsonlines" and index files with "temp/55l2om5t.eka"
[2024-11-13 16:28:03.982 +08:00] [ERR] [38] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.IO.IOException: The process cannot access the file because it is being used by another process.
   at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.GenerateIndex(CancellationToken token)
   at Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask.ExecuteAsync(IProgress`1 progress, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask.ExecuteAsync(IProgress`1 progress, CancellationToken token)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2024-11-13 16:28:04.298 +08:00] [INF] [38] Emby.Server.Implementations.ScheduledTasks.TaskManager: "离线数据库更新" Failed after 0 minute(s) and 52 seconds
[2024-11-13 16:29:43.064 +08:00] [INF] [41] Jellyfin.Plugin.Bangumi.BangumiApi: request api without cache: https://api.bgm.tv/v0/me
[2024-11-13 16:29:48.091 +08:00] [ERR] [44] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "The request was canceled due to the configured HttpClient.Timeout of 5 seconds elapsing". URL "GET" "/Plugins/Bangumi/OAuthState".
[2024-11-13 16:32:57.359 +08:00] [INF] [44] Emby.Server.Implementations.IO.LibraryMonitor: "村井之恋" ("F:\bangumi\村井之恋\Season 1") will be refreshed.
[2024-11-13 16:32:58.157 +08:00] [INF] [40] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\bangumi\村井之恋\Season 1\村井之恋 S01E11.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-11-13 16:32:58.525 +08:00] [INF] [44] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: used session id 387746 from parent
[2024-11-13 16:32:58.533 +08:00] [INF] [44] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: searching episode in series episode list
[2024-11-13 16:32:58.548 +08:00] [INF] [44] Jellyfin.Plugin.Bangumi.BangumiApi: request api without cache: https://api.bgm.tv/v0/episodes?subject_id=387746&limit=50
[2024-11-13 16:33:57.377 +08:00] [INF] [51] Emby.Server.Implementations.IO.LibraryMonitor: "村井之恋" ("F:\bangumi\村井之恋\Season 1") will be refreshed.
[2024-11-13 16:33:57.389 +08:00] [INF] [20] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"F:\bangumi\村井之恋\Season 1\村井之恋 S01E11.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-11-13 16:33:57.486 +08:00] [INF] [20] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: used session id 387746 from parent
[2024-11-13 16:33:57.487 +08:00] [INF] [20] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: searching episode in series episode list
[2024-11-13 16:33:57.489 +08:00] [INF] [20] Jellyfin.Plugin.Bangumi.BangumiApi: request api without cache: https://api.bgm.tv/v0/episodes?subject_id=387746&limit=50
[2024-11-13 16:33:58.005 +08:00] [INF] [51] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: used episode number 11 from filename because it matches "EP?([\d\.]{2,})"
[2024-11-13 16:33:58.007 +08:00] [INF] [51] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: use exists episode number 11 because it's same
[2024-11-13 16:33:58.013 +08:00] [INF] [51] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: found matching episode 11 with type null
[2024-11-13 16:33:58.017 +08:00] [INF] [51] Jellyfin.Plugin.Bangumi.Providers.EpisodeProvider: metadata for "村井之恋 S01E11.mp4": "<Bangumi Episode #1379357: 第11話>"
[2024-11-13 16:36:20.928 +08:00] [INF] [21] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: download bangumi archive data from "https://github.com/bangumi/Archive/releases/download/archive/dump-2024-11-12.210236Z.zip"
[2024-11-13 16:36:49.716 +08:00] [INF] [17] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: download complete, total size: 312717728
[2024-11-13 16:36:49.719 +08:00] [INF] [17] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "character.jsonlines" to "temp/dvwoduod.tdw"
[2024-11-13 16:36:50.167 +08:00] [INF] [41] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/dvwoduod.tdw"
[2024-11-13 16:36:51.495 +08:00] [INF] [21] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "character.jsonlines" and index files with "temp/dvwoduod.tdw"
[2024-11-13 16:36:51.499 +08:00] [INF] [21] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "subject.jsonlines" to "temp/bprnosfv.alc"
[2024-11-13 16:36:54.174 +08:00] [INF] [17] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/bprnosfv.alc"
[2024-11-13 16:37:00.018 +08:00] [INF] [18] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "subject.jsonlines" and index files with "temp/bprnosfv.alc"
[2024-11-13 16:37:00.023 +08:00] [INF] [18] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "episode.jsonlines" to "temp/vjyponct.egp"
[2024-11-13 16:37:00.728 +08:00] [INF] [41] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/vjyponct.egp"
[2024-11-13 16:37:04.043 +08:00] [INF] [41] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "episode.jsonlines" and index files with "temp/vjyponct.egp"
[2024-11-13 16:37:04.047 +08:00] [INF] [41] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: decompressing "person.jsonlines" to "temp/fqsgublt.ytd"
[2024-11-13 16:37:04.268 +08:00] [INF] [47] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: generating index for "temp/fqsgublt.ytd"
[2024-11-13 16:37:04.733 +08:00] [INF] [41] Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask: replacing "person.jsonlines" and index files with "temp/fqsgublt.ytd"
[2024-11-13 16:37:08.821 +08:00] [ERR] [41] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.IO.IOException: The process cannot access the file because it is being used by another process.
   at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.Save()
   at Jellyfin.Plugin.Bangumi.Archive.Relation.SubjectEpisodeRelation.GenerateIndex(CancellationToken token)
   at Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask.ExecuteAsync(IProgress`1 progress, CancellationToken token)
   at Jellyfin.Plugin.Bangumi.ScheduledTask.ArchiveDownloadTask.ExecuteAsync(IProgress`1 progress, CancellationToken token)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2024-11-13 16:37:08.825 +08:00] [INF] [41] Emby.Server.Implementations.ScheduledTasks.TaskManager: "离线数据库更新" Failed after 0 minute(s) and 48 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants