gen16k commented on issue #15340:
URL: https://github.com/apache/airflow/issues/15340#issuecomment-819223641
I faced same problem.
I installed airflow v2.0.1 and postgresql using chart file.
Then init container `WAIT-FOR-DB-MIGRATION` seems not working now.
```
[2021-04-14 04:36:23,631] {migration.py:163} INFO - Context impl
PostgresqlImpl.
[2021-04-14 04:36:23,631] {migration.py:166} INFO - Will assume
transactional DDL.
/home/airflow/.local/lib/python3.8/site-packages/azure/cosmos/session.py:186
SyntaxWarning: "is not" with a
literal. Did you mean "!="?
[2021-04-14 04:36:26,869] {providers_manager.py:295} WARNING - Exception
when importing 'airflow.providers.
microsoft.azure.hooks.wasb.WasbHook' from
'apache-airflow-providers-microsoft-azure' package: No module nam
ed 'azure.storage.blob'
[2021-04-14 04:36:26,934] {providers_manager.py:295} WARNING - Exception
when importing 'airflow.providers.
microsoft.azure.hooks.wasb.WasbHook' from
'apache-airflow-providers-microsoft-azure' package: No module nam
ed 'azure.storage.blob'
[2021-04-14 04:36:27,975] {db.py:601} INFO - Waiting for migrations... 1
second(s)
[2021-04-14 04:36:28,978] {db.py:601} INFO - Waiting for migrations... 2
second(s)
[2021-04-14 04:36:29,982] {db.py:601} INFO - Waiting for migrations... 3
second(s)
(truncated)
[2021-04-14 04:37:26,154] {db.py:601} INFO - Waiting for migrations... 59
second(s)
[2021-04-14 04:37:27,158] {db.py:601} INFO - Waiting for migrations... 60
second(s)
Traceback (most recent call last):
File "/home/airflow/.local/bin/airflow", line 8, in <module>
sys.exit(main())
File
"/home/airflow/.local/lib/python3.8/site-packages/airflow/__main__.py", line
40, in main
args.func(args)
File
"/home/airflow/.local/lib/python3.8/site-packages/airflow/cli/cli_parser.py",
line 48, in command
return func(*args, **kwargs)
File
"/home/airflow/.local/lib/python3.8/site-packages/airflow/cli/commands/db_command.py",
line 54, in c
heck_migrations
db.check_migrations(timeout=args.migration_wait_timeout)
File
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/db.py", line
598, in check_migration
s
raise TimeoutError(f"There are still unapplied migrations after {ticker}
seconds.")
TimeoutError: There are still unapplied migrations after 60 seconds.
```
My environment is like below
OS: ubuntu 20.04
Kubernetes: v1.20.2
CNI: flannel
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]