You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/01 07:15:17 UTC

[GitHub] [airflow] Satnam00 opened a new issue #17954: sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed

Satnam00 opened a new issue #17954:
URL: https://github.com/apache/airflow/issues/17954


   ### Apache Airflow version
   
   2.1.3 (latest released)
   
   ### Operating System
   
   Windows 10
   
   ### Versions of Apache Airflow Providers
   
   2.1.3
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   [2021-09-01 12:40:57,188] {app.py:1891} ERROR - Exception on /tree [GET]
   Traceback (most recent call last):
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
       self.dialect.do_execute(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
       cursor.execute(statement, parameters)
   sqlite3.DatabaseError: database disk image is malformed
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "/home/satnam/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/satnam/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/satnam/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/satnam/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/home/satnam/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/satnam/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/home/satnam/.local/lib/python3.8/site-packages/airflow/www/auth.py", line 34, in decorated
       return func(*args, **kwargs)
     File "/home/satnam/.local/lib/python3.8/site-packages/airflow/www/decorators.py", line 97, in view_func
       return f(*args, **kwargs)
     File "/home/satnam/.local/lib/python3.8/site-packages/airflow/www/decorators.py", line 58, in wrapper
       session.add(log)
     File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
       next(self.gen)
     File "/home/satnam/.local/lib/python3.8/site-packages/airflow/utils/session.py", line 32, in create_session
       session.commit()
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1046, in commit
       self.transaction.commit()
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 504, in commit
       self._prepare_impl()
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 483, in _prepare_impl
       self.session.flush()
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2540, in flush
       self._flush(objects)
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2682, in _flush
       transaction.rollback(_capture_exception=True)
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
       compat.raise_(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
       raise exception
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2642, in _flush
       flush_context.execute()
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute
       rec.execute(self)
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/unitofwork.py", line 586, in execute
       persistence.save_obj(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 239, in save_obj
       _emit_insert_statements(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/orm/persistence.py", line 1135, in _emit_insert_statements
       result = cached_connections[connection].execute(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
       return meth(self, multiparams, params)
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
       return connection._execute_clauseelement(self, multiparams, params)
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement
       ret = self._execute_context(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context
       self._handle_dbapi_exception(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception
       util.raise_(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
       raise exception
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
       self.dialect.do_execute(
     File "/home/satnam/.local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
       cursor.execute(statement, parameters)
   sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed
   [SQL: INSERT INTO log (dttm, dag_id, task_id, event, execution_date, owner, extra) VALUES (?, ?, ?, ?, ?, ?, ?)]
   [parameters: ('2021-09-01 07:10:57.183608', 'email-test7', None, 'tree', None, 'satnam', "[('dag_id', 'email-test7')]")]
   (Background on this error at: http://sqlalche.me/e/13/4xp6)
   
   ### What you expected to happen
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #17954: sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #17954:
URL: https://github.com/apache/airflow/issues/17954#issuecomment-909995994


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #17954: sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #17954:
URL: https://github.com/apache/airflow/issues/17954#issuecomment-909995994


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk closed issue #17954: sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #17954:
URL: https://github.com/apache/airflow/issues/17954


   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org