扫描二维码关注官方公众号
返回列表 发布新帖

[求助] Emby docker版无法连接到tmdb,但套件版可以正常刮削

3420 1
发表于 2022-12-13 20:25:36 | 查看全部 阅读模式
悬赏30丝瓜未解决
本帖最后由 McGuffin 于 2022-12-13 20:27 编辑

系统:DSM 7.1.1-42962 Update 1
网络情况:tmdb相关api地址可直连
在元数据下载器只选择tmdb的情况下:
套件版无需修改hosts或代理可直接刮削到元数据和图片;
docker版(无论是官方镜像还是lovechen的镜像)无论是直连、修改hosts还是挂代理都无法连接到TMDB;日志如下:
  1. 2022-12-13 08:31:23.051 Info HttpClient: GET https://api.themoviedb.org/3/configuration?api_key=x_secret1_x
  2. 2022-12-13 08:31:43.053 Error HttpClient: Connection to https://api.themoviedb.org/3/configuration?api_key=f6bd687ffa63cd282b6ff2c6877f2669 timed out
  3. 2022-12-13 08:31:43.060 Error App: Error in TheMovieDb
  4.         *** Error Report ***
  5.         Version: 4.7.10.0
  6.         Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
  7.         Operating system: Linux version 4.4.180+ (root@build15) (gcc version 8.5.0 (GCC) ) #42962 SMP Wed Sep 21 10:56:47 CST 2022
  8.         Framework: .NET 6.0.8
  9.         OS/Process: x64/x64
  10.         Runtime: system/System.Private.CoreLib.dll
  11.         Processor count: 4
  12.         Data path: /config
  13.         Application path: /system
  14.         MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Connection to https://api.themoviedb.org/3/configuration?api_key=f6bd687ffa63cd282b6ff2c6877f2669 timed out
  15.          ---> System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing.
  16.          ---> System.TimeoutException: A task was canceled.
  17.          ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
  18.            at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
  19.            at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  20.            at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
  21.            at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  22.            at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  23.            at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
  24.            --- End of inner exception stack trace ---
  25.            --- End of inner exception stack trace ---
  26.            at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
  27.            at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
  28.            at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.(HttpRequestOptions , String )
  29.            --- End of inner exception stack trace ---
  30.            at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.(HttpRequestOptions , String )
  31.            at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
  32.            at MovieDb.MovieDbProvider.GetMovieDbResponse(HttpRequestOptions options)
  33.            at MovieDb.MovieDbProvider.GetTmdbSettings(CancellationToken cancellationToken)
  34.            at MovieDb.MovieDbSearch.GetSearchResults(ItemLookupInfo idInfo, String searchType, CancellationToken cancellationToken)
  35.            at MovieDb.GenericMovieDbInfo`1.GetMetadata(ItemLookupInfo itemId, CancellationToken cancellationToken)
  36.            at Emby.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, LibraryOptions libraryOptions, String logName, TIdType id, IEnumerable`1 providers, MetadataRefreshOptions options, CancellationToken cancellationToken)
  37.         Source: Emby.Server.Implementations
  38.         TargetSite: Void ()
  39.         InnerException: System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing.
  40.         Source: System.Net.Http
  41.         TargetSite: Void HandleFailure(System.Exception, Boolean, System.Net.Http.HttpResponseMessage, System.Threading.CancellationTokenSource, System.Threading.CancellationToken, System.Threading.CancellationTokenSource)
  42.            at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
  43.            at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
  44.            at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.(HttpRequestOptions , String )
  45.         InnerException: System.TimeoutException: A task was canceled.
  46.         Source:
  47.         TargetSite:
  48.         InnerException: System.Threading.Tasks.TaskCanceledException: A task was canceled.
  49.         Source: System.Private.CoreLib
  50.         TargetSite: Void ThrowForNonSuccess(System.Threading.Tasks.Task)
  51.            at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
  52.            at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  53.            at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
  54.            at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  55.            at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
  56.            at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
复制代码


评论1

zcq1000Lv.2 发表于 2024-7-24 14:55:00 | 查看全部
日志第二行:
  1. 2022-12-13 08:31:43.053 Error HttpClient: Connection to https://api.themoviedb.org/3/configuration?api_key=<token> timed out
  2. 2022-12-13 08:31:43.060 Error App: Error in TheMovieDb
复制代码

说明docker容器无法访问到这个地址,连接超时。

你可以给容器设置两个环境变量,来指定代理。
http_proxy=http://<Your Proxy>:<port>
https_proxy=http://<Your Proxy>:<port>
然后重启容器。
回复

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

淘宝小店

邀请码

VIP会员

微信客服

公众号

微信群

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表