AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

Error attempting to connect to the server

Open Entretoize opened this issue 11 months ago • 28 comments

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.

Entretoize avatar Sep 29 '23 08:09 Entretoize

Facing same issue

architectonic avatar Sep 29 '23 16:09 architectonic

Enter into the "AgentGPT > Platform" container and type in the terminal "poetry install". Restart container and enjoy

darkanubis0100 avatar Sep 29 '23 17:09 darkanubis0100

@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

Hextar avatar Sep 30 '23 15:09 Hextar

@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").

darkanubis0100 avatar Sep 30 '23 15:09 darkanubis0100

Nice it works now!

Anyway weird platform/Dockerfile LOC 37 doesn't seem to be enough there

Hextar avatar Sep 30 '23 15:09 Hextar

Thank you that works !

Entretoize avatar Oct 01 '23 11:10 Entretoize

Finally just tried a fork and can't get it to work, same issue even after the trick... will retry with the original repo...

Entretoize avatar Oct 01 '23 15:10 Entretoize

Look at the server(platform) log on docker, for me was a httpx not found, just install it and now it works

beniseur avatar Oct 02 '23 09:10 beniseur

I finally reinstalled docker as I had more and more issues. Everything works now. Thanks

Entretoize avatar Oct 02 '23 11:10 Entretoize

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.

darkanubis0100 avatar Oct 02 '23 16:10 darkanubis0100

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

netobsi avatar Oct 02 '23 22:10 netobsi

Same issue here as well, any suggestions on diagnosing this issue?

Where is the "server(platform)" log?

BAHLZ avatar Oct 03 '23 19:10 BAHLZ

Same here. Tried everything. Seems like a bug.

2004gixxer600 avatar Oct 07 '23 01:10 2004gixxer600

@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

rursache avatar Oct 09 '23 18:10 rursache

@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

image

itsanishjain avatar Oct 17 '23 09:10 itsanishjain

I get this poetry error which I try to fix by using higher version but no succss, which version you guys are using?

image

itsanishjain avatar Oct 17 '23 09:10 itsanishjain

@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

Afollow avatar Oct 23 '23 09:10 Afollow

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.

mikes-bowden avatar Oct 31 '23 02:10 mikes-bowden

New version is giving the same error.

Screenshot 2023-11-02 at 12 27 04 PM

mikes-bowden avatar Nov 02 '23 16:11 mikes-bowden

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?

liangzhenbin1992 avatar Nov 05 '23 09:11 liangzhenbin1992

same issue, and I tried

  1. docker ps
  2. docker exec -it <poetry_container_id> /bin/bash
  3. poetry install
  4. 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

wangrendong-yition avatar Nov 10 '23 03:11 wangrendong-yition

same error s* bigtime wasting time trying it every now and again but no updates

Jarrodsz avatar Dec 11 '23 00:12 Jarrodsz

  • 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

anatoliiohorodnyk avatar Jan 06 '24 22:01 anatoliiohorodnyk

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

Jarrodsz avatar Jan 22 '24 12:01 Jarrodsz

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

danwebflow avatar Feb 13 '24 19:02 danwebflow

#1499 This may be the last chance to try if all of above not solving the issue.

ChrisFengA avatar Mar 07 '24 14:03 ChrisFengA

For MacOS:

  1. Enter into the "platform" container.
  • docker ps
  • docker exec -it platform bash
  1. 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
  1. Restart docker-compose in AgentGPT folder.
  • docker compose restart

ctxzz avatar Mar 19 '24 11:03 ctxzz

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

Numinex-Corp avatar Mar 19 '24 22:03 Numinex-Corp