You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/25 15:10:18 UTC

[GitHub] [superset] iercan commented on issue #12726: Webdriver stopped working after 1.0.0 upgrade.

iercan commented on issue #12726:
URL: https://github.com/apache/superset/issues/12726#issuecomment-766883157


   And this is detailed traceback
   ```
   worker_1    | [2021-01-25 15:08:34,931: ERROR/ForkPoolWorker-1] Task cache_dashboard_thumbnail[996193c1-57ae-48af-a77a-af0672650a68] raised unexpected: DetachedInstanceError('Instance <User at 0x7fed472c7690> is not bound to a Session; attribute refresh operation cannot proceed')
   worker_1    | Traceback (most recent call last):
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 412, in trace_task
   worker_1    |     R = retval = fun(*args, **kwargs)
   worker_1    |   File "/app/superset/app.py", line 116, in __call__
   worker_1    |     return task_base.__call__(self, *args, **kwargs)
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 704, in __protected_call__
   worker_1    |     return self.run(*args, **kwargs)
   worker_1    |   File "/app/superset/tasks/thumbnails.py", line 77, in cache_dashboard_thumbnail
   worker_1    |     user=user, cache=thumbnail_cache, force=force, thumb_size=thumb_size,
   worker_1    |   File "/app/superset/utils/screenshots.py", line 152, in compute_and_cache
   worker_1    |     payload = self.get_screenshot(user=user, window_size=window_size)
   worker_1    |   File "/app/superset/utils/screenshots.py", line 74, in get_screenshot
   worker_1    |     self.screenshot = driver.get_screenshot(self.url, self.element, user)
   worker_1    |   File "/app/superset/utils/webdriver.py", line 104, in get_screenshot
   worker_1    |     driver = self.auth(user)
   worker_1    |   File "/app/superset/utils/webdriver.py", line 80, in auth
   worker_1    |     driver, user
   worker_1    |   File "/app/superset/utils/machine_auth.py", line 56, in authenticate_webdriver
   worker_1    |     cookies = self.get_auth_cookies(user)
   worker_1    |   File "/app/superset/utils/machine_auth.py", line 71, in get_auth_cookies
   worker_1    |     login_user(user)
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/flask_login/utils.py", line 158, in login_user
   worker_1    |     if not force and not user.is_active:
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/security/sqla/models.py", line 150, in is_active
   worker_1    |     return self.active
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/attributes.py", line 287, in __get__
   worker_1    |     return self.impl.get(instance_state(instance), dict_)
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/attributes.py", line 718, in get
   worker_1    |     value = state._load_expired(state, passive)
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 652, in _load_expired
   worker_1    |     self.manager.deferred_scalar_loader(self, toload)
   worker_1    |   File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/loading.py", line 944, in load_scalar_attributes
   worker_1    |     "attribute refresh operation cannot proceed" % (state_str(state))
   worker_1    | sqlalchemy.orm.exc.DetachedInstanceError: Instance <User at 0x7fed472c7690> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://sqlalche.me/e/13/bhk3)
   
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org