1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| Traceback (most recent call last):
File "/Users/direcision/.pyenv/versions/global/bin/airflow", line 8, in <module>
sys.exit(main())
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/__main__.py", line 48, in main
args.func(args)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 48, in command
return func(*args, **kwargs)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/cli/commands/db_command.py", line 31, in initdb
db.initdb()
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/utils/session.py", line 70, in wrapper
return func(*args, session=session, **kwargs)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/utils/db.py", line 591, in initdb
upgradedb(session=session)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/utils/session.py", line 67, in wrapper
return func(*args, **kwargs)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/utils/db.py", line 868, in upgradedb
command.upgrade(config, 'heads')
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/alembic/command.py", line 320, in upgrade
script.run_env()
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/alembic/script/base.py", line 563, in run_env
util.load_python_file(self.dir, "env.py")
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 92, in load_python_file
module = load_module_py(module_id, path)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 108, in load_module_py
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/migrations/env.py", line 107, in <module>
run_migrations_online()
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/migrations/env.py", line 101, in run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/alembic/runtime/environment.py", line 851, in run_migrations
self.get_context().run_migrations(**kw)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/alembic/runtime/migration.py", line 620, in run_migrations
step.migration_fn(**kw)
File "/Users/direcision/.pyenv/versions/3.8.10/envs/global/lib/python3.8/site-packages/airflow/migrations/versions/0e2a74e0fc9f_add_time_zone_awareness.py", line 44, in upgrade
raise Exception("Global variable explicit_defaults_for_timestamp needs to be on (1) for mysql")
Exception: Global variable explicit_defaults_for_timestamp needs to be on (1) for mysql
|