Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

problem when deploying the backend #218

@vitorgamer58

Description

@vitorgamer58

if i do: docker-compose run contract_observer alembic upgrade head
with alembic.ini line 38: sqlalchemy.url = postgresql+psycopg2://dex1:password@postgres:5432/forkdelta

i get this error:
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: password authentication failed for user "postgres"

and if with alembic.ini line 38: sqlalchemy.url = postgresql+psycopg2://dex1:password@localhost:5432/forkdelta

i get this error:

psycopg2.OperationalError: could not connect to server: Connection refused
        Is the server running on host "localhost" (127.0.0.1) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Address not available
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?

bu i can connect with postgresql with python from my home computer:

>>> psycopg2.connect("dbname=forkdelta user=dex1 host=dex.xxxx.top password=xxx port=5432")
<connection object at 0x03BAFDF0; dsn: 'user=dex1 password=xxx dbname=forkdelta host=dex.notasdovitor.top port=5432', closed: 0>

refer to: https://github.com/Vitors-DEX-Exchange/DEX-Backend/issues/1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions