-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
PHP Warning: Unknown: Failed to write session data (redis) #188
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
Comments
It seems I have the same issues with sessions, slightly different. But it looks like recent revision has issues with session management. See what's happening on my side |
I am has same error, if i run "redis-server" under user which not access to write to redis folder (not under user "root" in my case). Error appears after some time. |
I am also affected by this issue... any ip different from 127.0.0.1 just fails ... |
Same issue here as well. I watched the logs as I was running redis-server as well and when the session should attempt to connect, it doesn't even reach the redis server. However, there is no issue using the redis object. redis-server see's the connection, just not for sessions. I should note than it works just fine with "localhost", just not for any host other than localhost. |
any update on this? this is really annoying :( |
What version of PHP are you using? It seems to work for me using version 5.3.15 however, when using version 5.4.x, I continue to get this issue. |
i'm using 5.3.15 |
Another related issue was fixed a month ago or so; are you all running the latest version? |
I just tested this again on my laptop (Fedora 17 running php 5.4.5 and it is working just fine. Here is the test code I use that worked with no problems:
We have success :-) @marcghorayeb did you try running phpize on the most recent version? Seemed to fix the issue here. |
will try that, i'll get back to you |
This warning is also thrown when you forget to supply your auth key for Redis.
|
I had the same issue and I've just fixed it. |
I had the same issue until I noticed that the auth key mustn't include specific special chars. |
I just got the same issue, |
In my case, These just delete the key, see: https://redis.io/commands/expire. I had tested that the maximum expire time in Redis was 2147483647 (0x7fffffff). So, I solved this issue by set Other issue explain same problem: #184 |
Old issue without any activity for a long time. |
If it still works for somebody, |
i had the same problem. i was setup session.save_path = "tcp://127.0.01:6379?database=10" and then Appeared this problem |
I'm trying to use redis for session handler.
also tried with :
but failed....
But I can use redis functions
this work
config in php.ini :
Using Ubuntu 11.10 + PHP-FPM (5.3.10-1ubuntu3.1) + nginx (1.1.19-1)
The text was updated successfully, but these errors were encountered: