Christian
03/19/2021, 11:23 AMprefect server start --use-volume -d
is pulling the images, creating the network and creating the parts (tmp_postgres_1, tmp_hasura_1, …). However, it never finishes (no detach) and I do get errors in the logs of tmp_apollo_1:
Trying again in 3 seconds...
Building schema...
FetchError: request to <http://hasura:3001/v1alpha1/graphql> failed, reason: connect ECONNREFUSED 192.168.64.3:3001
at ClientRequest.<anonymous> (/apollo/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED'
}
Trying again in 3 seconds...
Not sure what’s going on?
My config is pretty simple, too:
[server]
[server.database]
host = "localhost"
port = "5432"
host_port = "5434"
[server.hasura]
host = "localhost"
port = "3000"
host_port = "3001"
The micro-services seem to be up and running:
(prefect) [root@myserver:~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
aec1a48767a3 prefecthq/ui:core-0.14.12 "/docker-entrypoint.…" 17 minutes ago Up 17 minutes (healthy) 80/tcp, 0.0.0.0:8080->8080/tcp tmp_ui_1
2996c1840fe1 prefecthq/apollo:core-0.14.12 "tini -g -- bash -c …" 17 minutes ago Up 17 minutes (healthy) 0.0.0.0:4200->4200/tcp tmp_apollo_1
2263ca7701e6 prefecthq/server:core-0.14.12 "tini -g -- python s…" 17 minutes ago Up 17 minutes tmp_towel_1
ed29fdb1b3b0 prefecthq/server:core-0.14.12 "tini -g -- bash -c …" 17 minutes ago Up 17 minutes (healthy) 0.0.0.0:4201->4201/tcp tmp_graphql_1
2a3dffb7d641 hasura/graphql-engine:v1.3.3 "graphql-engine serve" 17 minutes ago Up 17 minutes (healthy) 0.0.0.0:3001->3000/tcp tmp_hasura_1
cafbde90dc48 postgres:11 "docker-entrypoint.s…" 17 minutes ago Up 17 minutes (healthy) 0.0.0.0:5434->5432/tcp tmp_postgres_1
nicholas
03/19/2021, 2:52 PMscreen
or nohup
for that; are you able to query your endpoint through the browser? Navigating to <http://localhost:4200/graphql>
should allow you to visit the graphql playground that comes with the serverChristian
03/19/2021, 3:02 PM[server]
[server.database]
port = "5432"
host_port = "5434"
[server.hasura]
host = "<http://172.27.80.xxx>"
port = "3001"
host_port = "3001"
graphql_url = "http://${server.hasura.host}:${server.hasura.port}/v1alpha1/graphql"
ws_url = "ws://${server.hasura.host}:${server.hasura.port}/v1alpha1/graphql"
execute_retry_seconds = 10
[server.graphql]
host = "<http://172.27.80.xxx>"
port = "4201"
host_port = "4201"
debug = false
path = "/graphql"
[server.ui]
apollo_url = "<http://172.27.80.xxx:4200/graphql>"
I currently see this in the logs when I try to bring up the system:
apollo_1 | Building schema...
apollo_1 | FetchError: request to <http://hasura:3001/v1alpha1/graphql> failed, reason: connect ECONNREFUSED 192.168.144.3:3001
apollo_1 | at ClientRequest.<anonymous> (/apollo/node_modules/node-fetch/lib/index.js:1461:11)
apollo_1 | at ClientRequest.emit (events.js:315:20)
apollo_1 | at Socket.socketErrorListener (_http_client.js:469:9)
apollo_1 | at Socket.emit (events.js:315:20)
apollo_1 | at emitErrorNT (internal/streams/destroy.js:106:8)
apollo_1 | at emitErrorCloseNT (internal/streams/destroy.js:74:3)
apollo_1 | at processTicksAndRejections (internal/process/task_queues.js:80:21) {
apollo_1 | type: 'system',
apollo_1 | errno: 'ECONNREFUSED',
apollo_1 | code: 'ECONNREFUSED'
apollo_1 | }
nicholas
03/19/2021, 3:30 PMChristian
03/19/2021, 3:35 PMrequest to <http://hasura:3001/v1alpha1/graphql> failed
Is this a valid URL?nicholas
03/19/2021, 3:40 PMalembic
migrations run on Server startup. This looks odd to me, is there a reason these ports are different in your config?
[server.database]
port = "5432"
host_port = "5434"
Christian
03/19/2021, 3:41 PMStarting tmp_hasura_1 ... done
ERROR: for graphql Container "fab6c18bd8fc" is unhealthy.
ERROR: Encountered errors while bringing up the project.
Should I
docker system prune -a
?nicholas
03/19/2021, 3:48 PMChristian
03/19/2021, 4:09 PMnicholas
03/19/2021, 4:11 PMChristian
03/19/2021, 4:12 PM