"Couldn't connect to Prefect Server at *<http://localhost:4200/graphql>*" i get this when i try to r...
k
"Couldn't connect to Prefect Server at *http://localhost:4200/graphql*" i get this when i try to run docker version in my local how to fix this anyone please help
👀 1
a
How do you start your Server? Do you have docker-compose installed on your machine? Which Prefect version did you use?
Did you change the backend to Server? You can do it this way:
prefect backend server
k
I did run cli command yet im facing issue. Im facing issue "Couldn't connect to Prefect Server at *http://localhost:4200/graphql*" when i click agents on UI. How to test agents please throw some light thank you :)
a
@krishna chaitanya I think we need to take it step by step to see where something went wrong. Can you share all the steps you did from Prefect installation? The typical way with Prefect Server would be: 1. Make sure you have Python, Docker and docker-compose installed in your local environment 2. pip install prefect 3. prefect backend server 4. prefect server start Can you share your steps and perhaps also share a screenshot of the UI with the error you mentioned?
k
I have followed same docker installed prefect installed and followed 3 and 4 as mentioned in docs and after 3 it also showed backend switched to server
a
can you run:
Copy code
prefect diagnostics
and share your output?
I was trying to replicate using 0.15.7 but I didn’t see any issues. Curious to see your Prefect version
k
{  "config_overrides": {},  "env_vars": [],  "system_information": {   "platform": "macOS-11.3.1-arm64-arm-64bit",   "prefect_backend": "server",   "prefect_version": "0.15.7",   "python_version": "3.10.0"  } }
a
I see - it may be because you are using Python 3.10 - I’m not sure we support it just yet. I’ll ask the team. For now, could you try installing Prefect within a virtual environment (e.g. with conda) using Python 3.8 or 3.9?
k
Ok will try that
a
I asked the team and it looks like you’re probably running into this issue https://github.com/PrefectHQ/prefect/issues/5118#issuecomment-963303375 You can likely resolve it by allocating more memory in your Docker Desktop, otherwise Hasura container is exiting.
k
I have allocated 8gb dint work :(
a
I know from my own experience that it may be worth restarting your laptop after making that change - could you perhaps (just to be sure) try allocating even more, say 10 GB of memory, on Docker Desktop, then restart your laptop, and then start the Server again? Btw, if Server is too annoying and doesn’t work well for you: did you know that Prefect Cloud is much easier to use than Server and offers 20,000 free task runs each month on the Standard plan? the free tier is more than enough to get started, maybe you can switch to Server later if needed.
k
Thank you it worked after closing all background apps. Thanks for help :)
🙌 1
419 Views