Closed solomondefi-dev closed 2 years ago
@apolkingg8 Can you test locally before merging? Everything builds fine for me, but I have some conflict at the deploy stage with another unrelated app. It will be faster if you can verify the changes 🙏
The skaffold works fine, but api-dispute
and api-evidence
throw some error:
[api-evidence]
[api-evidence] > nx run api-evidence:serve
[api-evidence] Executor ran for DevServer { host: '0.0.0.0', port: 3010, migrate: true }
[api-evidence] Running: poetry run alembic upgrade head
[api-evidence] Traceback (most recent call last):
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 3250, in _wrap_pool_connect
[api-evidence] return fn()
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 310, in connect
[api-evidence] return _ConnectionFairy._checkout(self)
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 868, in _checkout
[api-evidence] fairy = _ConnectionRecord.checkout(pool)
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 476, in checkout
[api-evidence] rec = pool._do_get()
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/impl.py", line 256, in _do_get
[api-evidence] return self._create_connection()
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
[api-evidence] return _ConnectionRecord(self)
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 371, in __init__
[api-evidence] self.__connect()
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 665, in __connect
[api-evidence] with util.safe_reraise():
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
[api-evidence] compat.raise_(
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
[api-evidence] raise exception
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/pool/base.py", line 661, in __connect
[api-evidence] self.dbapi_connection = connection = pool._invoke_creator(self)
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 590, in connect
[api-evidence] return dialect.connect(*cargs, **cparams)
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 597, in connect
[api-evidence] return self.dbapi.connect(*cargs, **cparams)
[api-evidence] File "/usr/src/apps/api-evidence/.venv/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect
[api-evidence] conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
[api-evidence] psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
[api-evidence] Is the server running on that host and accepting TCP/IP connections?
[api-evidence] connection to server at "localhost" (::1), port 5432 failed: Address not available
[api-evidence] Is the server running on that host and accepting TCP/IP connections?
Looks like something wrong when connecting DB, but the DB launched success:
[db] [INFO] Create PG password file if does not exist...
[db] echo postgresql:5432:*:postgres:postgres
[db] [INFO] Check if app DB exists...
[db] [INFO] Create app database...
[db] CREATE DATABASE
[db-wait-db] [INFO] Waiting for database service...
[db-wait-db] [INFO] Waiting for the database service to be up...
[db-wait-db] [INFO] Waiting for the database service to be up...
[db-wait-db] [INFO] Waiting for the database service to be up...
[db-wait-db] [INFO] Waiting for the database service to be up...
[db-wait-db] DONE
I think it's about https://github.com/SolomonDefi/solomon-monorepo/commit/4bb7d1d8ee722c57b87ee3e5e7460b7ceab900d0 This commit isn't in master so cause this happened again. I'll handle this before merge.
Close #212