Closed xade93 closed 2 years ago
Hi, sorry for the late response.
Looks like the path /home/root//'/usr/share/remarkable/templates
is wrong in that it contains a spurious '
but I'm not sure where that comes from...
If you set "log_verbosity": "debug"
in your configuration you'd be able to see the full rsync
command issued, and that could give us some clue.
For more details you could add
log.debug("RSYNC command: %s", ' '.join(cmd))
after line 475 in remy/remarkable/filesource.py
Hi, I have been encountering the same error for a couple of days. Changing the source type to ssh works fine, but if I try rsync I get the following output using your suggestions:
[I] Connected to 192.168.0.108
[I] DATA STORED IN:
/home/alex/remarkable/documents
/home/alex/remarkable/templates
[D] RSYNC: ['/usr/bin/rsync', '--info=NAME', '-e', '/usr/bin/ssh -o batchmode=yes -i "/home/alex/.ssh/id_rsa_rem" -o userknownhostsfile="/home/alex/.config/remy/known_hosts"']
[D] RSYNC command: /usr/bin/rsync --info=NAME -e /usr/bin/ssh -o batchmode=yes -i "/home/alex/.ssh/id_rsa_rem" -o userknownhostsfile="/home/alex/.config/remy/known_hosts" -vaz --prune-empty-dirs --delete root@192.168.0.108:'/usr/share/remarkable/templates/' /home/alex/remarkable/templates
illegal environment value for mesa_glthread: "0". Ignoring.
receiving file list ...
rsync: change_dir "/home/root//'/usr/share/remarkable/templates" failed: No such file or directory (2)
done
I hope that sheds some light on the issue.
just a quick additional remark: if I remove the quotes from remy/remarkable/filesource.py:462,
i.e., make it
return "%s@%s:%s" % (self.username, self.host, path)
then everything works fine. (But I understand that things may break if there are spaces in the paths)
@arieder thanks for the feedback!
Indeed this seems to be an issue with quoting.
The path is taken to be '/usr...
which has the side-effect of making it a relative path, so it gets expanded to /home/root/'/usr...
which is all sorts of wrong.
Can you change line 462 with:
return '%s@%s:"%s"' % (self.username, self.host, path)
(note the switch of quotes).
Does it work then?
Unfortunately it does not. (It no longer fails to connect completely, but that might be because now there is a valid templates folder from before). I get the following output:
[I] DATA STORED IN:
/home/alex/remarkable/documents
/home/alex/remarkable/templates
[D] RSYNC: ['/usr/bin/rsync', '--info=NAME', '-e', '/usr/bin/ssh -o batchmode=yes -i "/home/alex/.ssh/id_rsa_rem" -o userknownhostsfile="/home/alex/.config/remy/known_hosts"']
[D] RSYNC command: /usr/bin/rsync --info=NAME -e /usr/bin/ssh -o batchmode=yes -i "/home/alex/.ssh/id_rsa_rem" -o userknownhostsfile="/home/alex/.config/remy/known_hosts" -vaz --prune-empty-dirs --delete root@192.168.0.108:"/usr/share/remarkable/templates/" /home/alex/remarkable/templates
illegal environment value for mesa_glthread: "0". Ignoring.
receiving file list ...
rsync: change_dir "/home/root//"/usr/share/remarkable/templates" failed: No such file or directory (2)
done
Ok. I guess that argument does not need quoting. It seems like a platform-specific issue though. What OS/Python/RSync versions are you using?
I am using:
Manjaro Linux with Python 3.10.4 rsync version v3.2.4 protocol version 31 (on my PC) rsync version 3.1.3 protocol version 31 (on my remarkable)
Ok, I pushed a fix on devel
I'll see if this is causing other platforms to fail.
thank you for the quick response. For me, it works now.
Hi all,
as the title describes, reMy refuse to connect. Terminal output:
Config:
I am able to ssh into remarkable normally with
ssh root@192.168.12.234
.