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]: attach-mode fails for ssh backend Task instance #1246

Closed
deep-diver opened this issue May 18, 2024 · 3 comments
Closed

[Bug]: attach-mode fails for ssh backend Task instance #1246

deep-diver opened this issue May 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@deep-diver
Copy link
Contributor

Steps to reproduce

  1. Add ssh backend instance to default-pool

  2. Open up GitHub codespaces for a clear and fresh setup

  3. run dstack config ...

  4. run dstack init ...

  5. run dstack run . -f ... --reuse

  6. select the instance from the default-pool

Actual behaviour

fast-rat-1 provisioning completed (running)
Aborted
Traceback (most recent call last):
  File "/home/codespace/.python/current/bin/dstack", line 8, in <module>
    sys.exit(main())
  File "/usr/local/python/3.10.13/lib/python3.10/site-packages/dstack/_internal/cli/main.py", line 67, in main
    args.func(args)
  File "/usr/local/python/3.10.13/lib/python3.10/site-packages/dstack/_internal/cli/commands/run.py", line 183, in _command
    if run.attach():
  File "/usr/local/python/3.10.13/lib/python3.10/site-packages/dstack/api/_public/runs.py", line 293, in attach
    self._ssh_attach.attach()
  File "/usr/local/python/3.10.13/lib/python3.10/site-packages/dstack/_internal/core/services/ssh/attach.py", line 136, in attach
    raise SSHError("Can't connect to the remote host")
dstack._internal.core.errors.SSHError: Can't connect to the remote host

Expected behaviour

it should be able to connect to the provisioned instance

dstack version

0.18.1

Server logs

no server logs

Additional information

No response

@deep-diver deep-diver added the bug Something isn't working label May 18, 2024
@TheBits
Copy link
Contributor

TheBits commented May 21, 2024

Hi, Chunsung!
Thanks for bug report!

Are you using dstack server or dstack Sky?

I fixed it in the dstack server, and it should work in the next version.

@deep-diver
Copy link
Contributor Author

I am using dstack Sky, but this nodes are added by @peterschmidt85 for testing purpose

@TheBits
Copy link
Contributor

TheBits commented May 21, 2024

I'll close the issue; the fixes will be in 0.18.2rc2.

@TheBits TheBits closed this as completed May 21, 2024
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

2 participants