Redis Config: Fixing Cannot Write to Read-Only Slave Error Message / Issues with DSE/DC and Mobile

  • 17 November 2021
  • 1 reply
  • 189 views

Userlevel 7
Badge +10

When the Dispatch Console automatic updates stop working or mobile cannot connect to the cache service, it may be because of a misconfiguration in Redis cache.  If you take a look at the event log and see that the error is “Fixing Cannot Write to Read-Only Slave", the following steps will resolve the issue:

  1. On each server, stop Internet Information Services (IIS), the Astea Cache Service, and the Astea Monitoring Service.
  2. On each server, backup the redis.windows.conf and redis-sentinal.conf files located in the Bin sub-directory of the Astea Alliance installation directory.  (ie. C:\Program Files\Astea Alliance 14.0\Bin\redis.windows.conf)
  3. On each server, Using WordPad or Notepad++, open the redis.windows.conf file and redis-sentinal.conf file as administrator and remove the contents under the section # Generated by CONFIG REWRITE.

Example of line to remove:

 

  1. On each server, open the Web.config as administrator located in the ServiceBus sub-directory of the Astea Alliance installation directory in notepad.
    1. Ensure the redis.connectionstring property points to the IP_ADDRESS:PORT of each cache server, separated by commas.  (ie. 10.10.8.36.6379,10.10.8.64:6379,abortConnect=false)
  1. Start Internet Information Services (IIS), the Astea Cache Service and Astea Monitoring Service on the server that you would like to designate as the master.
  2. Start IIS the cache services on the remaining servers.
  3. Open the Astea Configuration Editor and ensure that each cache server is listed in the Host section, separated by commas. The port section should also have the port specified for each host, separated by commas.  Please see the example below:

 

  1. Save changes made to the configuration editor.

1 reply

Userlevel 4
Badge +3

This needs a “love” button.  Looks like it could be The Mother Of All Redis Docs.  Thank you ‘Drew.

Reply