Remote Certified Laravel Developer at Repat LLC

Member Since 5 Years Ago

AsunciĆ³n, PY| Hamburg, DE

Experience Points
27,170
Total
Experience

2,830 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
238
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 6
27,170 XP
Jan
27
2 months ago
Activity icon

Started a new Conversation Redis: "Connection Refused" Error Log On Reboot

Hi,

I'm using Laravel Horizon / Redis with php artisan horizon running via supervisor (through Forge). On rebooting the server (via sudo reboot) I'm getting a ton of Log::error() entries that just say Connection Refused, also forwarded to Slack.

I get that it makes sense to Log these errors, but not during reboot. How are you rebooting your servers, stop the workers before? Or just ignore the errors?

Furthermore, this only happens when I'm running Redis locally and not e.g. as DBaaS. So it could probably be prevented by shutting down the workers first, then Redis?

  • Ubuntu 18.04 (also 20.04)
  • Laravel ^8
  • Horizon ^5.6

Related: https://github.com/laravel/ideas/issues/2471

[2021-01-26 23:31:07] production.ERROR: Connection refused {"exception":"[object] (RedisException(code: 0): Connection refused at /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:141)
[stacktrace]
#0 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(141): Redis->connect()
#1 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(84): Illuminate\Redis\Connectors\PhpRedisConnector->establishConnection()
#2 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Support/helpers.php(263): Illuminate\Redis\Connectors\PhpRedisConnector->Illuminate\Redis\Connectors\{closure}()
#3 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(109): tap()
#4 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php(28): Illuminate\Redis\Connectors\PhpRedisConnector->createClient()
#5 [internal function]: Illuminate\Redis\Connectors\PhpRedisConnector->Illuminate\Redis\Connectors\{closure}()
#6 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php(541): call_user_func()
#7 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(220): Illuminate\Redis\Connections\PhpRedisConnection->command()
#8 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php(580): Illuminate\Redis\Connections\Connection->__call()
#9 /home/forge/domain.com/releases/20210125112949/vendor/laravel/horizon/src/RedisHorizonCommandQueue.php(52): Illuminate\Redis\Connections\PhpRedisConnection->__call()
#10 /home/forge/domain.com/releases/20210125112949/vendor/laravel/horizon/src/Supervisor.php(329): Laravel\Horizon\RedisHorizonCommandQueue->pending()
#11 /home/forge/domain.com/releases/20210125112949/vendor/laravel/horizon/src/Supervisor.php(288): Laravel\Horizon\Supervisor->processPendingCommands()
#12 /home/forge/domain.com/releases/20210125112949/vendor/laravel/horizon/src/Supervisor.php(259): Laravel\Horizon\Supervisor->loop()
#13 /home/forge/domain.com/releases/20210125112949/vendor/laravel/horizon/src/Console/SupervisorCommand.php(99): Laravel\Horizon\Supervisor->monitor()
#14 /home/forge/domain.com/releases/20210125112949/vendor/laravel/horizon/src/Console/SupervisorCommand.php(74): Laravel\Horizon\Console\SupervisorCommand->start()
#15 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Laravel\Horizon\Console\SupervisorCommand->handle()
#16 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#17 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#18 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#19 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\Container\BoundMethod::call()
#20 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\Container\Container->call()
#21 /home/forge/domain.com/releases/20210125112949/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute()
#22 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#23 /home/forge/domain.com/releases/20210125112949/vendor/symfony/console/Application.php(971): Illuminate\Console\Command->run()
#24 /home/forge/domain.com/releases/20210125112949/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#25 /home/forge/domain.com/releases/20210125112949/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#26 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\Component\Console\Application->run()
#27 /home/forge/domain.com/releases/20210125112949/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run()
#28 /home/forge/domain.com/releases/20210125112949/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#29 {main}