iv-org / invidious

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

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

Closed chaechae09 closed 1 month ago

chaechae09 commented 1 month ago

Describe the bug

Steps to Reproduce

Logs

Screenshots

Additional context

chaechae09 commented 1 month ago

Title: Could not check out a connection in 5.0 seconds (DB::PoolTimeout) Date: 2024-08-07T22:31:03Z Route: /watch?v=GU5S5VQJ3sY Version: 2024.04.27-eda7444 @ master

Backtrace

``` Could not check out a connection in 5.0 seconds (DB::PoolTimeout) from lib/db/src/db/pool.cr:240:9 in 'checkout' from src/invidious/yt_backend/connection_pool.cr:28:12 in '_post_json' from src/invidious/videos/parser.cr:58:21 in 'extract_video_info' from src/invidious/videos.cr:395:10 in 'fetch_video' from src/invidious/videos.cr:391:10 in 'get_video:region' from src/invidious/routes/watch.cr:55: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:30:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30: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:30:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from src/invidious/helpers/handlers.cr:94:12 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from src/ext/kemal_static_file_handler.cr:106:14 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call' from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'handle_client' from /usr/share/crystal/src/fiber.cr:146:11 in 'run' from ??? ```