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 2022/03/31 07:35:02 UTC

[GitHub] [superset] vdobes commented on issue #19100: Database error when upgrading from 1.4.1 to master

vdobes commented on issue #19100:
URL: https://github.com/apache/superset/issues/19100#issuecomment-1084204819


   I got the same problem.
   Trying to update my 1.4.1 version to the latest master, and I got the same error.
   I'm using docker version with PostgreSQL DB.
   
   My Log is similar:
   
   ```
   ([SQL: SELECT count(*) AS count_1 ,
   FROM (SELECT dbs.changed_on AS dbs_changed_on, dbs.id AS dbs_id, dbs.database_name AS dbs_database_name, dbs.sqlalchemy_uri AS dbs_sqlalchemy_uri, dbs.password AS dbs_password, dbs.expose_in_sqllab AS dbs_expose_in_sqllab, dbs.allow_run_async AS dbs_allow_run_async, dbs.allow_file_upload AS dbs_allow_file_upload, dbs.allow_ctas AS dbs_allow_ctas, dbs.allow_cvas AS dbs_allow_cvas, dbs.allow_dml AS dbs_allow_dml, dbs.force_ctas_schema AS dbs_force_ctas_schema, dbs.allow_multi_schema_metadata_fetch AS dbs_allow_multi_schema_metadata_fetch, dbs.extra AS dbs_extra, dbs.created_by_fk AS dbs_created_by_fk, created_by.id AS created_by_id, created_by.first_name AS created_by_first_name, created_by.last_name AS created_by_last_name ,
   FROM dbs LEFT OUTER JOIN ab_user AS created_by ON dbs.created_by_fk = created_by.id) AS anon_1],
   (Background on this error at: http://sqlalche.me/e/13/f405),
   Traceback (most recent call last):,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context,
       self.dialect.do_execute(,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute,
       cursor.execute(statement, parameters),
   psycopg2.errors.UndefinedColumn: column dbs.allow_file_upload does not exist,
   LINE 2: ...llab, dbs.allow_run_async AS dbs_allow_run_async, dbs.allow_...,
                                                                ^,
   The above exception was the direct cause of the following exception:,
   
   Traceback (most recent call last):,
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 85, in wraps,
       return f(self, *args, **kwargs),
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 155, in wraps,
       return f(self, *args, **kwargs),
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 1619, in get_list,
       return self.get_list_headless(**kwargs),
     File "/app/superset/utils/log.py", line 245, in wrapper,
       value = f(*args, **kwargs),
     File "/app/superset/views/base_api.py", line 419, in get_list_headless,
       duration, response = time_function(super().get_list_headless, **kwargs),
     File "/app/superset/utils/core.py", line 1452, in time_function,
       response = func(*args, **kwargs),
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 1512, in get_list_headless,
       count, lst = self.datamodel.query(,
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/models/sqla/interface.py", line 461, in query,
       count = self.query_count(query, filters, select_columns),
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/models/sqla/interface.py", line 382, in query_count,
       return self._apply_inner_all(,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3803, in count,
       return self.from_self(col).scalar(),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3523, in scalar,
       ret = self.one(),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3490, in one,
       ret = self.one_or_none(),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3459, in one_or_none,
       ret = list(self),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3535, in __iter__,
       return self._execute_and_instances(context),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances,
       result = conn.execute(querycontext.statement, self._params),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute,
       return meth(self, multiparams, params),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection,
       return connection._execute_clauseelement(self, multiparams, params),
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement,
       ret = self._execute_context(,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context,
       self._handle_dbapi_exception(,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception,
       util.raise_(,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_,
       raise exception,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context,
       self.dialect.do_execute(,
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute,
       cursor.execute(statement, parameters),
   sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedColumn) column dbs.allow_file_upload does not exist,
   LINE 2: ...llab, dbs.allow_run_async AS dbs_allow_run_async, dbs.allow_...,)
   ```
                                                              


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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