lumen-horizon icon indicating copy to clipboard operation
lumen-horizon copied to clipboard

Redis connection [default] has not been configured.

Open codeitlikemiley opened this issue 7 years ago • 5 comments

I got this error after adding it on my boostrap/app.php

$app->register(Laravel\Horizon\HorizonServiceProvider::class);

Redis connection [default] has not been configured. In Horizon.php line 91

I tried adding it on my config/app.php but no commands for horizon are registered.

codeitlikemiley avatar Jan 26 '18 11:01 codeitlikemiley

manage to fix this by adding $app->configure('database'); for some unknown reason config for database is returning null but adding that code above fixed it

codeitlikemiley avatar Jan 26 '18 12:01 codeitlikemiley

I am encountering the same issue.

Kreshnik avatar Feb 19 '18 18:02 Kreshnik

@Kreshnik have you solved the issue in the same way as @codeitlikemiley did?

I can add a note into thre readme file, if so.

psolom avatar Feb 20 '18 11:02 psolom

@servocoder I fixed the issue by changing the config/database.php config to

    'redis' => [
        'client' => 'predis',
        'default' => [
            'host' => env('REDIS_HOST', '127.0.0.1'),
            'password' => env('REDIS_PASSWORD', null),
            'port' => env('REDIS_PORT', 6379),
            'database' => 0,
        ],
    ],

I was using an older config schema for Redis.

Kreshnik avatar Feb 20 '18 18:02 Kreshnik

Ok, thanks for your feedback

psolom avatar Feb 25 '18 12:02 psolom