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

[Bug] 瘋狂超時 #404

Open
3 tasks done
Topbcy opened this issue Oct 2, 2024 · 6 comments
Open
3 tasks done

[Bug] 瘋狂超時 #404

Topbcy opened this issue Oct 2, 2024 · 6 comments

Comments

@Topbcy
Copy link

Topbcy commented Oct 2, 2024

Verify steps

  • Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • I have read the Wiki, especially the FAQ page.
  • I have searched on the issue tracker for a related issue.

MetaTube Plugin Version

2024.612.210.0

MetaTube Server Version

1.2.7

What OS are you seeing the problem on?

Windows

Description

66部影片,感覺瘋狂超時2m,然後等超過一段時間,Jellyfin重新掃描媒體褲就會結束,但是根本還沒搜刮完....
要重複好幾次重新掃描媒體庫才會完成搜刮。
網路這方面我確認我這邊沒問題,沒有牆的問題。

補充 Plugin內的 Movie provider filiter:
AVBASE,AVE,FANZA,DUGA,FALENO,DAHLIA,PRESTIGE,HEYZO,AIRAV,ARZON,Caribbeancom,CaribbeancomPR,PACOPACOMAMA,FC2,fc2hub,Pcolle,1Pondo,10musume,TOKYO-HOT,MYWIFE,MURAMURA,SOD,HeyDouga,KIN8,C0930,H0930,H4610,XXX-AV,Gcolle,Getchu,JAV321,JavBus,AV-LEAGUE,Gfriends,MGS

MetaTube Server

/metatube-server -dsn /config/metatube.db -port 80 -db-auto-migrate -db-prepared-stmt

Jellyfin/Emby Logs

[00:42:31] [INF] [39] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: sone-372-c [00:42:31] [INF] [50] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: venz-021-c [00:42:31] [INF] [20] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: vagu-275-c [00:42:31] [INF] [33] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: sone-373-c [00:42:31] [INF] [44] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: waaa-426-c [00:42:31] [INF] [40] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: sone-424-c [00:42:31] [INF] [19] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: waaa-429-c [00:42:31] [INF] [28] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: waaa-424-c [00:42:31] [INF] [20] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: waaa-423-c [00:42:31] [INF] [58] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: waaa-410-c [00:42:31] [INF] [33] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: waaa-440-c [00:42:31] [INF] [57] Jellyfin.Plugin.MetaTube.Providers.MovieProvider: Search for movie: sone-430-c

MetaTube Server Logs

[GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [2.597ms] [rows:0] SELECT * FROM movie_metadataWHERE number = "midv-882" COLLATE NOCASE OR id = "midv-882" COLLATE NOCASE [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [2.743ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "midv-880" COLLATE NOCASE OR id = "midv-880" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=midv-882-c&provider=&fallback=True" [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=midv-880-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [8.152ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "midv-881" COLLATE NOCASE OR id = "midv-881" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=midv-881-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [8.439ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "npjs-086" COLLATE NOCASE OR id = "npjs-086" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=npjs-086-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [8.685ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "npjs-085" COLLATE NOCASE OR id = "npjs-085" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=npjs-085-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [8.770ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "same-131" COLLATE NOCASE OR id = "same-131" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=same-131-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [9.156ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "sone-371" COLLATE NOCASE OR id = "sone-371" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=sone-371-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [8.851ms] [rows:1] SELECT * FROMmovie_metadataWHERE number = "midv-875" COLLATE NOCASE OR id = "midv-875" COLLATE NOCASE [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [9.004ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "midv-878" COLLATE NOCASE OR id = "midv-878" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=midv-875-c&provider=&fallback=True" [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=midv-878-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [9.220ms] [rows:0] SELECT * FROMmovie_metadataWHERE number = "npjs-091" COLLATE NOCASE OR id = "npjs-091" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=npjs-091-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [9.353ms] [rows:1] SELECT * FROMmovie_metadataWHERE number = "midv-876" COLLATE NOCASE OR id = "midv-876" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=midv-876-c&provider=&fallback=True" [GORM] 2024/10/03 00:42:51 github.com/metatube-community/metatube-sdk-go/engine/movie.go:27 [9.637ms] [rows:0] SELECT * FROMmovie_metadata WHERE number = "npjs-101" COLLATE NOCASE OR id = "npjs-101" COLLATE NOCASE [GIN] 2024/10/03 - 00:42:51 | 200 | 2m0s | 10.0.0.50 | GET "/v1/movies/search?q=npjs-101-c&provider=&fallback=True"

How to Reproduce

No response

@xjasonlyu
Copy link
Contributor

感覺是後端哪裡配置有問題,導致搜索會hang住直到超時。但是很奇怪為什麼你的後端日誌沒有詳細的debug信息🤔

@Topbcy
Copy link
Author

Topbcy commented Oct 2, 2024

感覺是後端哪裡配置有問題,導致搜索會hang住直到超時。但是很奇怪為什麼你的後端日誌沒有詳細的debug信息🤔

可能我沒複製到。下面這串是你需要的嗎?
大佬,你說的後端是指metatube-server這邊嗎?

[ENGINE] 2024/10/03 00:51:13 github.com/metatube-community/metatube-sdk-go/engine/movie.go:142: Search keyword yuj-024: HEYZO(62.58µs):<invalid id> | Gcolle(39.893µs):<invalid id> | 10musume(47.602µs):<invalid id> | C0930(76.498µs):<invalid id> | MYWIFE(88.85µs):<invalid id> | XXX-AV(87.104µs):<invalid id> | AIRAV(102.354µs):<invalid keyword> | HeyDouga(91.361µs):<invalid id> | H0930(98.57µs):<invalid id> | 1Pondo(109.008µs):<invalid id> | Pcolle(112.775µs):<invalid id> | MURAMURA(117.024µs):<invalid id> | FC2(132.147µs):<invalid id> | TOKYO-HOT(121.424µs):<invalid keyword> | Caribbeancom(141.789µs):<invalid id> | KIN8(130.641µs):<invalid id> | Getchu(153.749µs):<invalid id> | PACOPACOMAMA(140.931µs):<invalid id> | fc2hub(160.654µs):<invalid keyword> | H4610(196.561µs):<invalid id> | CaribbeancomPR(259.857µs):<invalid id> | MGS(73.698846ms):<Forbidden> | AVBASE(153.914026ms):<no error> | FALENO(205.064733ms):<no error> | JavBus(617.83789ms):<no error> | JAV321(709.83923ms):<no error> | DAHLIA(859.365973ms):<no error> | DUGA(891.227635ms):<no error> | FANZA(996.417413ms):<no error> | AVE(1.019104596s):<no error> | ARZON(1.370017545s):<no error> | SOD(15.935843765s):<Forbidden>

@xjasonlyu
Copy link
Contributor

嗯对的,看起来是因为SOD连接超时了。你试着添加一个REQUEST_TIMEOUT=30s的环境变量给你的后端应该就可以解决这个问题。

@Topbcy
Copy link
Author

Topbcy commented Oct 2, 2024

嗯对的,看起来是因为SOD连接超时了。你试着添加一个REQUEST_TIMEOUT=30s的环境变量给你的后端应该就可以解决这个问题。

感謝大佬解決,感激不盡。

另外請教一下,這兩個指令有需要執行時加進去嗎?
-db-auto-migrate
-db-prepared-stmt

另外我發現我這邊會擋SOD,我已經把provider filiter那邊刪掉SOD了,可是從metatube-server Debug中還是會看到他嘗試存取SOD
我想問是這樣delete SOD這個?
export MT_MOVIE_PROVIDER_PRIORITY_SOD=0

@xjasonlyu
Copy link
Contributor

另外請教一下,這兩個指令有需要執行時加進去嗎?
-db-auto-migrate
-db-prepared-stmt

不需要,保持默认就好。

另外我發現我這邊會擋SOD,我已經把provider filiter那邊刪掉SOD了,可是從metatube-server Debug中還是會看到他嘗試存取SOD。我想問有沒有辦法直接delete SOD這個?

plugin的filter设置不会直接影响到后端,所以目前如果想要直接禁用SOD可以参考:https://metatube-community.github.io/wiki/metadata-providers/#_3

@Topbcy
Copy link
Author

Topbcy commented Oct 2, 2024

另外請教一下,這兩個指令有需要執行時加進去嗎?
-db-auto-migrate
-db-prepared-stmt

不需要,保持默认就好。

另外我發現我這邊會擋SOD,我已經把provider filiter那邊刪掉SOD了,可是從metatube-server Debug中還是會看到他嘗試存取SOD。我想問有沒有辦法直接delete SOD這個?

plugin的filter设置不会直接影响到后端,所以目前如果想要直接禁用SOD可以参考:https://metatube-community.github.io/wiki/metadata-providers/#_3

上面我有回覆我有找到相關設定。非常感激

優先級這邊也請教一下~
比方我要最先優先AVBASE,設定這樣
MT_MOVIE_PROVIDER_PRIORITY_AVBASE=1000

假設我第二個優先級想要JAVBUS
請問數值是990嗎? 還是1010

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