iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.37k stars 1.83k forks source link

[Bug] Could not check out a connection in 5.0 seconds (DB::PoolTimeout) #3406

Closed kaimeo closed 1 year ago

kaimeo commented 1 year ago

Describe the bug

Steps to Reproduce

Logs

Screenshots

Additional context

kaimeo commented 1 year ago

Title: Could not check out a connection in 5.0 seconds (DB::PoolTimeout) Date: 2022-11-19T11:25:21Z Route: /watch?v=-jYc6M5K1Ak Version: 2022.11.02-09942de @ master

Backtrace

``` Could not check out a connection in 5.0 seconds (DB::PoolTimeout) from /usr/share/crystal/src/time/span.cr:75:15 in 'checkout' from src/invidious/yt_backend/connection_pool.cr:39:14 in '_post_json' from src/invidious/videos.cr:896:21 in 'extract_video_info:video_id' from src/invidious/videos.cr:1129:10 in 'fetch_video' from src/invidious/videos.cr:1125:10 in 'get_video:region' from src/invidious/routes/watch.cr:63:15 in 'handle' from lib/kemal/src/kemal/route.cr:13:9 in '->' from src/invidious/helpers/handlers.cr:30:37 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from lib/kemal/src/kemal/init_handler.cr:12:7 in 'process' from /usr/share/crystal/src/http/server.cr:500:5 in '->' from /usr/share/crystal/src/fiber.cr:146:11 in 'run' from ??? ```