Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email scheduler is failing #9477

Closed
1 of 3 tasks
miteshchavda opened this issue Apr 6, 2020 · 2 comments
Closed
1 of 3 tasks

email scheduler is failing #9477

miteshchavda opened this issue Apr 6, 2020 · 2 comments

Comments

@miteshchavda
Copy link

Email scheduler is not working as expected.

Expected results

Actual results

  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/app/superset/app.py", line 114, in __call__
    return task_base.__call__(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/app/superset/tasks/schedules.py", line 422, in schedule_email_report
    deliver_dashboard(schedule)
  File "/app/superset/tasks/schedules.py", line 241, in deliver_dashboard
    logging.debug("deliver_dashboard 0 page_source {}".format(driver.title))
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 679, in page_source
    return self.execute(Command.GET_PAGE_SOURCE)['value']
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Failed to decode response from marionette

Screenshots

Screen Shot 2020-04-02 at 5 12 45 pm

How to reproduce the bug

I'm using master branch and having code until this commit.
2d456e8

Environment

(please complete the following information):

  • superset version: Superset 0.999.0dev
  • python version: Python 3.6.9
  • firefox version: 72.0
  • geckodriver version: v0.26.0

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • 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.

@miteshchavda
Copy link
Author

Its working fine by replacing firefox with google chrome.

# Install Google Chrome
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add \
    && echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
    && apt-get -y update \
    && apt-get -y install google-chrome-stable
# Install ChromeDriver
RUN wget -N https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_linux64.zip -P ~/ \
    && unzip ~/chromedriver_linux64.zip -d ~/ \
    && rm ~/chromedriver_linux64.zip \
    && mv -f ~/chromedriver /usr/local/bin/chromedriver \
    && chown root:root /usr/local/bin/chromedriver \
    && chmod 0755 /usr/local/bin/chromedriver

@abhii-singh
Copy link

@miteshchavda : I was trying this fix of yours , couldn't get it working . Here's the issue detail - #12871

Tried with firefox and chrome . Let me know if you have inputs on this related to the config or the dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants