Troubleshooting Red Hat Developer Hub plugins
Troubleshooting RHDH plugins
Abstract
You can troubleshoot common problems with Red Hat Developer Hub (RHDH) plugins, such as pod startup failures caused by missing plugin configuration.
1. Troubleshoot a pod startup failure after enabling a plugin
If the RHDH pod fails to start after enabling a plugin, you can inspect the pod logs and configure the required environment variables.
Procedure
Inspect your RHDH pod logs to identify if the plugin requires specific environment variables or additional configuration, for example:
Plugin '<PLUGIN_NAME>' threw an error during startup, waiting for X other plugins to finish before shutting down the process. Plugin '<PLUGIN_NAME>' startup failed; caused by Error: Missing required config value at '<concretePluginRequiredVariable.name>' in 'app-config.local.yaml' type="initialization"
-
Verify the required configuration by inspecting the
dynamic-plugins.default.yamlfile that lists the required environment variables for each plugin. The variables for each plugin are in the format of${PLUGIN_VARIABLE_NAME}. If any required environment variables are missing, set the environment variables by using a secret. For example:
kind: Secret apiVersion: v1 metadata: name: rhdh-secrets labels: backstage.io/kubernetes-id: developer-hub data: PLUGIN_VARIABLE_NAME: 'dummy-value' type: OpaqueMount the secret:
If you deployed RHDH by using the Operator, update your
BackstageCR, as follows:spec: application: extraEnvs: secrets: - name: rhdh-secretsIf you deployed RHDH by using the Helm chart, in the
upstream.backstagekey in your Helm chart values, enter the name of the Developer Hubrhdh-secretssecret as the value for theextraEnvVarsSecretsfield. For example:upstream: backstage: extraEnvVarsSecrets: - rhdh-secrets