Hugo Polloli
07/21/2021, 9:42 AMZanie
07/21/2021, 1:45 PMprefect server config
to get a configured compose file then modify it to include an agent service or you can just have a separate compose file.Kevin Kho
07/21/2021, 1:46 PMHugo Polloli
07/21/2021, 1:48 PMIle Lee
07/24/2021, 2:36 PMKevin Kho
07/24/2021, 4:33 PMHugo Polloli
07/25/2021, 6:54 AMIle Lee
07/26/2021, 9:23 AMHugo Polloli
07/26/2021, 9:29 AMKevin Kho
07/26/2021, 1:44 PMIle Lee
07/31/2021, 9:27 AM[server]
[server.ui]
apollo_url = "<http://public-ip:4200/graphql>"
graphql_url = "<http://public-ip:4200/graphql>"
From there:
prefect backend server
prefect server start
The server starts and says you can visit in localhost:8080
but when I go to my-public-ip:8080, the prefect UI doesn't show
I'm sorry for such a long explanation, I just can't figure out why I can't get it running :(Hugo Polloli
07/31/2021, 10:04 AMIle Lee
07/31/2021, 1:23 PMKevin Kho
07/31/2021, 5:01 PMIle Lee
07/31/2021, 6:57 PMnmap localhost
Output was as follows:
PORT STATE SERVICE
22/tcp open ssh
3000/tcp open ppp
5432/tcp open postgresql
8080/tcp open http-proxyKevin Kho
07/31/2021, 7:04 PMprefect get flows
?Ile Lee
07/31/2021, 7:06 PMKevin Kho
07/31/2021, 7:08 PMlocalhost:8080
should show the browser. Btw, I should just mention because people don’t know this but Prefect Cloud has 10000 free task runs per month also, which is more than enough to get started.Ile Lee
07/31/2021, 7:12 PMKevin Kho
07/31/2021, 7:18 PMIle Lee
07/31/2021, 7:23 PMKevin Kho
07/31/2021, 7:26 PMprefect server start
again since we fixed the image two days ago so you’ll be sure to pull the right image this time.Ile Lee
07/31/2021, 7:30 PMdocker image prune -a
then ran prefect server start but the images still have the 0.15.3Kevin Kho
07/31/2021, 7:45 PMprefect server stop
, I think prune should work to remove those images. The updates are still tagged as 0.15.3, they were updated. The important thing is you should see new images being downloaded when you do prefect server start
Ile Lee
07/31/2021, 7:49 PMKevin Kho
07/31/2021, 7:53 PMlocalhost:8080
again, and hopefully it works. The UI image logs should also tell you if it started successfully. You can find that container with docker, and then get the logs for that specific container.Ile Lee
07/31/2021, 8:01 PMKevin Kho
07/31/2021, 8:03 PMIle Lee
07/31/2021, 8:07 PMtowel_1 | {"severity": "ERROR", "name": "prefect-server.Lazarus", "message": "Unexpected error: ValueError([{'extensions': {'path': '$.selectionSet.flow_run', 'code': 'validation-failed'}, 'message': 'field \"flow_run\" not found in type: \\'query_root\\''}])", "exc_info": "Traceback (most recent call last):\n File \"/prefect-server/src/prefect_server/services/loop_service.py\", line 60, in run\n await self.run_once()\n File \"/prefect-server/src/prefect_server/services/towel/lazarus.py\", line 37, in run_once\n return await self.reschedule_flow_runs()\n File \"/prefect-server/src/prefect_server/services/towel/lazarus.py\", line 89, in reschedule_flow_runs\n limit=5000,\n File \"/prefect-server/src/prefect_server/database/orm.py\", line 501, in get\n as_box=not apply_schema,\n File \"/prefect-server/src/prefect_server/database/hasura.py\", line 85, in execute\n as_box=as_box,\n File \"/prefect-server/src/prefect_server/utilities/graphql.py\", line 84, in execute\n raise ValueError(result[\"errors\"])\nValueError: [{'extensions': {'path': '$.selectionSet.flow_run', 'code': 'validation-failed'}, 'message': 'field \"flow_run\" not found in type: \\'query_root\\''}]"}
towel_1 | {"severity": "ERROR", "name": "prefect-server.Scheduler", "message": "Unexpected error: ValueError([{'extensions': {'path': '$.selectionSet.flow', 'code': 'validation-failed'}, 'message': 'field \"flow\" not found in type: \\'query_root\\''}])", "exc_info": "Traceback (most recent call last):\n File \"/prefect-server/src/prefect_server/services/loop_service.py\", line 60, in run\n await self.run_once()\n File \"/prefect-server/src/prefect_server/services/towel/scheduler.py\", line 46, in run_once\n offset=500 * iterations,\n File \"/prefect-server/src/prefect_server/database/orm.py\", line 501, in get\n as_box=not apply_schema,\n File \"/prefect-server/src/prefect_server/database/hasura.py\", line 85, in execute\n as_box=as_box,\n File \"/prefect-server/src/prefect_server/utilities/graphql.py\", line 84, in execute\n raise ValueError(result[\"errors\"])\nValueError: [{'extensions': {'path': '$.selectionSet.flow', 'code': 'validation-failed'}, 'message': 'field \"flow\" not found in type: \\'query_root\\''}]"}
towel_1 | {"severity": "ERROR", "name": "prefect-server.ZombieKiller", "message": "Unexpected error: ValueError([{'extensions': {'path': '$.selectionSet.task_run', 'code': 'validation-failed'}, 'message': 'field \"task_run\" not found in type: \\'query_root\\''}])", "exc_info": "Traceback (most recent call last):\n File \"/prefect-server/src/prefect_server/services/loop_service.py\", line 60, in run\n await self.run_once()\n File \"/prefect-server/src/prefect_server/services/towel/zombie_killer.py\", line 216, in run_once\n await self.reap_zombie_task_runs()\n File \"/prefect-server/src/prefect_server/services/towel/zombie_killer.py\", line 153, in reap_zombie_task_runs\n apply_schema=False,\n File \"/prefect-server/src/prefect_server/database/orm.py\", line 501, in get\n as_box=not apply_schema,\n File \"/prefect-server/src/prefect_server/database/hasura.py\", line 85, in execute\n as_box=as_box,\n File \"/prefect-server/src/prefect_server/utilities/graphql.py\", line 84, in execute\n raise ValueError(result[\"errors\"])\nValueError: [{'extensions': {'path': '$.selectionSet.task_run', 'code': 'validation-failed'}, 'message': 'field \"task_run\" not found in type: \\'query_root\\''}]"}
nmap localhost
shouldn't there be one for port 4200 ?Kevin Kho
07/31/2021, 8:13 PMIle Lee
07/31/2021, 8:18 PMKevin Kho
07/31/2021, 8:50 PMtowel
and the api
should at least start. I did this on t5.large Linux AMI 2. Just had to get docker and docker compose working and then prefect server start
.Ile Lee
07/31/2021, 9:10 PMKevin Kho
08/02/2021, 3:08 PMprefect server start --version core-0.15.2
Ile Lee
08/02/2021, 3:49 PMKevin Kho
08/02/2021, 3:49 PMlocalhost
or with an IP address?Ile Lee
08/02/2021, 3:50 PMprefect server start --version core-0.15.2
Doesn't work 😕
I've tried with other versions aswell.
The closest I got was to get the UI's Navigation bar. I messed around with it and then it stopped working again... Will try againKevin Kho
08/02/2021, 5:40 PMIle Lee
08/02/2021, 5:44 PMKevin Kho
08/02/2021, 5:51 PMprefect server start --version core-0.15.2
. This should work. For you setup, it seems like some stuff is not working right. Do you have logs you can share? I used the Linux AMI 2 and t5.large when I got it working.Ile Lee
08/03/2021, 11:38 AMKevin Kho
08/03/2021, 1:38 PMIle Lee
08/05/2021, 9:43 AM