AgentGPT
AgentGPT copied to clipboard
Error attempting to connect to the server
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
Should create the agent and go on.
Current behaviour
Unable to create the agent and giving:
Embarking on a new goal My goal
Error attempting to connect to the server.
Steps to reproduce
Open http://127.0.0.1:3000 and try to create an agent
Possible solution
Don't know but seems to access well on port 3000 but not port 8000
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [ ] macOS
- [X] Windows
Acknowledgements
- [X] My issue title is concise, descriptive, and in title casing.
- [X] I have searched the existing issues to make sure this bug has not been reported yet.
- [X] I am using the latest version of AgentGPT.
- [X] I have provided enough information for the maintainers to reproduce and diagnose the issue.
Facing same issue
Enter into the "AgentGPT > Platform" container and type in the terminal "poetry install". Restart container and enjoy
@darkanubis0100 I've tried running "poetry install" within the agentgpt_platform
container but it still fails.
Steps:
-
docker ps
-
docker exec -it platform bash
-
poetry install
@darkanubis0100 I've tried running "poetry install" within the
agentgpt_platform
container but it still fails.Steps:
docker ps
docker exec -it <poetry_container_id> bash
poetry install
But what you have not indicated is if you have already restarted the stack (Inside the AgentGPT folder type and execute "docker compose restart").
Nice it works now!
Anyway weird platform/Dockerfile
LOC 37 doesn't seem to be enough there
Thank you that works !
Finally just tried a fork and can't get it to work, same issue even after the trick... will retry with the original repo...
Look at the server(platform) log on docker, for me was a httpx not found, just install it and now it works
I finally reinstalled docker as I had more and more issues. Everything works now. Thanks
I have installed AgentGPT on windows 11 via given instructions but i am getting Error "attempting to connect to the server" right after installation,
and on other side docker consuming 100% of hosts CPU which makes GUI very slow. there is no issue on login, settings also works fine but i am not sure whats wrong.
i am posting this after multiple restarts of docker, ubuntu including my laptop. Please suggest a solution.
Many Thanks
The problem of consumption in Docker is not something that corresponds to us in AgentGPT. Docker is separate software and we don't know under what circumstances this load happens to you.
I have installed AgentGPT on windows 11 via given instructions but i am getting Error "attempting to connect to the server" right after installation,
There is no issue on login, settings also works fine but i am not sure whats wrong.
Please suggest a solution.
Many Thanks
Same issue here as well, any suggestions on diagnosing this issue?
Where is the "server(platform)" log?
Same here. Tried everything. Seems like a bug.
@darkanubis0100 I've tried running "poetry install" within the
agentgpt_platform
container but it still fails.Steps:
docker ps
docker exec -it platform bash
poetry install
worked for me on macOS, thanks
@darkanubis0100 I've tried running "poetry install" within the
agentgpt_platform
container but it still fails. Steps:
docker ps
docker exec -it <poetry_container_id> bash
poetry install
But what you have not indicated is if you have already restarted the stack (Inside the AgentGPT folder type and execute "docker compose restart").
I am getting this error
I get this poetry error which I try to fix by using higher version but no succss, which version you guys are using?
@darkanubis0100 I've tried running "poetry install" within the
agentgpt_platform
container but it still fails.Steps:
docker ps
docker exec -it platform bash
poetry install
I followed the instructions to update, but it didn't have any effect, and the error hasn't been resolved. My system is CentOS 7, and the service is running with Docker. This error has almost driven me to the point of despair
I also have the same error and have tried all the suggested steps.
I also have an odd issue where it completely locks up my system after clicking Play. I'm running it in a VM on my local server. The CPU of that server is fine; it doesn't increase when the freezing happens.
The freezing goes away after I refresh the page, which takes around 3 minutes. Once it does, the lag or frozenness vanishes.
The freezing occurs in any browser I try.
New version is giving the same error.
when I enter my api key,it turns out:"FetchError: request to https://api.openai.com/v1/models failed, reason: connect ETIMEDOUT 199.96.61.1:443".how can I solve this?
same issue, and I tried
- docker ps
- docker exec -it <poetry_container_id> /bin/bash
- poetry install
- cd AgentGPT && docker-compose restart
tried on ubuntu20.04 and ubuntu22.04
nothing change, still got the error
What's even more weird is that the default environment used to run successfully, but suddenly it doesn't work when configured on a new PC
same error s* bigtime wasting time trying it every now and again but no updates
poetry install
For MacOS:
apt update apt-get install pkg-config gcc pip install --upgrade pip pip wheel --use-pep517 "mysqlclient (==2.2.0)" poetry install
After that restart agentgpt containers
Why is this not fixed.
It seems the opensource version is end of live. Maybe it was a good strat to get the funding then build the commercial project.
harsh words but no live for the opensource version anymore..
latest release november
Works for Windows:
Install as normal,
Open docker: docker ps docker exec -it platform bash apt update apt-get install pkg-config gcc pip install --upgrade pip pip wheel --use-pep517 "mysqlclient (==2.2.0)" poetry install
Then run exit and type docker compose restart
#1499 This may be the last chance to try if all of above not solving the issue.
For MacOS:
- Enter into the "platform" container.
- docker ps
- docker exec -it platform bash
- Install Poetry within the "platform" container.
- apt update
- apt-get install pkg-config gcc
- pip install --upgrade pip
- pip wheel --use-pep517 "mysqlclient (==2.2.0)"
- poetry install
- Restart docker-compose in AgentGPT folder.
- docker compose restart
Works for Windows:
Install as normal,
Open docker: docker ps docker exec -it platform bash apt update apt-get install pkg-config gcc pip install --upgrade pip pip wheel --use-pep517 "mysqlclient (==2.2.0)" poetry install
Then run exit and type docker compose restart
Fix on Windows 10 too. Thanks