iv-org / invidious

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

`Could not check out a connection in 2.0 seconds (DB::PoolTimeout)`[Bug] #4793

Closed Githubforumember closed 4 months ago

Githubforumember commented 4 months ago

Title: Could not check out a connection in 2.0 seconds (DB::PoolTimeout) Date: 2024-07-16T20:23:46Z Route: /search?q=https%3A%2F%2Fyewtu.be%2Fwatch%3Fv%3D3W-rUY0nDxo Version: 2021.07.15-56ebef43 @ (HEAD detached at 56ebef43)

Backtrace

``` Could not check out a connection in 2.0 seconds (DB::PoolTimeout) from lib/db/src/db/pool.cr:240:9 in 'wait_for_available' from lib/db/src/db/pool.cr:85:35 in 'checkout' from src/invidious/helpers/utils.cr:35:7 in '_youtube_api_post_json' from src/invidious/helpers/youtube_api.cr:89:10 in 'request_youtube_api_search' from src/invidious/search.cr:266:3 in 'search' from src/invidious/search.cr:463:20 in 'process_search_query' from src/invidious/routes/search.cr:55:50 in 'search' from src/invidious.cr:338:1 in '->' from /usr/share/crystal/src/primitives.cr:255:3 in '->' from /usr/share/crystal/src/primitives.cr:255:3 in 'process_request' from lib/kemal/src/kemal/route_handler.cr:17:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from lib/kemal/src/kemal/websocket_handler.cr:13:14 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 src/invidious/helpers/handlers.cr:212:5 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from src/invidious/helpers/handlers.cr:94:12 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from src/invidious/helpers/handlers.cr:145:12 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from src/invidious/helpers/handlers.cr:70:5 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from src/invidious/helpers/static_file_handler.cr:189:11 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from lib/kemal/src/kemal/exception_handler.cr:8:7 in 'call' from /usr/share/crystal/src/http/server/handler.cr:28:7 in 'call_next' from src/invidious/helpers/logger.cr:17:35 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 'call' from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'process' from /usr/share/crystal/src/http/server.cr:513:5 in 'handle_client' from /usr/share/crystal/src/http/server.cr:468:13 in '->' from /usr/share/crystal/src/primitives.cr:255:3 in 'run' from /usr/share/crystal/src/fiber.cr:92:34 in '->' from ??? ```

**Describe the bug** **Steps to Reproduce** **Logs** **Screenshots** **Additional context**
SamantazFox commented 4 months ago

That invidious instance is outdated. Use another one or update if it's yours!

Githubforumember commented 4 months ago

That invidious instance is outdated. Use another one or update if it's yours!

OK, thanks for the info. It was one of the available instances listed on https://redirect.invidious.io/ when I reported the issue.

SamantazFox commented 4 months ago

OK, thanks for the info. It was one of the available instances listed on https://redirect.invidious.io/ when I reported the issue.

Oh! The static instance list (for non-JS users) seems to be outdated!