Edward Chen
02/09/2021, 9:15 AMName or service not known
error message. I confirmed that GraphQL is not running based on the error message on the top right of the prefect UI.
Stack trace:
apollo_1 | Checking GraphQL service at <http://graphql:4201/health> ...
apollo_1 | Checking GraphQL service at <http://graphql:4201/health> ...
graphql_1 |
graphql_1 | Running Alembic migrations...
graphql_1 | INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
graphql_1 | INFO [alembic.runtime.migration] Will assume transactional DDL.
graphql_1 |
graphql_1 | Could not upgrade the database!
graphql_1 | Error: HTTPConnectionPool(host='hasura', port=3000): Max retries exceeded with url: /v1/query (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x40133ab7d0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
apollo_1 | Checking GraphQL service at <http://graphql:4201/health> ...
Based on the stack trace, it confirms that there is an issue with graphql, I’m just not sure how to dive deeper. I have tried Dagster and initially came across some issues with compatibility with the M1 chip so I created an EC2 instance and tried the prefect first flow tutorial in that one as well. I hit an issue with docker compose not being found so rather than splitting into two separate paths, I’m going to try to focus on getting the first flow tutorial working on my local instance (macos)Zanie
prefect server start
works on m1.Edward Chen
02/09/2021, 4:43 PMZanie
Edward Chen
02/09/2021, 4:47 PMZanie
Edward Chen
02/09/2021, 5:11 PM#13 7.837 WARNING: Discarding <https://files.pythonhosted.org/packages/77/09/4991fcd9a8f4bea1ee3948e1729fa17c184d25bd10809bacc143626361b9/psycopg2-binary-2.7.4.tar.gz#sha256=de4f88f823037a71ea5ef3c1041d96b8a68d73343133edda684fd42f575bd9d7> (from <https://pypi.org/simple/psycopg2-binary/>). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
#13 7.837 ERROR: Could not find a version that satisfies the requirement psycopg2-binary<3.0,>=2.7 (from prefect-server)
#13 7.837 ERROR: No matching distribution found for psycopg2-binary<3.0,>=2.7
Confirmed by doing a pip install psycopg2-binary
and that hit an error as well. I hit this issue with another package too so I can work on getting prefect working in my EC2 instance, unless you happen to know a quick fix?
No worries if you don’t, I understand how much work is involved and I appreciate the quick responses!Zanie
Edward Chen
02/09/2021, 5:13 PMZanie
Zanie
Edward Chen
02/09/2021, 5:18 PM