Skip to content
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

fail to create directory on remote host #9

Open
youzipi opened this issue Jan 7, 2022 · 4 comments
Open

fail to create directory on remote host #9

youzipi opened this issue Jan 7, 2022 · 4 comments

Comments

@youzipi
Copy link

youzipi commented Jan 7, 2022

Local OS (where xxh is installed): macOS 10.15.7
Destination host OS: CentOS Linux release 7.9.2009 (Core) ## aws ec2
xxh version: 0.8.8
xxh-plugins installed: xxh-shell-zsh

Steps to Reproduce

  1. I run xxh remote-host +if +vv
  2. The output log:
debug1: Sending command: /home//.xxh/.xxh/shells/xxh-shell-zsh/build/entrypoint.sh   -v 2
/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Something went wrong while running zsh on host:
./zsh.sh: line 14: /home/youzipi/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/share/zsh/5.8/scripts/relocate: No such file or directory mkdir: cannot create directory '/zsh': Permission denied ./zsh.sh: line 28: /home/youzipi/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/bin/zsh: No such file or directory
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
/home/youzipi/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh.sh: line 28: /home/youzipi/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/bin/zsh: No such file or directory
debug1: channel 0: free: client-session, nchannels 1
Connection to gate.zaihui.com.cn closed.
Transferred: sent 4472, received 3700 bytes, in 0.1 seconds
Bytes per second: sent 63788.2, received 52776.5
debug1: Exit status 127

if i create the dir mannually, then throw error:

mkdir: cannot create directory '/zsh': Permission denied ./zsh.sh: line 28: /home/youzipi/.xxh/.xxh/shells/xxh-shell-zsh/build/zsh-bin/bin/zsh: Is a directory
  1. What is the problem

For community:
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code transferred this issue from xxh/xxh Jan 10, 2022
@anki-code
Copy link
Member

hi! What if you will try to run zsh-bin manually on the target OS:

cd /tmp
tag=v3.0.1
distfile=zsh-5.8-linux-x86_64
url="https://github.com/romkatv/zsh-bin/releases/download/$tag/$distfile.tar.gz"
tarname=`basename $url`
wget --show-progress $url -O $tarname
tar -xzf $tarname
cd zsh-5.8-linux-x86_64
./share/zsh/5.8/scripts/relocate
./bin/zsh

Is it working?

@youzipi
Copy link
Author

youzipi commented Jan 11, 2022

hi! What if you will try to run zsh-bin manually on the target OS:

cd /tmp
tag=v3.0.1
distfile=zsh-5.8-linux-x86_64
url="https://github.com/romkatv/zsh-bin/releases/download/$tag/$distfile.tar.gz"
tarname=`basename $url`
wget --show-progress $url -O $tarname
tar -xzf $tarname
cd zsh-5.8-linux-x86_64
./share/zsh/5.8/scripts/relocate
./bin/zsh

Is it working?

it seems create a plain zsh.

run xxh remote-host local, got same result.
it did not bring my local zsh to remote as i expected.

@thinkgos
Copy link

thinkgos commented Apr 3, 2024

.xxh/.xxh/shells/xxh-shell-zsh/build/zsh.sh file the shell mkdir -p $XDG_DATA_HOME/zsh, the XDG_DATA_HOME environment variable empty....

@anki-code
Copy link
Member

PR with fix is welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants