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

[Bug]: Command timed out, killing process.. when trying to use ssh #2157

Closed
2 tasks done
usamimeri opened this issue May 31, 2024 · 3 comments
Closed
2 tasks done

[Bug]: Command timed out, killing process.. when trying to use ssh #2157

usamimeri opened this issue May 31, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@usamimeri
Copy link

usamimeri commented May 31, 2024

Is there an existing issue for the same bug?

Describe the bug

I try to use bash ./evaluation/swe_bench/scripts/run_infer.sh gpt-4o CodeActAgent 1 based on the document. But the program stuck on the SSH connection.

v2024-05-31 21:02:00,300 - INFO - SSHBox is running as root user with USER_ID=1000 in the sandbox
2024-05-31 21:02:00,316 - INFO - Using existing Docker container
2024-05-31 21:02:00,317 - INFO - Connecting to root@localhost via ssh. If you encounter any issues, you can try `ssh -v -p 63710 root@localhost` with the password '123456' and report the issue on GitHub. If you started OpenDevin with `docker run`, you should try `ssh -v -p 63710 root@localhost` with the password '123456 on the host machine (where you started the container).
2024-05-31 21:06:01,863 - ERROR - Command timed out, killing process...
2024-05-31 21:06:01,863 - ERROR - Command timed out, killing process...
2024-05-31 21:08:24,866 - INFO - SSHBox is running as root user with USER_ID=1000 in the sandbox
2024-05-31 21:08:24,885 - INFO - Using existing Docker container
2024-05-31 21:08:24,886 - INFO - Connecting to root@localhost via ssh. If you encounter any issues, you can try `ssh -v -p 63710 root@localhost` with the password '123456' and report the issue on GitHub. If you started OpenDevin with `docker run`, you should try `ssh -v -p 63710 root@localhost` with the password '123456 on the host machine (where you started the container).
2024-05-31 21:12:26,384 - ERROR - Command timed out, killing process...
2024-05-31 21:12:26,384 - ERROR - Command timed out, killing process...

I try to ssh -v -p 63710 root@localhost and input password "123456" then I login in successfully.

Current OpenDevin version

ghcr.io/opendevin/opendevin:0.5

Installation and Configuration

my config.toml is:

[core]
max_iterations = 100
cache_dir = "/tmp/cache"
sandbox_container_image = "ghcr.io/opendevin/sandbox:latest"
sandbox_type = "ssh"
ssh_hostname = "localhost"
sandbox_timeout = 120
ssh_password = "123456"
persist_sandbox = false

# SWEBench eval specific
use_host_network = false
run_as_devin = false
enable_auto_lint = true

# TODO: Change these to the model you want to evaluate
[gpt-4o]
model = "gpt-4o"
api_key = "sk-xxx"
temperature = 0.0

[eval_some_openai_compatible_model]
model = "openai/MODEL_NAME"
base_url = "https://OPENAI_COMPATIBLE_URL/v1"
api_key = "XXX"
temperature = 0.0

Model and Agent

No response

Operating System

wsl2 ubuntu 22.04

Reproduction Steps

No response

Logs, Errors, Screenshots, and Additional Context

No response

@usamimeri usamimeri added the bug Something isn't working label May 31, 2024
@SmartManoj
Copy link
Contributor

2024-05-31 21:06:01,863 - ERROR - Command timed out, killing process...

Seems plugin initialization is timed out.

@li-boxuan
Copy link
Collaborator

Closed by #2172

Please let me know if you meet any other issue!

@usamimeri
Copy link
Author

Closed by #2172

Please let me know if you meet any other issue!

Thanks! It acctually solved my problem and it ran smoothly now.

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

3 participants