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
"Warning: phpiredis_reader_get_state(): supplied resource is not a valid phpredis reader resource in Predis\\Connection\\PhpiredisStreamConnection->read() (line 200 of composer/vendor/predis/predis/src/Connection/PhpiredisStreamConnection.php
The error occurs inconsistently. I've seen it mostly in hgetall which is also the most common call
What I have tried:
Changing the timeout value from 5 to 30. I thought perhaps the there is a timeout.
Removing the connections does remove the error
Changing to the trigger_errors to false in client options and the error still occurs
More info
Adding a bit more information, it phpiredis was also crashing the php-fpm processes even with commenting out the "connections". Once I disabled the extension, I was able to keep the php-fpm processes running. I'm happy to move this issue over to the other project if you feel that is best.
As I said on the other issue, what makes this really strage is that PHP crashes even without actually using phpiredis (when you comment the connections option in Predis, it just uses the default stream-based + pure-PHP protocol parser backend) which means there's probably something going on when the extension is initialized or something.
Your setup seems pretty much standard and phpiredis has been tested multiple times against a very similar setup, there's just one different thing that I noticed: you are using the blackfire extension. I've never used blackfire.io and I don't have an account with them, it would be of great help if you could try disabling the extension (maybe on a different server than the ones in production, just for testing) and see if anything changes.
First, thank you for all of your hard work.
Thread moved from predis/predis#410
Here is my setup:
** activerehashing: yes
** appendfsync: everysecond
** appendonly: no
** client-output-buffer-limit-normal-hard-limit: 0
** client-output-buffer-limit-normal-soft-limit: 0
** client-output-buffer-limit-normal-soft-seconds: 0
** client-output-buffer-limit-pubsub-hard-limit: 33554432
** client-output-buffer-limit-pubsub-soft-limit: 8388608
** client-output-buffer-limit-pubsub-soft-seconds: 60
** client-output-buffer-limit-slave-soft-seconds: 60
Client Build:
This first array is passed in the first argument to
Client
Options array
Error which occurs:
The error occurs inconsistently. I've seen it mostly in
hgetal
l which is also the most common callWhat I have tried:
connections
does remove the errortrigger_errors
tofalse
in client options and the error still occursMore info
Adding a bit more information, it phpiredis was also crashing the php-fpm processes even with commenting out the "connections". Once I disabled the extension, I was able to keep the php-fpm processes running. I'm happy to move this issue over to the other project if you feel that is best.
The text was updated successfully, but these errors were encountered: