Skip to content

Unable to send an email notification

Unable to send an email notification in Keycloak Operational Issues.

3 min read Updated SS RS

Unable to send an email notification#

Unable to send an email notification for the alerts.

Follow the below steps to rectify the issue:

  1. Navigate to the table, "user_notifications_details ".
  2. Check the parameter "is_email_enabled " in the table. If the value is '0 ', the emails are not triggering to end users.
  3. Update the value of the parameter "is_email_enabled " to '1 ', so the users will be able to receive notifications.

Difficulty Accessing Application Instances in Service#

Unable to view application instances in the service.

Follow the below steps to rectify the issue:

  1. Cluster-to-service mapping was missed in the tag_mapping table.

    For Example:

    My cluster name id 24 select from comp_instance where id =24;
    +----+-------------+--------+---------+-------+------------+--------
    ------------------+---------------------+---------------------+-----
    ---------------------------------+------------+------------------+--
    ---------------------
    +-----------+--------------+-------------+-----------------------+--
    ------------------+---------------+ | id |
    name | status | host_id | is_DR | is_cluster |
    mst_component_version_id | created_time | updated_time |
    user_details_id | account_id | mst_component_id |
    mst_component_type_id | discovery | host_address | identifier |
    mst_common_version_id | parent_instance_id | supervisor_id |
    +----+-------------+--------+---------+-------+------------+--------
    ------------------+---------------------+---------------------+-----
    ---------------------------------+------------+------------------+--
    ---------------------
    +-----------+--------------+-------------+-----------------------+--
    ------------------+---------------+ | 24 |
    WAS-Cluster | 1 | 17 | 0 | 1 | 42 | 2021-02-18 12:41:15 | 2021-02-18
    12:41:15 | 7640123a-fbde-4fe5-9812-581cd1e3a9c1 | 2 | 15 | 3 | 1 |
    NULL | WAS-Cluster | 16 | 0 | 0 |
    +----+-------------+--------+---------+-------+------------+--------
    ------------------+---------------------+---------------------+-----
    ---------------------------------+------------+------------------+--
    ---------------------
    +-----------+--------------+-------------+-----------------------+--
    ------------------+---------------+ 1 row in
    set (0.00 sec) My service id =3 and service name = "WAS-Service",
    below entry should be present. select from tag_mapping where id=605;
    +-----+--------+-----------+------------------+---------+-----------
    --+---------------------+---------------------+------------+--------
    ------------------------------+ |
    id | tag_id | object_id | object_ref_table | tag_key | tag_value |
    created_time | updated_time | account_id | user_details_id |
    +-----+--------+-----------+------------------+---------+-----------
    --+---------------------+---------------------+------------+--------
    ------------------------------+ |
    605 | 1 | 24 | comp_instance | 3 | WAS-Service | 2021-02-18 12:41:15
    | 2021-02-18 12:41:15 | 2 | 7640123a-fbde-4fe5-9812-581cd1e3a9c1 |
    +-----+--------+-----------+------------------+---------+-----------
    --+---------------------+---------------------+------------+--------
    ------------------------------+ 1
    row in set (0.00 sec)
    

Incorrect Category Information Displayed by Component#

  1. Cluster Component Mismatch:
    • The component cluster was designated for component_id 35 . However, instances within that cluster were associated with component_id 36 , leading to an issue.
  2. Resolution Steps:
    • Modified mst_component_id , mst_component_version_id , and mst_common_version_id in the comp_instance table for the cluster instance.
  3. KPI Mapping Adjustment:
    • Delete the KPI mapping for the cluster instance from comp_instance_kpi_details .
  4. Re-Mapping Correct KPIs: Re-map the accurate KPIs to the cluster in comp_instance_kpi_details .
  5. Outcome:
    • Following these adjustments, the correct Service Data Model (SDM) is will be visible.

Issues Viewing Problems/Early-Warnings in Signal Page#

Users are unable to view Problems/Early-Warnings in the Signal page.

Follow the below steps to rectify the issue:

  1. User Accessibility Issue: Users are facing problems accessing Problems/Early-Warnings on the Signal page.
  2. Rectification Steps: Follow the steps below to resolve the issue.
  3. Duplicate Entries Check: Examine the "tag_mapping " table for duplicate entries related to the same layer (app, web, DB) for a specific service.
  4. Design Compliance: Confirm adherence to the design guideline: Each service should have only one layer entry in "tag_mapping "
  5. Issue Cause: Instances of multiple layer entries for a service have been identified as the root cause of the Signal page inaccessibility.
  6. Duplicate Entry Example: Service ID 95 has two entries (IDs 2473 and 2475) for the same layer. To resolve, keep one entry and delete the duplicate.

    For Example: The duplicate entries for the layer is as below:

    mysql> SELECT * FROM tag_mapping WHERE object_ref_table='controller'
    AND object_id=95;
    --------------------------------------------------------------------
    ----------------------------------+
    | id   | tag_id | object_id | object_ref_table | tag_key | tag_value
    | created_time          | updated_time          | account_id |
    user_details_id                      |
    |------|--------|-----------|------------------|---------|----------
    --|-----------------------|-----------------------|------------|----
    ----------------------------------|
    | 2473 | 4      | 95        | controller       | Type    |
    app_service| 2021-07-28 14:02:36   | 2021-07-28 14:02:36   | 2
    | 7640123a-fbde-4fe5-9812-581cd1e3a9c1 |
    | 2475 | 4      | 95        | controller       | Type    |
    app_service| 2021-07-28 14:02:36   | 2021-07-28 14:02:36   | 2
    | 7640123a-fbde-4fe5-9812-581cd1e3a9c1 |
    | 30167| 7      | 95        | controller       | Type    | 1
    | 2021-09-21 09:43:34   | 2021-09-21 09:43:34   | 2          |
    7640123a-fbde-4fe5-9812-581cd1e3a9c1 |
    --------------------------------------------------------------------
    ----------------------------------+
    
  7. Query for Duplicate Entries: Utilize the provided query to identify and remove duplicate layer entries, ensuring only one entry per layer for each service.

    Query to find duplicate layer entries:

    SELECT object_id, COUNT(*) tag_count, GROUP_CONCAT(tag_value),
    GROUP_CONCAT(DISTINCT tag_value), CONCAT('DELETE FROM tag_mapping
    WHERE id IN(', GROUP_CONCAT(id), ')') del
    FROM tag_mapping tm
    WHERE tag_id=4 AND object_ref_table='controller'
    GROUP BY object_id
    HAVING tag_count > 1;