devpod
devpod copied to clipboard
Issue faced during machine ssh into devpod machine.
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.
Hi @lazycoder168, are your machines still listed in devpod machine ls?
yes. I am able to see the machines using the commands. I am not able to ssh into them. It throws the above error.
`➜ ~ 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`
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
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.
Are you using the Desktop application? If so, which OS are you on?
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.
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
Oh did not know that. Will try once. Will keep the thread updated. Thanks.
@lazycoder168 do you still experience this issue?
Closing due to inactivity, feel free to reopen if the issue is not fixed