{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/horizon/issues/152","repository_url":"https://api.github.com/repos/laravel/horizon","labels_url":"https://api.github.com/repos/laravel/horizon/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/laravel/horizon/issues/152/comments","events_url":"https://api.github.com/repos/laravel/horizon/issues/152/events","html_url":"https://github.com/laravel/horizon/issues/152","id":259633466,"number":152,"title":"Predis: Error while writing bytes to the server","user":{"login":"jcalonso","id":664474,"avatar_url":"https://avatars3.githubusercontent.com/u/664474?v=4","gravatar_id":"","url":"https://api.github.com/users/jcalonso","html_url":"https://github.com/jcalonso","followers_url":"https://api.github.com/users/jcalonso/followers","following_url":"https://api.github.com/users/jcalonso/following{/other_user}","gists_url":"https://api.github.com/users/jcalonso/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalonso/subscriptions","organizations_url":"https://api.github.com/users/jcalonso/orgs","repos_url":"https://api.github.com/users/jcalonso/repos","events_url":"https://api.github.com/users/jcalonso/events{/privacy}","received_events_url":"https://api.github.com/users/jcalonso/received_events","type":"User","site_admin":false},"labels":[{"id":702197901,"url":"https://api.github.com/repos/laravel/horizon/labels/more-info","name":"more-info","color":"cccccc","default":false},{"id":647137444,"url":"https://api.github.com/repos/laravel/horizon/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-21T21:09:46Z","updated_at":"2017-10-02T18:45:54Z","closed_at":"2017-10-02T18:45:54Z","author_association":"NONE","body":"Hi,\r\n\r\nI'm experiencing the following error after installing Horizon on my application. \r\nHorizon seems to work fine and my jobs are being queued in redis and processed correctly.\r\nI'm not sure what could cause this issue, any ideas?\r\n\r\nThanks!\r\n\r\nDetails:\r\n```\r\nLaravel 5.5.4\r\nHorizon: 1.0.3\r\n```\r\n\r\nPhp:\r\n```\r\nPHP 7.1.9-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Sep  2 2017 06:17:11) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Zend OPcache v7.1.9-1+ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies\r\n```\r\n\r\n```\r\nredis-server -v\r\nRedis server v=2.8.4 sha=00000000:0 malloc=jemalloc-3.4.1 bits=64 build=a44a05d76f06a5d9\r\n```\r\n\r\nFull stacktrace\r\n\r\n```\r\n[2017-09-21 15:32:29] production.ERROR: Error while writing bytes to the server. [tcp://127.0.0.1:6379] {\"exception\":\"[object] (Predis\\\\Connection\\\\ConnectionException(code: 0): Error while writing bytes to the server. [tcp://127.0.0.1:6379] at /var/www/myLaravelApp/vendor/predis/predis/src/Connection/AbstractConnection.php:155)\r\n[stacktrace]\r\n#0 /var/www/myLaravelApp/vendor/predis/predis/src/Connection/StreamConnection.php(298): Predis\\\\Connection\\\\AbstractConnection->onConnectionError('Error while wri...')\r\n#1 /var/www/myLaravelApp/vendor/predis/predis/src/Connection/StreamConnection.php(394): Predis\\\\Connection\\\\StreamConnection->write('0*\\\\\\\\u0000job\\\\\\\\\\\";N...')\r\n#2 /var/www/myLaravelApp/vendor/predis/predis/src/Connection/AbstractConnection.php(110): Predis\\\\Connection\\\\StreamConnection->writeRequest(Object(Predis\\\\Command\\\\HashSetMultiple))\r\n#3 /var/www/myLaravelApp/vendor/predis/predis/src/Client.php(331): Predis\\\\Connection\\\\AbstractConnection->executeCommand(Object(Predis\\\\Command\\\\HashSetMultiple))\r\n#4 /var/www/myLaravelApp/vendor/predis/predis/src/Client.php(314): Predis\\\\Client->executeCommand(Object(Predis\\\\Command\\\\HashSetMultiple))\r\n#5 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(96): Predis\\\\Client->__call('hmset', Array)\r\n#6 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(108): Illuminate\\\\Redis\\\\Connections\\\\Connection->command('hmset', Array)\r\n#7 /var/www/myLaravelApp/vendor/laravel/horizon/src/Repositories/RedisJobRepository.php(251): Illuminate\\\\Redis\\\\Connections\\\\Connection->__call('hmset', Array)\r\n#8 /var/www/myLaravelApp/vendor/laravel/horizon/src/Listeners/MarkJobAsReserved.php(36): Laravel\\\\Horizon\\\\Repositories\\\\RedisJobRepository->reserved('redis', 'myRedisQueue', Object(Laravel\\\\Horizon\\\\JobPayload))\r\n#9 [internal function]: Laravel\\\\Horizon\\\\Listeners\\\\MarkJobAsReserved->handle(Object(Laravel\\\\Horizon\\\\Events\\\\JobReserved))\r\n#10 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(368): call_user_func_array(Array, Array)\r\n#11 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(200): Illuminate\\\\Events\\\\Dispatcher->Illuminate\\\\Events\\\\{closure}('Laravel\\\\\\\\Horizon...', Array)\r\n#12 /var/www/myLaravelApp/vendor/laravel/horizon/src/RedisQueue.php(155): Illuminate\\\\Events\\\\Dispatcher->dispatch('Laravel\\\\\\\\Horizon...')\r\n#13 /var/www/myLaravelApp/vendor/laravel/horizon/src/RedisQueue.php(94): Laravel\\\\Horizon\\\\RedisQueue->event('myRedisQueue', Object(Laravel\\\\Horizon\\\\Events\\\\JobReserved))\r\n#14 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1035): Laravel\\\\Horizon\\\\RedisQueue->Laravel\\\\Horizon\\\\{closure}(Object(Illuminate\\\\Queue\\\\Jobs\\\\RedisJob))\r\n#15 /var/www/myLaravelApp/vendor/laravel/horizon/src/RedisQueue.php(96): tap(Object(Illuminate\\\\Queue\\\\Jobs\\\\RedisJob), Object(Closure))\r\n#16 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(244): Laravel\\\\Horizon\\\\RedisQueue->pop('myRedisQueue')\r\n#17 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(105): Illuminate\\\\Queue\\\\Worker->getNextJob(Object(Laravel\\\\Horizon\\\\RedisQueue), 'myRedisQueue')\r\n#18 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\\\\Queue\\\\Worker->daemon('redis', 'myRedisQueue', Object(Illuminate\\\\Queue\\\\WorkerOptions))\r\n#19 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(85): Illuminate\\\\Queue\\\\Console\\\\WorkCommand->runWorker('redis', 'myRedisQueue')\r\n#20 [internal function]: Illuminate\\\\Queue\\\\Console\\\\WorkCommand->handle()\r\n#21 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array(Array, Array)\r\n#22 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\\\\Container\\\\BoundMethod::Illuminate\\\\Container\\\\{closure}()\r\n#23 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\\\\Container\\\\BoundMethod::callBoundMethod(Object(Illuminate\\\\Foundation\\\\Application), Array, Object(Closure))\r\n#24 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Container/Container.php(549): Illuminate\\\\Container\\\\BoundMethod::call(Object(Illuminate\\\\Foundation\\\\Application), Array, Array, NULL)\r\n#25 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Illuminate\\\\Container\\\\Container->call(Array)\r\n#26 /var/www/myLaravelApp/vendor/symfony/console/Command/Command.php(264): Illuminate\\\\Console\\\\Command->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Illuminate\\\\Console\\\\OutputStyle))\r\n#27 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Console/Command.php(167): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Illuminate\\\\Console\\\\OutputStyle))\r\n#28 /var/www/myLaravelApp/vendor/symfony/console/Application.php(888): Illuminate\\\\Console\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\r\n#29 /var/www/myLaravelApp/vendor/symfony/console/Application.php(224): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(Illuminate\\\\Queue\\\\Console\\\\WorkCommand), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\r\n#30 /var/www/myLaravelApp/vendor/symfony/console/Application.php(125): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\r\n#31 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Console/Application.php(88): Symfony\\\\Component\\\\Console\\\\Application->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\r\n#32 /var/www/myLaravelApp/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(121): Illuminate\\\\Console\\\\Application->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\r\n#33 /var/www/myLaravelApp/artisan(35): Illuminate\\\\Foundation\\\\Console\\\\Kernel->handle(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\r\n#34 {main}\r\n\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/horizon/issues/comments/333627733","html_url":"https://github.com/laravel/horizon/issues/152#issuecomment-333627733","issue_url":"https://api.github.com/repos/laravel/horizon/issues/152","id":333627733,"user":{"login":"jcalonso","id":664474,"avatar_url":"https://avatars3.githubusercontent.com/u/664474?v=4","gravatar_id":"","url":"https://api.github.com/users/jcalonso","html_url":"https://github.com/jcalonso","followers_url":"https://api.github.com/users/jcalonso/followers","following_url":"https://api.github.com/users/jcalonso/following{/other_user}","gists_url":"https://api.github.com/users/jcalonso/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalonso/subscriptions","organizations_url":"https://api.github.com/users/jcalonso/orgs","repos_url":"https://api.github.com/users/jcalonso/repos","events_url":"https://api.github.com/users/jcalonso/events{/privacy}","received_events_url":"https://api.github.com/users/jcalonso/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T18:45:54Z","updated_at":"2017-10-02T18:45:54Z","author_association":"NONE","body":"Thanks @pdewit!, after upgrading to Redis 4 the errors stopped."}}
{"actor":{"display_login":"jcalonso"}}