You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently integrated Laravel Horizon as a dedicated worker service for a horizontally scaled Laravel API.
It has been wonderful, but when I click on the metrics tab, it loads infinitely. After looking at the logs, I get the following error message on a variety of Horizon endpoints.
GET 500 http://example.com/
[msgpack] (php_msgpack_unserialize) Extra bytes
I suspect this is because I am using custom PHPRedis serializer and compression options in my config/database.php, like so:
Another odd note is that Horizon seems to run the jobs fine, and the outputs for failed/completed/etc jobs is working perfectly. Mainly seems to be the metrics.
Steps To Reproduce
To reproduce, I have provided the bare minimum configuration to replicate:
If anything else is needed on the replication-side, please let me know!
The text was updated successfully, but these errors were encountered:
dir
changed the title
Metrics broken when using custom serialization/compression on Redis connection
Metrics broken when using custom serialization/compression on PhpRedis database connection
Jun 9, 2024
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
I would love to push this forward and get these working, or find out a way to have serialization + compression on my cache, and disable it on my queue connections. But this is not a Laravel Horizon-specific issue by any means. Sorry for unneeded issue.
Horizon Version
5.24.5
Laravel Version
11.7.0
PHP Version
8.3
Redis Driver
PhpRedis
Redis Version
6.0.2
Database Driver & Version
No response
Description
I recently integrated Laravel Horizon as a dedicated worker service for a horizontally scaled Laravel API.
It has been wonderful, but when I click on the metrics tab, it loads infinitely. After looking at the logs, I get the following error message on a variety of Horizon endpoints.
I suspect this is because I am using custom PHPRedis serializer and compression options in my
config/database.php
, like so:I am also ensured to schedule the horizon:snapshot command every five minutes in my
routes/console.php
file, and have confirmed it is running:Another odd note is that Horizon seems to run the jobs fine, and the outputs for failed/completed/etc jobs is working perfectly. Mainly seems to be the metrics.
Steps To Reproduce
To reproduce, I have provided the bare minimum configuration to replicate:
config/database.php
Redis configuration:config/queue.php
config/cache.php
config/horizon.php
routes/console.php
If anything else is needed on the replication-side, please let me know!
The text was updated successfully, but these errors were encountered: