Not getting scheduled chat/dashboard emails
I've recently installed 0.31 superset version,
I can see the email scheduling options in "Manage" tab, I've made changes in config.py for SMTP
Ran Celery worker and beat also , but getting following error:
time limit (250s) exceeded for email_reports.send
I've changed it to 500s also, and changed CELERYD_PREFETCH_MULTIPLIER = 10
, but still not getting any emails, Am I missing something?
@mahendra

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.61. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hi, @starsunny were you running on HTTPS webservers and were you able to find a solution?
@starsunny can you please post the output from celery logs?
Are you using Firefox or Chrome driver? Are you running it locally on your machine or on a server? If local, I may have some additional tricks to find out what is happening.
Thanks, @mahendra I've been using an older version of gecko driver with firefox, as well as somehow selenium version and celery version got changed too, I've debugged it and fixed.
@niharikay Yes, I've been running on HTTPs. but how it's related to this?
Hi @starsunny @mahendra, I made the required changes in config.py and installed Firefox and geckodriver. I don't see any errors but still not getting the scheduled emails. It may be because of version incompatibilities. I have installed geckodriver 24 and Firefox 41(I know versions older than 47 do not need Geckodriver but RHEL 6 systems only support Firefox versions 41 or older.) Any suggestions on steps to debug or get the scheduled emails working on RHEL 6?
@priyankadadlani please share celery logs, You can try to install celery flower to monitor celery activity, Or you can redirect logs to specific file while running the command,
Or also you can share the config.py.
Hi guys, I am having troubles getting the menu options to show. I am using the docker version and I have set the following in config.py:
`ENABLE_SCHEDULED_EMAIL_REPORTS = True
EMAIL_NOTIFICATIONS = True SMTP_HOST = "somehost" SMTP_STARTTLS = True SMTP_SSL = True SMTP_USER = "someemail" SMTP_PORT = 25 SMTP_PASSWORD = "somepassword" SMTP_MAIL_FROM = "somemailfrom"`
Is there something that I am missing? I see the separator in the Manage menu but not the options. Apologies for any ignorance, I am quite new to this. Thanks guys
Have you install the geckodriver and Firefox yet ?
Then run 2 following command :
celery worker --app=superset.tasks.celery_app:app --pool=prefork -Ofair -c 4
celerybeat --app=superset.tasks.celery_app:app
i have enabled the email service in my config.py but getting below error when trying to create the email report :
Can anyone please guide ?
i have enabled the email service in my config.py but getting below error when trying to create the email report. Can anyone please guide ?
@Jarvis173 could you please post an error message from the log files? will help with debugging
i have enabled the email service in my config.py but getting below error when trying to create the email report. Can anyone please guide ?
@Jarvis173 could you please post an error message from the log files? will help with debugging
There is no error that i can see in the logs.
https://github.com/apache/incubator-superset/issues/8201
i have configured mail parameter into config file, but still we are unable to send report to the email. ENV ENABLE_SCHEDULED_EMAIL_REPORTS True ENV SMTP_HOST testmail.sersec.com ENV SMTP_STARTTLS True ENV SMTP_SSL False ENV SMTP_USER admin ENV SMTP_PORT 25 ENV SMTP_PASSWORD superset ENV MTP_MAIL_FROM [email protected] ENV EMAIL_REPORTS_USER admin
is there any other configuration ?
@mahendra, @starsunny , I am running into issues setting up the emailing dashboard as well. Here is a link to the ticket where I posted the details, logs. Any pointers in the right direction will be of great help. https://github.com/apache/incubator-superset/issues/11507