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

OperationalError: (sqlite3.OperationalError) no such column: backend #2932

Closed
hzy1992 opened this issue Jun 9, 2017 · 6 comments
Closed

Comments

@hzy1992
Copy link

hzy1992 commented Jun 9, 2017

Superset version

0.17.6

when I in datasource list page, click the column header then return the error:

error

sqlalchemy.exc.OperationalError
OperationalError: (sqlite3.OperationalError) no such column: backend [SQL: u'SELECT dbs.created_on AS dbs_created_on, dbs.changed_on AS dbs_changed_on, dbs.id AS dbs_id, dbs.verbose_name AS dbs_verbose_name, dbs.database_name AS dbs_database_name, dbs.sqlalchemy_uri AS dbs_sqlalchemy_uri, dbs.password AS dbs_password, dbs.cache_timeout AS dbs_cache_timeout, dbs.select_as_create_table_as AS dbs_select_as_create_table_as, dbs.expose_in_sqllab AS dbs_expose_in_sqllab, dbs.allow_run_sync AS dbs_allow_run_sync, dbs.allow_run_async AS dbs_allow_run_async, dbs.allow_ctas AS dbs_allow_ctas, dbs.allow_dml AS dbs_allow_dml, dbs.force_ctas_schema AS dbs_force_ctas_schema, dbs.extra AS dbs_extra, dbs.perm AS dbs_perm, dbs.changed_by_fk AS dbs_changed_by_fk, dbs.created_by_fk AS dbs_created_by_fk \nFROM dbs ORDER BY backend asc\n LIMIT ? OFFSET ?'] [parameters: (500, 0)]

Traceback (most recent call last)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1997, in call
return self.wsgi_app(environ, start_response)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Library/Python/2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Python/2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/Library/Python/2.7/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
return f(self, *args, **kwargs)
File "/Library/Python/2.7/site-packages/flask_appbuilder/views.py", line 450, in list
widgets = self._list()
File "/Library/Python/2.7/site-packages/flask_appbuilder/baseviews.py", line 870, in _list
page_size=page_size)
File "/Library/Python/2.7/site-packages/flask_appbuilder/baseviews.py", line 786, in _get_list_widget
count, lst = self.datamodel.query(joined_filters, order_column, order_direction, page=page, page_size=page_size)
File "/Library/Python/2.7/site-packages/flask_appbuilder/models/sqla/interface.py", line 112, in query
return count, query.all()
File "/Library/Python/2.7/site-packages/sqlalchemy/orm/query.py", line 2703, in all
return list(self)
File "/Library/Python/2.7/site-packages/sqlalchemy/orm/query.py", line 2855, in iter
return self._execute_and_instances(context)
File "/Library/Python/2.7/site-packages/sqlalchemy/orm/query.py", line 2878, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/Library/Python/2.7/site-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/Library/Python/2.7/site-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/Library/Python/2.7/site-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
compiled_sql, distilled_params
File "/Library/Python/2.7/site-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
context)
File "/Library/Python/2.7/site-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
exc_info
File "/Library/Python/2.7/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/Library/Python/2.7/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/Library/Python/2.7/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)

@xrmx
Copy link
Contributor

xrmx commented Jun 9, 2017

Have you run the migrations?

@hzy1992
Copy link
Author

hzy1992 commented Jun 9, 2017

Sorry, what's the 'migrations' mean?

@xrmx
Copy link
Contributor

xrmx commented Jun 9, 2017

Means it looks like your database is out of sync with your code, have you updated superset version and forget to run all the needed steps?
http://airbnb.io/superset/installation.html#upgrading

@hzy1992
Copy link
Author

hzy1992 commented Jun 9, 2017

Yes, i have done it.
I build the project myself and run the upgrade command
the result is same

The 'backend ' is not in the tables's columns .
It's a method , can be list ordered by the framework auto?

@ratb3rt
Copy link

ratb3rt commented Jun 16, 2017

This is a duplicate of #1018.

@xrmx
Copy link
Contributor

xrmx commented Jun 16, 2017

Indeed, closing then.

@xrmx xrmx closed this as completed Jun 16, 2017
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

3 participants