Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

error: failed to parse host IP: host argument is not a valid IP address #84

Closed
magick93 opened this issue May 1, 2019 · 10 comments
Closed

Comments

@magick93
Copy link

magick93 commented May 1, 2019

Hello

I've just installed sshcode, using go get -u go.coder.com/sshcode, and go to run it, and it fails with the below error:

sshcode [email protected]
2019-05-02 11:13:06 INFO	ensuring code-server is updated...
2019-05-02 11:13:06 FATAL	error: failed to parse host IP: host argument is not a valid IP address

Does it only work with ip addresses?

I'm running sshcode on Ubuntu 19.04.

@magick93
Copy link
Author

magick93 commented May 1, 2019

I just tried with the IP address, rather than hostname, and get the same error.

@sreya
Copy link
Collaborator

sreya commented May 2, 2019

@magick93 try running go get -u go.coder.com/sshcode again it should be fixed

@magick93
Copy link
Author

magick93 commented May 2, 2019

Thanks @sreya92 - that solved that issue.
Now it fails with 2019-05-02 12:30:36 FATAL error: code-server didn't start in time: context deadline exceeded

@sreya
Copy link
Collaborator

sreya commented May 2, 2019

@magick93 Hmm that's interesting, if instead you run sshcode --ssh-flags='-l <user>' myserver.domain does it work?

@sreya
Copy link
Collaborator

sreya commented May 2, 2019

Oh you know what, the previous instance of code-server was probably running, if you ssh into your server and do a pkill sshcode, then run sshcode again it should work. The tool should handle that case though, #24 I'll fix in a sec

@sreya
Copy link
Collaborator

sreya commented May 2, 2019

@magick93 I'm having a hard time recreating your issue, I was able to do it once but I was unable to recreate it, is this something you see consistently

@SscSPs
Copy link
Contributor

SscSPs commented May 2, 2019

@sreya92 try using the hosts saved in ~/.ssh/config file, i'm facing this issue as well

@sreya
Copy link
Collaborator

sreya commented May 2, 2019

@SscSPs could you post the error you're receiving?

@SscSPs
Copy link
Contributor

SscSPs commented May 3, 2019

@sreya92 I was facing that issue yesterday, but not anymore.
I was getting this one

FATAL error: code-server didn't start in time: context deadline exceeded

@sreya
Copy link
Collaborator

sreya commented May 3, 2019

Gotcha yeah, it seems like like every once in a great while that can happen, simply retrying the command tends to work. I tried running the command 50 times and wasn't able to reproduce. Please reopen if you experience problems

@sreya sreya closed this as completed May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants