iv-org / invidious

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

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

Closed richcarleton closed 2 weeks ago

richcarleton commented 2 weeks ago

Title: Could not check out a connection in 5.0 seconds (DB::PoolTimeout) Date: 2024-11-10T23:38:50Z Route: /watch?v=Gnnr7N9V0gw Version: 2024.11.09-6f9cad7a @ unstable

Backtrace

``` Could not check out a connection in 5.0 seconds (DB::PoolTimeout) from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/db/src/db/pool.cr:261:7 in 'wait_for_available' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/db/src/db/pool.cr:127:35 in 'checkout' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/yt_backend/connection_pool.cr:17:5 in '_post_json' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/yt_backend/youtube_api.cr:506:12 in 'player:video_id:params:client_config:po_token:visitor_data' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/videos/parser.cr:107:3 in 'extract_video_info' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/videos.cr:327:3 in 'fetch_video' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/videos.cr:323:10 in 'get_video' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/videos.cr:297:1 in 'get_video:region:useremail' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/routes/watch.cr:58:15 in 'handle' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/routing.cr:159:19 in '->' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/kemal/src/kemal/route.cr:12:26 in '->' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/helpers/handlers.cr:30:5 in 'process_request' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/kemal/src/kemal/route_handler.cr:17:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/kemal/src/kemal/websocket_handler.cr:13:14 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/helpers/handlers.cr:157:5 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/helpers/handlers.cr:94:12 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/helpers/handlers.cr:146:5 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/helpers/handlers.cr:70:5 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/ext/kemal_static_file_handler.cr:162:16 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/kemal/src/kemal/exception_handler.cr:8:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/src/invidious/helpers/logger.cr:21:35 in 'call' from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next' from /root/work/invidious-stack/remote-repos/invidious-mooleshacat/lib/kemal/src/kemal/init_handler.cr:12:7 in 'call' from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'process' from /usr/share/crystal/src/http/server.cr:521:5 in 'handle_client' from /usr/share/crystal/src/http/server.cr:451:5 in '->' from /usr/share/crystal/src/fiber.cr:143:11 in 'run' from /usr/share/crystal/src/fiber.cr:95:34 in '->' from ??? ```