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
remote execution: bash: guild: command not found #264
Comments
Are you able to run The issue here is likely the different env that is setup when you run ssh over a tty connection vs not. This is related to how the env is setup when you login. This post explains the issue to some extent. |
|
I would typically look to add this to the end of ~/.bash_profile on the remote system:
This ensures that the env used for non-interactive ssh sessions is initialized using the same script that's used for interactive (tty present). |
unfortunately this does not resolve the problem. |
You can compare the two Show the path used for non-interactive commands (this is what Guild will use with remote commands):
Show the path used for interactive commands:
You want to make sure that Guild's location in the first path. You can either alter that path to be the same as the second (this is the tactic of sourcing The file that's sourced for non-iteractive shells in your case might be |
I just went through this issue myself on a system. For Ubuntu based distros,
If your init script has something like this, make sure you set |
I try to train on remote via ssh. guildai is installed in both local and remote environments (venv). Remote environment is specified in the config.yml
On
guild run train --remote remote-gpu
I get the following error:Same error occures when executing other commands on remote, e.g.
guild check --remote remote-gpu
, but when logged in on remote I can doguild check
without issue.I tried to follow the documentation. Any idea what the issue could be?
The text was updated successfully, but these errors were encountered: