Closed leocape closed 3 years ago
Although the cron_descriptor.GetText:Failed to find locale en_US
still shows, it does not actually prevent emails from being sent. There was a misconfig with the superset_config.py
, this is the correct config for this docker-compose:
SQLALCHEMY_DATABASE_URI = \
'postgresql+psycopg2://superset:superset@postgres:5432/superset'
The debug error raised seems like just a warning
Has your problem been solved? I have the same problem @leocape
I have the same problem too :(
After creating an alert or report in 1.0.1 the alert/report fails to send. The logs on the superset container show
cron_descriptor.GetText:Failed to find locale en_US
and the alert/report is not be sent.This does not happen in the Apache build, only in the Amancevice build, so I'm guessing its something to do with the way the image has been built / extended.
(The locale of the machine appears to irrelevant to this issue)
Version: 1.0.1
Steps to replicate:
superset_config.py
to turn on the alerts and reporting feature flag:Load in the new config:
docker exec <superset> superset init
start the logs to monitor:
docker logs -f <superset>
Sign into superset and select alerts and reports from the settings menu
Create a report with 1 minute cron (interval is irrelevant, but 1 min for testing), and fill out the rest of the details
Check the logs and you will see the error
cron_descriptor.GetText:Failed to find locale en_US
and the report will not be sentdocker-compose: