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

error retrieving current directory via rsync #200

Closed
OverkillGuy opened this issue Nov 23, 2016 · 2 comments
Closed

error retrieving current directory via rsync #200

OverkillGuy opened this issue Nov 23, 2016 · 2 comments

Comments

@OverkillGuy
Copy link

Usecase: Trying to rsync some files over from desktop to phone via rsync over a Bluetooth PAN SSH connexion.

When I try
rsync --progress phone-bluetooth:/any-folder .
I get the following error:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
SSH into the device manually works though.

It seems that rsync cannot find the working directory while connecting, while pwd works fine in an interactive terminal over SSH. Tried to expand my SSH config alias into a verbose rsync command, does the same: rsync -rvz -e 'ssh -p 8022' --progress u0_a122@192.168.44.1:/some-folder ~/some/local/folder/ returns
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied

@OverkillGuy OverkillGuy changed the title error retrieving current directory via rsync / emacs tramp error retrieving current directory via rsync Nov 23, 2016
@fornwall
Copy link
Member

Hm, perhaps this is caused by parent directories not being accessible (/data/, which the Termux folders are under, are not accessible).

If we find out where the error happens we could patch around it, hopefully.

@fornwall
Copy link
Member

Ok, this was actually an issue with the bash shell! It has been fixed in version 4.4.5-1 of the bash package, update with:

apt update && apt upgrade

Also, note that the -z compress option is not supported, you need the newer (soon to be made by default by rsync) -zz option (as long as you're client is at least version 3.1.1, otherwise you must skip rsync compression until upgrading).

@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants