Skip to content

sqlite3.OperationalError: no such table: dag #15965

@pdavis156879

Description

@pdavis156879

Apache Airflow version: 2.0.2

Environment:

Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release): Ubuntu 20.04.2 LTS

First of all, I apologize for opening a new issue, however, and unfortunately, my previous issue was incorrectly closed since another user responded the problem was solved - which was not.

My webserver was failing to start and would boot recurrently with a series of cryptic errors. @mik-laj then suggested I increase the log verbosity via logging_level option in the [logging] section. This did indeed clarify the problem, but I have to say, its even stranger than before:

  • Apparently, Airflow cannot find the 'dag' table, even though airflow-init was ran successfully.

To clarify:

In summary, the problem seems to be the 'dag' table not being found, as evidenced by this recurrent piece of log error:

{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2021-05-19T22:32:51.673116491Z"}
{"log":"  File \"/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/engine/base.py\", line 1277, in _execute_context\n","stream":"stderr","time":"2021-05-19T22:32:51.673193803Z"}
{"log":"    cursor, statement, parameters, context\n","stream":"stderr","time":"2021-05-19T22:32:51.673212995Z"}
{"log":"  File \"/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/engine/default.py\", line 608, in do_execute\n","stream":"stderr","time":"2021-05-19T22:32:51.673420732Z"}
{"log":"    cursor.execute(statement, parameters)\n","stream":"stderr","time":"2021-05-19T22:32:51.673437988Z"}
{"log":"sqlite3.OperationalError: no such table: dag\n","stream":"stderr","time":"2021-05-19T22:32:51.673446786Z"}
{"log":"\n","stream":"stderr","time":"2021-05-19T22:32:51.673454973Z"}
{"log":"The above exception was the direct cause of the following exception:\n","stream":"stderr","time":"2021-05-19T22:32:51.673462998Z"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions