Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to postgres when using the docker-compose #13

Open
weebl2000 opened this issue Feb 1, 2021 · 3 comments
Open

Error connecting to postgres when using the docker-compose #13

weebl2000 opened this issue Feb 1, 2021 · 3 comments

Comments

@weebl2000
Copy link

Trying to run the graph-node yields an error connecting to postgres:

graph-node-indexer_1  | Feb 01 15:58:43.065 INFO Creating transport, capabilities: archive, trace, url: http://172.17.0.1:8545, network: mainnet
graph-node-indexer_1  | thread '<unnamed>' panicked at 'failed to connect notification listener to Postgres: Error(ConnectParams("Invalid \':\' in authority."))', store/postgres/src/notification_listener.rs:122:22

Anyone else experience this?

@nivida
Copy link

nivida commented Mar 9, 2021

Hey! After updating our local dev env did we encounter the same problem. In the end, were we just forced to remove the anyways default port of Postgres in our docker-compose file. :-)

@pi0neerpat
Copy link
Owner

Thanks for posting @nivida , would you mind sharing how your docker-compose looks now?

@rsolari
Copy link

rsolari commented Mar 11, 2021

I also had this issue when I upgraded to the latest graph node @pi0neerpat:

My new docker-compose:

  graphnode-indexer:
    image: graphprotocol/graph-node:latest
    environment:
      postgres_host: '${DB_HOST}'
      postgres_port: 5432

The old docker-compose had the port in the host, like this:

  graphnode-indexer:
    image: graphprotocol/graph-node:latest
    environment:
      postgres_host: '${DB_HOST}:5432'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants