erikdubbelboer / phpRedisAdmin

Simple web interface to manage Redis databases.
http://dubbelboer.com/phpRedisAdmin/
3.11k stars 666 forks source link

phpRedisAdmin causes an error in some cases #101

Closed sakhalin-ddf closed 8 years ago

sakhalin-ddf commented 8 years ago

When i try to show some keys it's causes an php timeout error. key value via redis-cli:

__flash|a:1:{s:5:"error";i:-1;}_lang|s:2:"ru";error|s:72:"\xd0\x94\xd0\xbe\xd0\xbb\xd0\xb6\xd0\xb5\xd0\xbd \xd0\xb1\xd1\x8b\xd1\x82\xd1\x8c \xd0\xb2\xd1\x8b\xd0\xb1\xd1\x80\xd0\xb0\xd0\xbd \xd1\x85\xd0\xbe\xd1\x82\xd1\x8f \xd0\xb1\xd1\x8b \xd0\xbe\xd0\xb4\xd0\xb8\xd0\xbd \xd0\xbc\xd0\xb0\xd1\x80\xd1\x88\xd1\x80\xd1\x83\xd1\x82";wizard-fields|a:11:{s:6:"format";s:6:"single";s:11:"description";s:5:"qweqw";s:8:"contacts";s:5:"qweqw";s:6:"single";O:20:"yii\\web\\UploadedFile":5:{s:4:"name";s:38:"da-ne-bred-kakoy-to_71842425_orig_.jpg";s:8:"tempName";s:76:"/workspace/sttk2/public/upload/20160714_cc1e5a1562f60d90abccdf3cd6492067.jpg";s:4:"type";s:10:"image/jpeg";s:4:"size";i:54584;s:5:"error";i:0;}s:6:"slider";a:0:{}s:5:"vidos";N;s:10:"rubricList";a:10:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"3";i:3;s:1:"4";i:4;s:1:"5";i:5;s:1:"6";i:6;s:1:"7";i:7;s:1:"8";i:8;s:1:"9";i:9;s:2:"10";}s:9:"routeList";a:0:{}s:14:"views_per_hour";i:1;s:11:"video_range";i:5;s:9:"user_type";N;}

browser wait for web server response until catching php timeout error current value contains php serialized string with some cyrillic symbols, may be it is what causing error

web server logs looks like that:

2016/07/13 12:53:50 [error] 2972#2972: *4916 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /view.php?s=9&d=9&key=session%3Ad95e9a2ef6b1c06a15f3bd2eb759ab42 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "pra.local", referrer: "http://pra.local/?view&s=9&d=9&key=session%3Ad95e9a2ef6b1c06a15f3bd2eb759ab42"
erikdubbelboer commented 8 years ago

I don't see how this could cause a timeout other than Redis not responding in time. I can not reproduce this myself. Do you have any more information?