Enterprise Server has a built-in troubleshooting tool that collects and analyzes logs and system metrics to help identify issues with the cluster.
To generate a support bundle (archive of application logs):
kubectl set env deploy/kotsadm -n <namepspace> KOTSADM_LOG_LEVEL=debug
(namespace is default
for Standalone Cluster installations)If you are unable to access the Admin Console for any reason, you can run the command below to generate a support bundle from the CLI:
Allow a few minutes for the above command to finish execution. Select quit[q]
for the checks that run at the end. The support bundle will be saved in the directory the command is executed from. The support bundle file will look something like support-bundle-2022-09-29T04_05_00.tar.gz
.
You can configure Enterprise Server to send Sentry alerts to the DeepSource team whenever an error occurs in the application.
To configure Sentry for your DeepSource installation, you will need to go to the Admin Console and scroll to the section “Export data outside the cluster” section. Then select the “Enable reporting application errors to DeepSource” option.
Notes:
- You will also need to allow egress to https://sentry.io from the cluster.
- A DSN is already set in your license, so you may have to sync your license (go to Admin Console -> License -> click on Sync License) and redeploy before you can use Sentry.
The way that DeepSource Support Engineering team currently debugs application errors on your Enterprise Server installation is through support bundles. Usually, however, the users who use the DeepSource application are not the people who have access to the admin console or application logs. Between facing issues with the application and generating and sending a support bundle, it adds a lot of friction before the issue can actually be seen by the DeepSource Support Engineering team and get fixed.
When you enable Sentry for your installation, DeepSource Support Engineering team immediately gets notified about the issue and can help with a fix as quickly as possible.
Enterprise Server lets you forward system and application logs to a log aggregation system of your choice. This can be easily configured from the Config section of the Admin Console.
Enable exporting logs to an external destination
in the Config section.Note: Log forwarding is only supported in standalone cluster installations.
This is a sample configuration for sending logs to an HTTP endpoint.
There are some releases where we change the RabbitMQ definitions for introducing new queues and ideally, RabbitMQ pods should restart automatically. However, if the configuration reload fails and RabbitMQ gets stuck in CrashLoopBackoff we recommend the following procedure to fix it:
Sometimes the normal support-bundle is not enough to diagnose the issue and we might ask you to generate a cluster support-bundle for in-depth information. To generate a support-bundle from CLI, run the following command:
After some deployments, the order of the restart of the application pods might not sync with the restart of the core services. Due to this, all analysis runs may start timing out. To fix it, follow these steps:
In some cases, even after redeploying the application with updated superusers it’s not reflected in the control panel. To fix this you can try re-running the following script to update the superusers.
To sync the user and owner avatars manually from version control systems, run the following scripts: