Troubleshooting: API Authorization Error When Trying to Open the Agent
- 1 minute to read
- Print
- DarkLight
- PDF
Troubleshooting: API Authorization Error When Trying to Open the Agent
- 1 minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
API Authorization Error When Trying to Open the Agent
Scenario
When trying to open the go agent, you may encounter an API authorization error. This issue can occur due to the senhasegura-api-authorization-service
container not being installed or started correctly. This guide provides step-by-step instructions to resolve this issue, ensuring that the necessary service is properly installed and running.
Symptom
- API authorization error when trying to open the go agent.
Likely Cause
- The
senhasegura-api-authorization-service
container is not installed or not started correctly.
Solution
Follow the steps below to resolve the API authorization error:
List Active Containers:
- Open the admin terminal and run the following command to check the running containers:
docker ps
- Confirm if the
senhasegura-api-authorization-service
container is listed. If it is not, proceed with the next steps.
- Open the admin terminal and run the following command to check the running containers:
Reinstall the Package:
- If the container is not present or installed, reinstall the necessary package with the following command:
apt reinstall senhasegura-api-authorization-service
- This will ensure that the container is downloaded and installed again.
- If the container is not present or installed, reinstall the necessary package with the following command:
Start the Service:
- After reinstalling, start the service with the command below:
systemctl start senhasegura-api-authorization
- This command will ensure that the service is running.
- After reinstalling, start the service with the command below:
Generate a New API Key:
- With the service running, generate a new API key using the following command:
orbit api keygen
- This command creates a new API key that will be used for authorization.
- With the service running, generate a new API key using the following command:
Restart the Service:
- Finally, restart the system to ensure all changes are applied correctly:
systemctl restart senhasegura-api-authorization
- Finally, restart the system to ensure all changes are applied correctly:
Conclusion
After following the steps above, the API authorization error when trying to open the agent should be resolved. If the error persists, contact technical support for further assistance.
Was this article helpful?