Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predis\Connection\ConnectionException: Connection timed out [tcp://127.0.0.1:6379] #793

Closed
rvkvino opened this issue Mar 13, 2020 · 1 comment

Comments

@rvkvino
Copy link

rvkvino commented Mar 13, 2020

I'm using laravel lumen api 5.6.3 for my application. I have also using Redis for my data storage. It's working fine last 2 years and past 10 days I'm getting issue like ERROR: Predis\Connection\ConnectionException: Connection timed out [tcp://127.0.0.1:6379] in /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/AbstractConnection.php:155 Stack trace: #0 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/StreamConnection.php(128): Predis\Connection\AbstractConnection->onConnectionError('Connection time...', 110) #1 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/StreamConnection.php(178): Predis\Connection\StreamConnection->createStreamSocket(Object(Predis\Connection\Parameters), 'tcp://127.0.0.1...', 4) #2 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/StreamConnection.php(100): Predis\Connection\StreamConnection->tcpStreamInitializer(Object(Predis\Connection\Parameters)) #3 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/AbstractConnection.php(81): Predis\Connection\StreamConnection->createResource() #4 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/StreamConnection.php(258): Predis\Connection\AbstractConnection->connect() #5 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/AbstractConnection.php(180): Predis\Connection\StreamConnection->connect() #6 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/StreamConnection.php(288): Predis\Connection\AbstractConnection->getResource() #7 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/StreamConnection.php(394): Predis\Connection\StreamConnection->write('*2\r\n$3\r\nGET\r\n$1...') #8 /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/AbstractConnection.php(110): Predis\Connection\StreamConnection->writeRequest(Object(Predis\Command\StringGet)) #9 /home/minwin/public_html/winapi/vendor/predis/predis/src/Client.php(331): Predis\Connection\AbstractConnection->executeCommand(Object(Predis\Command\StringGet)) #10 /home/minwin/public_html/winapi/vendor/predis/predis/src/Client.php(314): Predis\Client->executeCommand(Object(Predis\Command\StringGet)) #11 /home/minwin/public_html/winapi/vendor/illuminate/redis/Connections/Connection.php(96): Predis\Client->__call('get', Array) #12 /home/minwin/public_html/winapi/vendor/illuminate/redis/Connections/Connection.php(108): Illuminate\Redis\Connections\Connection->command('get', Array) #13 /home/minwin/public_html/winapi/vendor/illuminate/redis/RedisManager.php(138): Illuminate\Redis\Connections\Connection->__call('get', Array) #14 /home/minwin/public_html/winapi/app/Http/Controllers/OSWinbullliteController.php(49): Illuminate\Redis\RedisManager->__call('get', Array) #15 [internal function]: App\Http\Controllers\OSWinbullliteController->updatesourcerate(Object(Illuminate\Http\Request)) #16 /home/minwin/public_html/winapi/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array(Array, Array) #17 /home/minwin/public_html/winapi/vendor/illuminate/container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container{closure}() #18 /home/minwin/public_html/winapi/vendor/illuminate/container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Laravel\Lumen\Application), Array, Object(Closure)) #19 /home/minwin/public_html/winapi/vendor/illuminate/container/Container.php(564): Illuminate\Container\BoundMethod::call(Object(Laravel\Lumen\Application), Array, Array, NULL) #20 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(373): Illuminate\Container\Container->call(Array, Array) #21 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(339): Laravel\Lumen\Application->callControllerCallable(Array, Array) #22 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(313): Laravel\Lumen\Application->callLumenController(Object(App\Http\Controllers\OSWinbullliteController), 'updatesourcerat...', Array) #23 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(275): Laravel\Lumen\Application->callControllerAction(Array) #24 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(260): Laravel\Lumen\Application->callActionOnArrayBasedRoute(Array) #25 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(160): Laravel\Lumen\Application->handleFoundRoute(Array) #26 [internal function]: Laravel\Lumen\Application->Laravel\Lumen\Concerns{closure}(Object(Illuminate\Http\Request)) #27 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #28 /home/minwin/public_html/winapi/app/Http/Middleware/CorsMiddleware.php(30): Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing{closure}(Object(Illuminate\Http\Request)) #29 /home/minwin/public_html/winapi/vendor/illuminate/pipeline/Pipeline.php(149): App\Http\Middleware\CorsMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #30 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) #31 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #32 /home/minwin/public_html/winapi/vendor/illuminate/pipeline/Pipeline.php(102): Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing{closure}(Object(Illuminate\Http\Request)) #33 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(410): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #34 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(166): Laravel\Lumen\Application->sendThroughPipeline(Array, Object(Closure)) #35 /home/minwin/public_html/winapi/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(107): Laravel\Lumen\Application->dispatch(NULL) #36 /home/minwin/public_html/winapi/index.php(32): Laravel\Lumen\Application->run() #37 {main} {"exception":"[object] (Predis\Connection\ConnectionException(code: 110): Connection timed out [tcp://127.0.0.1:6379] at /home/minwin/public_html/winapi/vendor/predis/predis/src/Connection/AbstractConnection.php:155)

I have setting in .env like, BROADCAST_DRIVER=redis

CACHE_DRIVER=redis QUEUE_DRIVER=redis

REDIS_HOST=127.0.0.1 REDIS_PORT=6379 REDIS_TIMEOUT=60

I couldn't find out the solution for this issue and I couldn't understand the issue. Please help any one to solve this issue

@driesvints
Copy link
Member

We don't support using Horizon with Lumen, sorry: https://laravel.com/docs/7.x/releases#support-policy

Please update to the Laravel framework if you need Horizon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants