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 2019/04/23 14:45:39 UTC

[GitHub] [incubator-superset] Exentriq opened a new issue #7354: Error after installation, no user_attribute table

Exentriq opened a new issue #7354: Error after installation, no user_attribute table
URL: https://github.com/apache/incubator-superset/issues/7354
 
 
   Dear All, 
   
   after the installation of Superset (following this guide, https://superset.incubator.apache.org/installation.html - I've Ubuntu 18.04 server with latest updates) I got an error after the login:
   
   > sqlalchemy.exc.OperationalError
   sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user_attribute
   [SQL: SELECT user_attribute.welcome_dashboard_id AS user_attribute_welcome_dashboard_id 
   FROM user_attribute 
   WHERE user_attribute.user_id = ?]
   [parameters: ('1',)]
   (Background on this error at: http://sqlalche.me/e/e3q8)
   
   Traceback (most recent call last)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
   cursor, statement, parameters, context
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
   cursor.execute(statement, parameters)
   The above exception was the direct cause of the following exception:
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
   return self.wsgi_app(environ, start_response)
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app
   response = self.handle_exception(e)
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception
   reraise(exc_type, exc_value, tb)
   File "/root/venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
   raise value
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
   response = self.full_dispatch_request()
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
   rv = self.handle_user_exception(e)
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
   reraise(exc_type, exc_value, tb)
   File "/root/venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
   raise value
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
   rv = self.dispatch_request()
   File "/root/venv/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
   return self.view_functions[rule.endpoint](**req.view_args)
   File "/root/venv/lib/python3.6/site-packages/superset/views/core.py", line 2768, in welcome
   .filter_by(user_id=g.user.get_id())
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3305, in scalar
   ret = self.one()
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3275, in one
   ret = self.one_or_none()
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3244, in one_or_none
   ret = list(self)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3317, in __iter__
   return self._execute_and_instances(context)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3342, in _execute_and_instances
   result = conn.execute(querycontext.statement, self._params)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute
   return meth(self, multiparams, params)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
   return connection._execute_clauseelement(self, multiparams, params)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
   distilled_params,
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
   e, statement, parameters, cursor, context
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
   util.raise_from_cause(sqlalchemy_exception, exc_info)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
   reraise(type(exception), exception, tb=exc_tb, cause=cause)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 128, in reraise
   raise value.with_traceback(tb)
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
   cursor, statement, parameters, context
   File "/root/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
   cursor.execute(statement, parameters)
   sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user_attribute [SQL: SELECT user_attribute.welcome_dashboard_id AS user_attribute_welcome_dashboard_id FROM user_attribute WHERE user_attribute.user_id = ?] [parameters: ('1',)] (Background on this error at: http://sqlalche.me/e/e3q8)
   
   
   Going into an internal page it is working, so I can manage my dashboards and use for example MySQL (adding it as source).
   I saw through SQL Lab that there isn't the user_attribute table.
   
   how I can I fix this?
   I tried to run:
   `superset db upgrade`
   but nothing happens, this table still does not exist.

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


With regards,
Apache Git Services

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