Subject: Helm chart alerta-web: Issue with DB connections
Hi there,
I'm trying to configure the alerta-web Helm chart to use MongoDB or PostgreSQL as the database.
Steps Taken:
Set DATABASE_URL in values.yaml to mongodb://mongodbUsername:mongodbPassword@host-mongodb:27017/monitoring or postgresql://user_name:password@host_db:5432/monitoring
Disabled requirements.yml to prevent PostgreSQL installation.
Disabled PostgreSQL with enabled: false in values.yaml
Problem:
After installing the chart, the alerta pod gets stuck in a crash loop backoff state. The logs show a SyntaxError: invalid syntax at DATABASE_URL in alertad.conf.
Error Analysis:
There seems to be an error when applying the database connection endpoint within double quotes. This causes the endpoint to not be recognized as a string and not be passed to the configmap created by the deployed release, resulting in a syntax error.
Subject: Helm chart alerta-web: Issue with DB connections Hi there,
I'm trying to configure the
alerta-web
Helm chart to use MongoDB or PostgreSQL as the database.Steps Taken:
DATABASE_URL
invalues.yaml
tomongodb://mongodbUsername:mongodbPassword@host-mongodb:27017/monitoring
orpostgresql://user_name:password@host_db:5432/monitoring
requirements.yml
to prevent PostgreSQL installation.Disabled PostgreSQL with
enabled: false
invalues.yaml
Problem:
After installing the chart, the
alerta
pod gets stuck in a crash loop backoff state. The logs show aSyntaxError: invalid syntax
atDATABASE_URL
inalertad.conf
.Error Analysis: There seems to be an error when applying the database connection endpoint within double quotes. This causes the endpoint to not be recognized as a string and not be passed to the configmap created by the deployed release, resulting in a syntax error.
Mode Improvisation:
or
Thanks, Thais Rocha.
Environment
OS: [eg. Linux]
API version: [eg. 9.0.1]
Deployment: [eg. AWS EKS]
For self-hosted, WSGI environment: [eg. nginx/uwsgi, apache/mod_wsgi]
Database: [eg. MongoDB AWS]
Server config: Auth enabled? No Auth provider? No Customer views? No
web UI version: [eg. 6.8.1]
CLI version: [eg. 6.8.1]