devpod icon indicating copy to clipboard operation
devpod copied to clipboard

Issue faced during machine ssh into devpod machine.

Open lazycoder168 opened this issue 1 year ago • 10 comments

We are using devpod setup with aws provider and on spinning up the machine we technically use devpod machine ssh <machine_name>. As of now it worked fine, except recently it has been throwing the error: - couldn't find option MACHINE_FOLDER in environment, please make sure MACHINE_FOLDER is defined.

We are still able to ssh into it using the machine's RSA key from the context file but it requires us to go a longer way. Please help.

lazycoder168 avatar Feb 13 '24 02:02 lazycoder168

Hi @lazycoder168, are your machines still listed in devpod machine ls?

pascalbreuninger avatar Feb 13 '24 13:02 pascalbreuninger

yes. I am able to see the machines using the commands. I am not able to ssh into them. It throws the above error.

lazycoder168 avatar Feb 14 '24 06:02 lazycoder168

`➜ ~ devpod machine ls

         NAME           | PROVIDER |    AGE

--------------------------+----------+------------ devpod-shared-aws-930dd | aws | 1m9s

➜ ~ devpod machine ssh devpod-shared-aws-930dd 11:40:47 info Waiting for devpod agent to come up... 11:40:53 info Waiting for devpod agent to come up... 11:40:59 info Waiting for devpod agent to come up... 11:41:05 info Waiting for devpod agent to come up... 11:41:11 info Waiting for devpod agent to come up... ^C ➜ ~ devpod machine ssh devpod-shared-aws-930dd --debug 11:41:20 debug execute inject script 11:41:20 debug download agent from https://github.com/loft-sh/devpod/releases/download/v0.4.2 11:41:20 debug Run command provider command: ${AWS_PROVIDER} command 11:41:20 debug done exec 11:41:20 debug done inject 11:41:20 debug done injecting 11:41:20 debug Inject Error: couldn't find option MACHINE_FOLDER in environment, please make sure MACHINE_FOLDER is defined

EOF`

lazycoder168 avatar Feb 14 '24 06:02 lazycoder168

Hm, that's really odd. Can you try to update the cli and see if that helps? If not we'd have to dig deeper

pascalbreuninger avatar Feb 15 '24 09:02 pascalbreuninger

How can I update the CLI? Also, in some cases once we run the command to install devpod CLI, we are seeing the error: - zsh: no command found: devpod. Any clue as to this.

P. S. The issue regarding the ssh was fixed. Sometimes the ssh functionality does not work but now it seems to be working since today.

lazycoder168 avatar Feb 16 '24 07:02 lazycoder168

Are you using the Desktop application? If so, which OS are you on?

pascalbreuninger avatar Feb 19 '24 13:02 pascalbreuninger

Currently I am working on macOS Silicon chips. I have both the desktop application and the cli installed but after installing the CLI, I am getting the above error.

lazycoder168 avatar Feb 19 '24 15:02 lazycoder168

did you install the cli manually? Maybe try to remove it again and then install it from the Desktop app in Settings > General > CLI. The Desktop app auto-updates the CLI with every release as well, whereas standalone CLI installations need to be kept up-to-date manually

pascalbreuninger avatar Feb 19 '24 16:02 pascalbreuninger

Oh did not know that. Will try once. Will keep the thread updated. Thanks.

lazycoder168 avatar Feb 19 '24 17:02 lazycoder168

@lazycoder168 do you still experience this issue?

pascalbreuninger avatar Apr 18 '24 06:04 pascalbreuninger

Closing due to inactivity, feel free to reopen if the issue is not fixed

89luca89 avatar May 02 '24 12:05 89luca89