Login Issues: Specific Users Denied Access
Login Issues: Specific Users Denied Access in Login and User Interface Issues.
Login Issues: Specific Users Denied Access#
If a specific user cannot log in or encounters an access denied error, follow these steps:
- Check the Mapping status of the User in CC
- Verify the User Disabled Status in Percona
- Verify the User in Redis
- Check the UI logs and CC logs
- Verify UI Accessibility and Response with Developer Tools
- Difficulty in Adding/Editing Users and Accounts Due to Definer Error
Check the Mapping status of the User in CC#
In CC UI, check if the status and permission mapping of the user, as follows:
1. If the user is not mapped in CC, refer to Section 10: User Access Management in CC guide. Map the user for correct profile and recheck the UI issue.
2. If the user is mapped and status is active, then follow the below process.
Verify the User Disabled Status in Percona#
1. Use the following command to establish a connection to the appsone database:
mysql -h <db ip> -u <username> -P<port> -p'<password>' --ssl-mode=disabled appsone
For Example:
mysql -h 192.0.2.3 -u dbadmin -p'<password>' -P 3307 appsone
Expected Output:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10591
Server version: 8.0.31-23 Percona Server (GPL), Release 23, Revision 71449379
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
2. In the appsone database, check the status of the user:
select status from user_attributes where username="appsoneadmin";
Expected Output:
+--------+
| status |
+--------+
| 1 |
+--------+
1 row in set (0.00 sec)
3. For the appsonekeycloak database:
select ENABLED from USER_Entity where USERNAME="appsoneadmin";
Expected Output:
+---------+
| ENABLED |
+---------+
| 0x01 |
+---------+
1 row in set (0.00 sec)
Note: If the user's status is set to 0, the user is considered disabled. In such cases, enable the user and ensure that the corresponding update is reflected in the Redis key.
4. To activate the Percona/appsone in CC UI, follow as below:
i. Login to CC UI and navigate as below:

ii. In the Manage Users tab, navigate as below to activate the user:

Once the user status is 'Active' in UI. Verify the same in Redis.
Verify the User in Redis#
1. Execute the below command to list the Redis container ID:
RHEL 7.X: Docker
docker ps | grep redis
RHEL 8.X: Podman
podman ps | grep redis
2. Collect the container ID and login to the Redis container:
docker exec -it <container ID> bash
Or for Podman:
podman exec -it <container ID> bash
3. Switch to Redis CLI:
redis-cli -c --tls --cert /etc/redis.crt --key /etc/redis.key --cacert /etc/appnomic-rootca.crt -h <IP of the redis node> -p <redis port>
For Example:
redis-cli -c --tls --cert /etc/redis.crt --key /etc/redis.key --cacert /etc/appnomic-rootca.crt -h 203.0.113.4 -p 9001
4. Use the keys command to list Redis keys:
keys *
5. Use the below command to list data stored in the key:
hgetall /accounts/<account_id>/applications/<app_id>/forensic/users
The user enabled in CC UI is reflected in the output.
Check the UI logs and CC logs#
1. Verify if the user has the necessary permissions in Keycloak:
select user_identifier,access_details from appsone.user_access_details where user_identifier in (select ID from appsonekeycloak.USER_ENTITY where USERNAME='<username>');
Expected Output:
+----------------------------------------+----------------------+
| user_identifier | access_details |
+----------------------------------------+----------------------+
| 7640123a-fbde-4fe5-9812-581cd1e3a9c1 | {"accounts": ["*"]} |
+----------------------------------------+----------------------+
1 row in set (0.00 sec)
4. Ensure the Redis microservice is up and running:
nomad status heal-redis-microservice
Status should be running.
5. Inspect UI logs and CC logs for any errors:
cd <service log path>/centralized_logs/<Service name>
Verify UI Accessibility and Response with Developer Tools#
1. Press Ctrl + Shift + I on your keyboard to open Developer Tools in your browser.
Here you can:
- Check the error code.
- Download or export HAR (HTTP Archive) files, which serve as comprehensive records documenting a webpage's network requests and responses during its loading process.

Note: By analyzing HAR files, you can effectively identify performance issues and gain insights into the data exchange between the server and browser.
2. When you experience slow response time or slowness on the UI, use these steps to diagnose the issue:
a. Within the Developer Tools, click on the Network tab.
b. Analyze how much time it takes to load the specific page.
c. Capture the current state of network performance by downloading a HAR file for further analysis.

Difficulty in Adding/Editing Users and Accounts Due to Definer Error#
Issue: Attempts to add or edit any user or account through the UI result in a 401 error code, with "Definer error" being logged in both the CC and UI service logs.
Root Cause: The issue was traced back to the data center (DC) setup. The export included Definer statements tied to the DC setup, leading to the error observed.
Solution:
1. Database Export from DC: Initiate a database dump from the DC environment with a filter to remove the Definer statements:
mysqldump -h 192.0.2.24 -u dbadmin -p'<password>' -P 3307 --ssl-mode=disabled --routines --events appsone | sed -e 's/DEFINER[ ]*=[ ]*[^*]*\*\/\*/' > the_db.sql
2. Preparation in DR Setup: Take a fresh dump from the DR setup for backup purpose.
3. Database Cleanup: Drop the appsone database in the DR setup.
4. Database Creation: Create a new appsone database in the DR setup.
5. Database Import: Import the modified dump into the DR setup.