https://prefect.io logo
Title
a

Arnaud Fombellida

01/07/2021, 7:48 AM
Hey, I'm encountering an issue trying to run the server on a remote machine. The apollo server does not seem to start up properly. After running
prefect backend server
, I start the server with
prefect server start --postgres-port 4301 --hasura-port 4302 --graphql-port 4303 --ui-port 4304 --use-volume --volume-path /home/arnaud/mco/prefect/pgdata
(Mapping ports as some ports are already in use). In the config.toml, I changed the following:
[server]
	[server.ui]
	apollo_url = "<http://192.168.176.193>:${server.host_port}/graphql"
After starting the server, all services seem to start properly and
docker ps
indicates all services are up (and all ports mapped correctly). However, as you can see below, the are no logs for the apollo server. Running
prefect server create-tenant --name default --slug default
results in
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.176.193', port=4200): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4b14a1dc70>: Failed to establish a new connection: [Errno 111] Connection refused'))
and I cannot connect to http://192.168.176.193:4200/graphql (nor can the UI). Can anyone help me with this ?
z

Zanie

01/07/2021, 3:42 PM
Very interesting, I can reproduce this locally. Will report back when I figure out what’s going on.
The MRE is
prefect server start --graphql-port 4303
It’s querying the wrong port for the health check, I’ll have a fix PR up soon
a

Arnaud Fombellida

01/08/2021, 8:27 AM
It works now, thanks.
m

merlin

01/21/2021, 7:46 AM
this was awesome to read, great to see focus like this.
z

Zanie

01/21/2021, 4:39 PM
🙂 thanks!