agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

SSH Connection Error every time finish code

Open userbox020 opened this issue 1 year ago • 5 comments

Hello, first of all thanks for this amazing repo! I have been testing and I think is very promising project. The issue I'm getting is when finishing the code, it always try to excecute it creating a docker container and trying to connect to it thru ssh but every time it get same and same error.

Initializing docker container agent-zero-exe for safe code execution...
Started container with ID: 4199550ced0749fefc17963c9ffdcb9a9b9e794713efb150217f603b191df322
SSH Connection attempt 1...
SSH Connection attempt 2...

{
    "system_error": "Traceback (most recent call last):
  File "C:\_Work\AgentZero_AI\agent-zero\python\helpers\shell_ssh.py", line 27, in connect
    self.client.connect(self.hostname, self.port, self.username, self.password)
  File "C:\Users\MiPC\miniconda3\envs\az\lib\site-packages\paramiko\client.py", line 409, in connect
    raise NoValidConnectionsError(errors)
paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 50022 on 127.0.0.1 or ::1
"
}

thanks for your time

userbox020 avatar Aug 07 '24 18:08 userbox020

had the same problem but you can try turnung it to : "code_exec_ssh_enabled = False," ! in the main.py code_exec_docker_enabled = True, code_exec_docker_name = "agent-zero-exe", code_exec_docker_image = "frdel/agent-zero-exe:latest", code_exec_docker_ports = { "22/tcp": 50022 }, code_exec_docker_volumes = { files.get_abs_path("work_dir"): {"bind": "/root", "mode": "rw"} }, code_exec_ssh_enabled = False, #code_exec_ssh_addr = "localhost", #code_exec_ssh_port = 50022, #code_exec_ssh_user = "root", #code_exec_ssh_pass = "toor", # additional = {}, )

develcrystal avatar Aug 23 '24 12:08 develcrystal

I have the same error but before was working and now im stuck there

Zeroocooloverride avatar Nov 04 '24 23:11 Zeroocooloverride

Its been too while ago since the error, try do a git push maybe is solve now

El lun, 4 de nov de 2024, 5:12 p. m., ZerocoolOverride < @.***> escribió:

I have the same error but before was working and now im stuck there

— Reply to this email directly, view it on GitHub https://github.com/frdel/agent-zero/issues/53#issuecomment-2455889961, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALHEVZJDBKIQJWOOGOHKYUDZ675PDAVCNFSM6AAAAABME6J7C2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVHA4DSOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

userbox020 avatar Nov 04 '24 23:11 userbox020

it should be solved with new versions

develcrystal avatar Nov 18 '24 17:11 develcrystal

am stuck with this fucking error. I was thinking this may be due to anti-virus software preventing this ssh connection thus had to uninstall all my anti-virus software but still doesn't work. It worked really well for two days and now it's all fucked

smgpfeve avatar Nov 21 '24 08:11 smgpfeve