superset icon indicating copy to clipboard operation
superset copied to clipboard

Not getting scheduled chat/dashboard emails

Open starsunny opened this issue 7 years ago • 14 comments

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 Screenshot 2019-05-23 at 4 06 03 PM

starsunny avatar May 23 '19 10:05 starsunny

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.

issue-label-bot[bot] avatar May 23 '19 10:05 issue-label-bot[bot]

Hi, @starsunny were you running on HTTPS webservers and were you able to find a solution?

niharikay avatar Jun 07 '19 23:06 niharikay

@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.

mahendra avatar Jun 07 '19 23:06 mahendra

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?

starsunny avatar Jun 15 '19 13:06 starsunny

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 avatar Aug 12 '19 23:08 priyankadadlani

@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.

starsunny avatar Aug 13 '19 04:08 starsunny

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

javierwonghf avatar Aug 28 '19 05:08 javierwonghf

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

toilv avatar Oct 30 '19 04:10 toilv

i have enabled the email service in my config.py but getting below error when trying to create the email report : Screenshot from 2020-01-26 11-36-33 Can anyone please guide ?

Jarvis173 avatar Jan 26 '20 06:01 Jarvis173

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

mahendra avatar Jan 27 '20 07:01 mahendra

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.

Jarvis173 avatar Jan 28 '20 11:01 Jarvis173

https://github.com/apache/incubator-superset/issues/8201

Niteesh avatar Mar 26 '20 18:03 Niteesh

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 ?

sankonale avatar Jun 25 '20 15:06 sankonale

@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

DRavikanth avatar Nov 02 '20 21:11 DRavikanth