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

Subql-starter’s docker-compose.yml can't run project properly report #1204

Closed
Index0011 opened this issue Jul 21, 2022 · 4 comments
Closed

Comments

@Index0011
Copy link

Index0011 commented Jul 21, 2022

The default configures of subquery can not run properly in one’s own env. When I create a new project on my own env, the default docker-compose.yml file can not start the project properly. Maybe we can update the relatedd subql config?
here is the error logs when using default docker-compose-yaml:
......
Pulling postgres ... done
Pulling subquery-node ... done
Pulling graphql-engine ... done
Starting phala-world-subquery_postgres_1 ... done
phala-world-subquery_subquery-node_1 is up-to-date

ERROR: for graphql-engine Container "fbc5cb307514" is unhealthy.
ERROR: Encountered errors while bringing up the project.

@Index0011 Index0011 changed the title Subql-starter‘是、 Subql-starter’s docker-compose.yml can Jul 21, 2022
@Index0011 Index0011 changed the title Subql-starter’s docker-compose.yml can Subql-starter’s docker-compose.yml can't run project properly report Jul 21, 2022
@Index0011 Index0011 reopened this Jul 21, 2022
@AtelyPham
Copy link

AtelyPham commented Jul 27, 2022

Hi team!

I'm facing the same error as above.

I'm trying to run SubQuery project locally (using yarn start:docker) and connect with my custom node (currently my node is running locally). But the SubQuery output said my graphql-engine is unhealthy. The log of my subquery-node container show connection failed (I attached 2 screenshots below).

Do you have any idea to debug or fix it? Thank you 🙏

Screenshots: CleanShot 2022-07-28 at 00 40 46@2x CleanShot 2022-07-28 at 00 41 14@2x

@AtelyPham
Copy link

AtelyPham commented Jul 27, 2022

Also found this issue #189.

I updated my docker-compose.yml and project.yaml accordingly:

docker-compose.yml
version: '3'

services:
	  postgres:
		# ...
	
	  subquery-node:
		# ...
	    environment:
	      NETWORK_ENDPOINT: ws://${DOCKER_GATEWAY_HOST:-host.docker.internal}:9944

	  graphql-engine:
		# ...
	    environment:
	      NETWORK_ENDPOINT: ws://${DOCKER_GATEWAY_HOST:-host.docker.internal}:9944
		
project.yaml
network:
	endpoint: ${NETWORK_ENDPOINT}

But the behaviour is still the same, connection_failed.

@AtelyPham
Copy link

Dup #1220

@stwiname
Copy link
Collaborator

stwiname commented Aug 4, 2022

This should be fixed with 1.6.1

@stwiname stwiname closed this as completed Aug 4, 2022
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

3 participants