Help Center/ GeminiDB/ GeminiDB Redis API/ FAQs/ Database Usage/ What Should I Do If "ERR unknown command sentinel" Is Displayed?
Updated on 2025-07-29 GMT+08:00

What Should I Do If "ERR unknown command sentinel" Is Displayed?

Scenarios

When SENTINEL commands are executed on a GeminiDB Redis instance, the error message "ERR unknown command sentinel" may be displayed.

Error Cause

If the value of CompatibleMode of cluster GeminiDB Redis instances is not 3 or the value of CompatibleMode of primary/standby GeminiDB Redis instances is not 2, SENTINEL commands are not allowed.

Solution

  1. Log in to the Huawei Cloud console.
  2. In the service list, choose Databases > GeminiDB.
  3. On the Instances page, click the target instance. The Basic Information page is displayed.
  4. In the navigation pane on the left, choose Parameters.
  5. Change the value of CompatibleMode and click Save.

    • For a cluster instance, set CompatibleMode to 3.
    • For a primary/standby instance, set CompatibleMode to 2.
    Figure 1 Changing parameters