User Tools
toolsandtechnologies:trouble-shooting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| toolsandtechnologies:trouble-shooting [2021/06/25 10:09] – external edit 127.0.0.1 | toolsandtechnologies:trouble-shooting [2023/05/15 12:43] (current) – 10.91.110.100 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== New RDF Trouble-shooting | + | ====== New RDF Troubleshooting |
| - | **Please document | + | |
| + | ===Invalid Access Token=== | ||
| + | |||
| + | This error can be seen in any number of the MDC applications, | ||
| + | |||
| + | Once the token is generated, you will need to update the env-configuration repo with the new token and reconfigure the MDC apps to use it. | ||
| + | |||
| + | < | ||
| + | ansible-playbook -i ../ | ||
| + | ansible-playbook -i ../ | ||
| + | ansible-playbook -i ../ | ||
| + | ansible-playbook -i ../ | ||
| + | </ | ||
| + | |||
| + | You may need to add new user roles for the agent. To check if the agent has the correct permissions, | ||
| + | |||
| + | < | ||
| + | select r.* from user_role ur | ||
| + | join orchestrator.agent a on ur.user_id = a.id | ||
| + | join orchestrator.role r on ur.role_id = r.id | ||
| + | where a.username like '< | ||
| + | </ | ||
| + | |||
| + | I found that the agent needs the below 3 roles if they are missing: | ||
| + | |||
| + | < | ||
| + | INSERT into orchestrator.user_role | ||
| + | values ((select id from orchestrator.agent where username = '< | ||
| + | (select id from orchestrator.role where role.role = ' | ||
| + | |||
| + | INSERT into orchestrator.user_role | ||
| + | values ((select id from orchestrator.agent where username = '< | ||
| + | (select id from orchestrator.role where role.role = ' | ||
| + | |||
| + | INSERT into orchestrator.user_role | ||
| + | values ((select id from orchestrator.agent where username = '< | ||
| + | (select id from orchestrator.role where role.role = ' | ||
| + | </ | ||
| + | |||
| + | Also, check the snmp_manager.orchestrator_access_credentials to see if it's using the incorrect login details. | ||
| + | |||
| + | |||
| + | ===MDC Translator Path Invalid=== | ||
| + | |||
| + | < | ||
| + | 2023-03-22 06: | ||
| + | </ | ||
| + | |||
| + | If the above error is found in the orchestrator logs but doesn' | ||
| + | |||
| + | Log into the < | ||
| + | |||
| + | < | ||
| + | |||
| + | Check if the below example config are in there. | ||
| + | |||
| + | < | ||
| + | upstream translators { | ||
| + | server < | ||
| + | server < | ||
| + | } | ||
| + | |||
| + | location / | ||
| + | proxy_pass http:// | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | If it's missing, you can run the nginx playbook in deployment playbooks to reconfigure it or add it in manually and restart the nginx service. | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | ===Missing Database=== | ||
| + | |||
| + | < | ||
| + | |||
| + | java.sql.SQLNonTransientConnectionException: | ||
| + | Caused by: com.mysql.cj.exceptions.CJException: | ||
| + | </ | ||
| + | |||
| + | This could happen after a reinit. There is a unique database in the MDC database, usually named after the environment, | ||
| + | |||
| + | < | ||
| + | |||
| + | ===Login Issue=== | ||
| + | |||
| + | Some of the applications are reporting that you do not have permissions or they rediect to other applications. This could be caused by userprofile authorization_client not having the correct client id for ticketer or access credentials. These details are encrypted so are not handled by the transform scripts. | ||
| + | |||
| + | To check the client code, check the env-configuration repo under app_vars.ticketer.auth.clientId. Compare this to the uuid of the userprofile.authorization_client for the ticketer. If's is different, update the uuid in userprofile. | ||
| + | |||
| + | Also, check the access credentials for the applcations. Each application has a database connection at: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Update the data username and data password using the UI, so that it gets encrypted in the database. | ||
toolsandtechnologies/trouble-shooting.1624612196.txt.gz · Last modified: 2021/06/25 10:09 by 127.0.0.1