juspay/hyperswitch · error

Failed to create Redis connection Pool

Error message

Failed to create Redis connection Pool

What it means

Error "Failed to create Redis connection Pool" thrown in juspay/hyperswitch.

Source

Thrown at crates/drainer/src/connection.rs:11

use common_utils::DbConnectionParams;
use diesel_models::DejaPgConnection;
use storage_impl::database::store::{DatabaseConnectionWithContext, PgPool};

use crate::{settings::Database, Settings};

#[allow(clippy::expect_used)]
pub async fn redis_connection(conf: &Settings) -> redis_interface::RedisConnectionPool {
    redis_interface::RedisConnectionPool::new_without_event_emitter(&conf.redis)
        .await
        .expect("Failed to create Redis connection Pool")
}

// TODO: use stores defined in storage_impl instead
/// # Panics
///
/// Will panic if could not create a db pool
#[allow(clippy::expect_used)]
pub async fn diesel_make_pg_pool(
    database: &Database,
    _test_transaction: bool,
    schema: &str,
) -> PgPool {
    let database_url = database.get_database_url(schema);
    let manager = async_bb8_diesel::ConnectionManager::<DejaPgConnection>::new(database_url);
    let pool = bb8::Pool::builder()
        .max_size(database.pool_size)
        .connection_timeout(std::time::Duration::from_secs(database.connection_timeout));

View on GitHub (pinned to 806ec7dcc0)

Solutions

  1. Verify Redis is running and reachable at the configured host/port and that the Redis URL/auth is correct

When it happens

Trigger: Thrown at crates/drainer/src/connection.rs:13 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of juspay/hyperswitch@806ec7dcc0 (2026-08-19). Data as JSON: /api/errors/307057c030747893. Report an issue: GitHub.