Overv / outrun

Execute a local command using the processing power of another Linux machine.
Apache License 2.0
3.12k stars 66 forks source link

remote outrun failed to start #3

Open priyasiddharth opened 3 years ago

priyasiddharth commented 3 years ago

Hello,

I am trying to start outrun but get the following error. How can I get more details about what's happening?

xxx@pop-os:~/.local/lib/python3.8/site-packages/outrun$ outrun user@xxx ls
Password:
Verification code:
bash: outrun: command not found
2020-08-14 22:26:39,767 - ERROR - failed to run command: remote outrun failed to start

thanks Siddharth

lumanyu commented 3 years ago

I met same problem

Overv commented 3 years ago

Make sure that you installed outrun globally on xxx. The SSH session started by outrun won't find local Python modules based on configuration in .bashrc/.zshrc/etc. This will be improved in the future.

j1elo commented 3 years ago

I've faced the same issue, and the problem comes from the fact that ssh [-tt] host command will not create a login shell, which means that config files like .bashrc and friends won't be loaded, which is what usually configures additional user's locations for PATH.

On the other hand, running the pip3 install outrun command, just as instructed in the Readme, will have pip install binaries under the user's home in /home/username/.local/bin/. The problem is as mentioned, that this location is not in the PATH by default and won't be for non-login shells.

My workaround, after running the pip3 install as per the Readme:

sudo ln -s ~/.local/bin/outrun /usr/local/bin/

This is simple enough and should probably be mentioned somewhere in the instructions (e.g. installation steps, or in a "troubleshooting" section).

frafra commented 2 months ago

Would it be possible to add an option to manually set the location of the remote outrun script?

https://github.com/Overv/outrun/blob/20af1136060ecb0a53f464b73e5cdac913a097c3/outrun/operations/local.py#L214-L216