dusatvoj opened a new issue #14176:
URL: https://github.com/apache/superset/issues/14176


   When I setup dashboard emails I can't send any email with this error:
   ```
   Apr 15 21:29:36 node6 celery[1195780]: [2021-04-15 21:29:36,607: 
INFO/ForkPoolWorker-1] Starting report for slack: None and recipients: 
[email protected].
   Apr 15 21:29:36 node6 celery[1195780]: No row was found for one()
   Apr 15 21:29:36 node6 celery[1195780]: Traceback (most recent call last):
   Apr 15 21:29:36 node6 celery[1195780]:   File 
"/usr/local/lib/python3.8/site-packages/superset/utils/celery.py", line 51, in 
session_scope
   Apr 15 21:29:36 node6 celery[1195780]:     yield session
   Apr 15 21:29:36 node6 celery[1195780]:   File 
"/usr/local/lib/python3.8/site-packages/superset/tasks/schedules.py", line 264, 
in deliver_dashboard
   Apr 15 21:29:36 node6 celery[1195780]:     driver = create_webdriver(session)
   Apr 15 21:29:36 node6 celery[1195780]:   File 
"/usr/local/lib/python3.8/site-packages/superset/tasks/schedules.py", line 208, 
in create_webdriver
   Apr 15 21:29:36 node6 celery[1195780]:     get_reports_user(session)
   Apr 15 21:29:36 node6 celery[1195780]:   File 
"/usr/local/lib/python3.8/site-packages/superset/tasks/schedules.py", line 214, 
in get_reports_user
   Apr 15 21:29:36 node6 celery[1195780]:     
session.query(security_manager.user_model)
   Apr 15 21:29:36 node6 celery[1195780]:   File 
"/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3500, in 
one
   Apr 15 21:29:36 node6 celery[1195780]:     raise orm_exc.NoResultFound("No 
row was found for one()")
   Apr 15 21:29:36 node6 celery[1195780]: sqlalchemy.orm.exc.NoResultFound: No 
row was found for one()
   ```
   
   ### Expected results
   
   Emails are sent without any problem
   
   ### Actual results
   
   There's no emails sent and when I setup Dashboard emails I can see error 
written above. 
   
   #### Screenshots
   
   N/A
   
   #### How to reproduce the bug
   1. Setup dashboard emails
   2. See error in log
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `1.1.0`
   - python version: `3.8.7`
   - node.js version: `v12.21.0`
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to