Webserver Perpetually Unhealthy

Hello,
I’ve been attempting to get a local astro cli project running, specifically the cosmos-dev project. I can get the project up and running using astro dev start, and 3 of the 4 containers start up and run correctly. But the webserver starts up for about 38-40 seconds, and then restarts. At the 38 second mark when I run docker ps I can see it lists the status as unhealthy. I’ve added the logs from the container below, I can’t find any errors to debug, just tons of warnings. Any help is appreciated!

Found a couple similar topics but neither solved my issue:

I’m running Arch Linux (I know I know…) on Intel hardware.

Logs:

Waiting for host: postgres 5432
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:346: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  current_value = self.get(section, name, fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:369: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  old_value = self.get("api", "auth_backends", fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:383: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0.
  warnings.warn(
/usr/local/lib/python3.9/site-packages/airflow/models/base.py:49 MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
[e[34m2023-04-01 00:58:45,102e[0m] {e[34mmanager.py:e[0m243} INFOe[0m - Inserted Role: Admine[0m
[e[34m2023-04-01 00:58:45,106e[0m] {e[34mmanager.py:e[0m243} INFOe[0m - Inserted Role: Publice[0m
[e[34m2023-04-01 00:58:45,109e[0m] {e[34mmanager.py:e[0m824} WARNINGe[0m - No user yet created, use flask fab command to do it.e[0m
[e[34m2023-04-01 00:58:45,308e[0m] {e[34mupdate_checks.py:e[0m425} WARNINGe[0m - Not replacing appbuilder.base_template, it didn't have the expected value. Update available messages will not be visible in UIe[0m
[e[34m2023-04-01 00:58:47,254e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:47,255e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLDatabaseHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:48,115e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.leveldb.hooks.leveldb.LevelDBHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:49,063e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:49,064e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLDatabaseHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:49,064e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.leveldb.hooks.leveldb.LevelDBHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:50,323e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on Connectionse[0m
[e[34m2023-04-01 00:58:50,337e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Connectionse[0m
[e[34m2023-04-01 00:58:50,358e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Connectionse[0m
[e[34m2023-04-01 00:58:50,368e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can create on Connectionse[0m
[e[34m2023-04-01 00:58:50,438e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on DAGse[0m
[e[34m2023-04-01 00:58:50,461e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on DAGse[0m
[e[34m2023-04-01 00:58:50,477e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on DAGse[0m
[e[34m2023-04-01 00:58:50,590e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on DAG Runse[0m
[e[34m2023-04-01 00:58:50,600e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Task Instancese[0m
[e[34m2023-04-01 00:58:50,672e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Task Instancese[0m
[e[34m2023-04-01 00:58:50,779e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on DAG Runse[0m
[e[34m2023-04-01 00:58:50,795e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Datasetse[0m
[e[34m2023-04-01 00:58:50,814e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can create on DAG Runse[0m
[e[34m2023-04-01 00:58:50,825e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on DAG Runse[0m
[e[34m2023-04-01 00:58:50,856e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Audit Logse[0m
[e[34m2023-04-01 00:58:50,873e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on ImportErrore[0m
[e[34m2023-04-01 00:58:50,891e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on Poolse[0m
[e[34m2023-04-01 00:58:50,897e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Poolse[0m
[e[34m2023-04-01 00:58:50,907e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Poolse[0m
[e[34m2023-04-01 00:58:50,914e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can create on Poolse[0m
[e[34m2023-04-01 00:58:50,930e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Providerse[0m
[e[34m2023-04-01 00:58:50,942e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on Variablese[0m
[e[34m2023-04-01 00:58:50,950e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Variablese[0m
[e[34m2023-04-01 00:58:50,957e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Variablese[0m
[e[34m2023-04-01 00:58:50,963e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can create on Variablese[0m
[e[34m2023-04-01 00:58:50,980e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on XComse[0m
[e[34m2023-04-01 00:58:51,045e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on DAG Codee[0m
[e[34m2023-04-01 00:58:51,061e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on DAG Warningse[0m
[e[34m2023-04-01 00:58:51,083e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Configurationse[0m
[e[34m2023-04-01 00:58:51,098e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Pluginse[0m
[e[34m2023-04-01 00:58:51,112e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Rolese[0m
[e[34m2023-04-01 00:58:51,122e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Permissionse[0m
[e[34m2023-04-01 00:58:51,127e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on Rolese[0m
[e[34m2023-04-01 00:58:51,133e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Rolese[0m
[e[34m2023-04-01 00:58:51,139e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can create on Rolese[0m
[e[34m2023-04-01 00:58:51,163e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Userse[0m
[e[34m2023-04-01 00:58:51,172e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can create on Userse[0m
[e[34m2023-04-01 00:58:51,178e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Userse[0m
[e[34m2023-04-01 00:58:51,184e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can delete on Userse[0m
[e[34m2023-04-01 00:58:51,429e[0m] {e[34mmanager.py:e[0m212} INFOe[0m - Added user admine[0m
User "admin" created with role "Admin"
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:346: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  current_value = self.get(section, name, fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:369: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  old_value = self.get("api", "auth_backends", fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:383: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0.
  warnings.warn(
/usr/local/lib/python3.9/site-packages/airflow/models/base.py:49 MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
[e[34m2023-04-01 00:58:55,954e[0m] {e[34mupdate_checks.py:e[0m425} WARNINGe[0m - Not replacing appbuilder.base_template, it didn't have the expected value. Update available messages will not be visible in UIe[0m
[e[34m2023-04-01 00:58:57,186e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:57,186e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLDatabaseHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:58,231e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.leveldb.hooks.leveldb.LevelDBHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:59,214e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:59,215e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLDatabaseHook' from 'apache-airflow-providers-google' packagee[0m
[e[34m2023-04-01 00:58:59,216e[0m] {e[34mproviders_manager.py:e[0m235} INFOe[0m - Optional provider feature disabled when importing 'airflow.providers.google.leveldb.hooks.leveldb.LevelDBHook' from 'apache-airflow-providers-google' packagee[0m
Updating actions and resources for all existing roles
[e[34m2023-04-01 00:59:00,948e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can edit on Passwordse[0m
[e[34m2023-04-01 00:59:00,953e[0m] {e[34mmanager.py:e[0m562} INFOe[0m - Added Permission can edit on Passwords to role Admine[0m
[e[34m2023-04-01 00:59:00,959e[0m] {e[34mmanager.py:e[0m504} INFOe[0m - Created Permission View: can read on Passwords[0m
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:346: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  current_value = self.get(section, name, fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:369: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  old_value = self.get("api", "auth_backends", fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:383: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0.
  warnings.warn(
/usr/local/lib/python3.9/site-packages/airflow/models/base.py:49 MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
Waiting for host: postgres 5432
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:346: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  current_value = self.get(section, name, fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:369: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
  old_value = self.get("api", "auth_backends", fallback="")
/usr/local/lib/python3.9/site-packages/airflow/configuration.py:383: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0.
  warnings.warn(
/usr/local/lib/python3.9/site-packages/airflow/models/base.py:49 MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings.  Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)

The logs didn’t paste very well above. If they are useful I can paste more of them.

Hi Patawan,
A few questions to help us narrow down the issue. Are you running on a mac or windows? Also, can you let us know the resources you have assigned in Docker. CPUs, Memory and swap?
Thank you,
Sundar

Hey Sundar,
Thanks for your response.
I am running EndeavourOS (Arch Linux) and here are the resources for the unhealthy container. Let me know if there’s a better way to show the resources. Outside of this, I haven’t altered any resource restrictions for docker - everything is default.