6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14998] Support for redis-sentinel
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . ..__ __..___. [__)|__|[__)(__ | [__)| || .__) |
Comment
> TLDR The Release of Horde 5.2.22 on 20.04.2020 enabled the configuration > of redis sentinel without the update of the Hashtable that is > required to use redis sentinel. > > Here is the Error message > > EMERG: HORDE ERR unknown command `SETNX`, with args beginning with: > `hht_45289762969fd88794817c4c5ad82ce6_l`, `1`, [pid 22546 on line > 370 of "/usr/share/pear/Predis/Client.php"] > > DEBUG: HORDE 1. Horde_Registry::appInit() /var/www/html/horde/index.php:18 > 2. Horde_Registry->__construct() /usr/share/pear/Horde/Registry.php:287 > 3. Horde_Session->setup() /usr/share/pear/Horde/Registry.php:535 > 4. Horde_Session->start() /usr/share/pear/Horde/Session.php:188 > 5. session_start() /usr/share/pear/Horde/Session.php:204 > 6. Horde_SessionHandler->read() > 7. Horde_SessionHandler_Storage_Hashtable->read() > /usr/share/pear/Horde/SessionHandler.php:169 > 8. Horde_HashTable_Predis->lock() > /usr/share/pear/Horde/SessionHandler/Storage/Hashtable.php:96 > 9. Predis\Client->__call() /usr/share/pear/Horde/HashTable/Predis.php:187 > 10. Predis\Client->executeCommand() /usr/share/pear/Predis/Client.php:314 > 11. Predis\Client->onErrorResponse() /usr/share/pear/Predis/Client.php:335 > > SETNX is a Redis command, that can not be uses on theredis-sentinel server. > > # grep hashtable conf.php > $conf['sessionhandler']['hashtable'] = false; > $conf['hashtable']['params']['hostspec'] = > array('dbtest1.mail.localhost', 'dbtest2.mail.localhost', > 'dbtest.mail.localhost'); > $conf['hashtable']['params']['port'] = array('26379', '26379', '26379'); > $conf['hashtable']['params']['service'] = 'mymaster'; > $conf['hashtable']['params']['replication'] = 'sentinel'; > $conf['hashtable']['params']['protocol'] = 'tcp'; > $conf['hashtable']['params']['persistent'] = false; > $conf['hashtable']['driver'] = 'Predis'; > > I have configured the redis-sentinel servers (Port 26379) but without > the patch of > Horde/Core/Factory/HashTable.php which has not been released jet, Predis does > not know that that it is talking to the redis-sentinel > > It works finde if the normal redis is configured (replication = none) > but without the > advantages of redis-sentinel > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers