Superset ALERT & REPORTS not working
How to reproduce the bug
a
Screenshots/recordings
hi
Superset version
master / latest-dev
Python version
3.9
Node version
16
- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Hey there @mujohiddin, long time no see! ð Your issue feels like a bit of deja vu, but in the best way possible. I'm diving into your alert and reports conundrum as we speak and will have some insights for you shortly. Hang tight!
Hi I have ALERT manager not working superset 6 months old version installed, is there any way to fix this? need to add more parameters? @mistercrunch,@villebro,@michael-s-molina,@betodealmeida,@john-bodley @rusackas
@mujohiddin we use english as a common language on this repo, please add a detailed description for your issue and add server logs showing the alert and reports error(s)
@dpgaspar Hi I have ALERT manager not working superset 6 months old version installed, is there any way to fix this? need to add more parameters? but it works in the new version @mistercrunch,@villebro,@michael-s-molina,@betodealmeida,@john-bodley @rusackas
To address the issue with the ALERT manager not working in your 6-month-old Superset installation, here are some targeted steps to help resolve the problem:
-
Check the
"ALERT_REPORTS"Feature Flag: Make sure it's enabled in yoursuperset_config.py. This is essential for alert and report functionality.FEATURE_FLAGS = { "ALERT_REPORTS": True } -
Update Celery Beat Schedule: Ensure you have a schedule for
reports.schedulerin your Celery configuration to enable alert and report scheduling.beat_schedule = { "reports.scheduler": { "task": "reports.scheduler", "schedule": crontab(minute="*", hour="*"), }, "reports.prune_log": { "task": "reports.prune_log", "schedule": crontab(minute=0, hour=0), }, } -
Ensure Browser Installation for Screenshots: If not using a dev docker image, confirm a headless browser is installed for screenshot functionality. For Firefox, install
firefox-esrandgeckodriver; for Chrome,google-chrome-stableandchromedriver. -
SMTP or Slack Configuration: For notifications, ensure your SMTP settings or
SLACK_API_TOKENare correctly configured.-
Slack:
SLACK_API_TOKEN = "xoxb-your-slack-token" -
Email:
SMTP_HOST = "smtp.sendgrid.net" SMTP_PORT = 2525 SMTP_USER = "your_user" SMTP_PASSWORD = "your_password" SMTP_MAIL_FROM = "[email protected]"
-
-
Review Celery Worker and Beat Logs: For further troubleshooting, examining the logs of your Celery worker and beat can provide additional insights into any errors or issues.
Ensure all configurations, especially those related to Celery, the headless browser, and notification settings, are correct. For more detailed guidance, refer to the Superset documentation.
If after following these steps you're still facing issues, providing more specific details about the errors or problems you're encountering, including any error messages, would be helpful for further diagnosis.
Details
Sources
- Issue with Alerts and Reports on 3.0.x
- docs/docs/configuration/alerts-reports.mdx
- RELEASING/release-notes-0-38/README.md
- CHANGELOG/3.0.0.md
- superset/commands/report/exceptions.py
- RELEASING/release-notes-1-0/README.md
About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a ð if this is helpful and ð if it is irrelevant.
To continue the conversation, mention @dosu.
2. reports.scheduler
where is<< reports.scheduler file
@dpgaspar
@dpgaspar
Hello sir, can you help me? @mistercrunch,@villebro,@michael-s-molina,@betodealmeida,@john-bodley @rusackas
seems like it's a geckodriver installation issue, take a look at: https://superset.apache.org/docs/configuration/alerts-reports#using-firefox