Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error attempting to connect to the server #1303

Open
6 of 10 tasks
Entretoize opened this issue Sep 29, 2023 · 28 comments
Open
6 of 10 tasks

Error attempting to connect to the server #1303

Entretoize opened this issue Sep 29, 2023 · 28 comments
Labels
bug Something isn't working

Comments

@Entretoize
Copy link

Please check that this issue hasn't been reported before.

  • 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
  • Windows

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of AgentGPT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.
@Entretoize Entretoize added the bug Something isn't working label Sep 29, 2023
@architectonic
Copy link

Facing same issue

@darkanubis0100
Copy link

darkanubis0100 commented Sep 29, 2023

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

@Hextar
Copy link

Hextar commented Sep 30, 2023

@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
Copy link

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

@Hextar
Copy link

Hextar commented Sep 30, 2023

Nice it works now!

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

@Entretoize
Copy link
Author

Thank you that works !

@Entretoize Entretoize reopened this Oct 1, 2023
@Entretoize
Copy link
Author

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

@beniseur
Copy link

beniseur commented Oct 2, 2023

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

@Entretoize
Copy link
Author

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

@darkanubis0100
Copy link

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.

@netobsi
Copy link

netobsi commented Oct 2, 2023

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

@BAHLZ
Copy link

BAHLZ commented Oct 3, 2023

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

Where is the "server(platform)" log?

@2004gixxer600
Copy link

Same here. Tried everything. Seems like a bug.

@rursache
Copy link

rursache commented Oct 9, 2023

@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

@itsanishjain
Copy link

@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
Copy link

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

image

@Afollow
Copy link

Afollow commented Oct 23, 2023

@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

@mikes-bowden
Copy link

mikes-bowden commented Oct 31, 2023

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
Copy link

New version is giving the same error.

Screenshot 2023-11-02 at 12 27 04 PM

@liangzhenbin1992
Copy link

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?

@wangrendong-yition
Copy link

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

@Jarrodsz
Copy link

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

@anatoliiohorodnyk
Copy link

anatoliiohorodnyk commented Jan 6, 2024

  • 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

@Jarrodsz
Copy link

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

@danwebflow
Copy link

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

@ChrisFengA
Copy link

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

@ctxzz
Copy link

ctxzz commented Mar 19, 2024

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

@Numinex-Corp
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests