Redis not working using unixsocket
-
Hi,
I have tried to configure the plugin to use Redis with unixsocket
I have specified as HOST: /var/run/redis/redis.sock
Port 0Also, I have tried to leave Port empty.
When I click save I get in the debugs:
04/22/20 17:27:57.705 [186.4.14.16:50073 1 4Md] ?? ——GET HTTP/1.1 (HTTPS) /wp-admin/admin.php
04/22/20 17:27:57.705 [186.4.14.16:50073 1 4Md] Query String: page=lscache-settings&type=purge_all_lscache&settings-updated=true
04/22/20 17:27:57.705 [186.4.14.16:50073 1 4Md] HTTP_REFERER: https://www.zonamotriz.com/wp-admin/admin.php?page=lscache-settings&type=purge_all_lscache
04/22/20 17:27:57.705 [186.4.14.16:50073 1 4Md] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
04/22/20 17:27:57.937 [186.4.14.16:50073 1 4Md] [Ctrl] X Cache_control -> private ( logged in user )
04/22/20 17:27:58.076 [186.4.14.16:50073 1 4Md] [Ctrl] X Cache_control -> no Cache ( Admin page )
04/22/20 17:27:58.145 [186.4.14.16:50073 1 4Md] [Object] connecting to /var/run/redis/redis.sock:0
04/22/20 17:27:58.146 [186.4.14.16:50073 1 4Md] [Object] Init Redis connection
04/22/20 17:27:58.146 [186.4.14.16:50073 1 4Md] [Object] Failed to connect Redis server!
04/22/20 17:27:58.149 [186.4.14.16:50073 1 4Md] [Ctrl] not cacheable before ctrl finalize
04/22/20 17:27:58.149 [186.4.14.16:50073 1 4Md] [Router] get_uid: 112474
04/22/20 17:27:58.149 [186.4.14.16:50073 1 4Md] [Router] get_role: administrator
04/22/20 17:27:58.149 [186.4.14.16:50073 1 4Md] X-LiteSpeed-Cache-Control: no-cache
04/22/20 17:27:58.149 [186.4.14.16:50073 1 4Md] [Optm] bypass: Not frontend HTML type
04/22/20 17:27:58.149 [186.4.14.16:50073 1 4Md] End responseI’m able to connect in the server without a problem:
[root@himaxweb wp-content]# redis-cli -s /var/run/redis/redis.sock
redis /var/run/redis/redis.sock> monitor
OKI can only use Redis TCP as seen below.
04/22/20 17:32:11.619 [186.4.14.16:63188 1 uWv] [Settings] validate_plugin_settings called
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Settings] Update .object_cache.ini and flush object cache
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] Reconnecting
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] init
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] init with cfg result : — true
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] connecting to 127.0.0.1:6379
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] Init Redis connection
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] Connected
04/22/20 17:32:11.620 [186.4.14.16:63188 1 uWv] [Object] flush!Is it supported to use Redis unixsocket? If yes, could you please let me know what I’m missing or how can be debugged?
Thank you,
Best Regards
- The topic ‘Redis not working using unixsocket’ is closed to new replies.