reHackable / scripts

[ THIS PROJECT IS CURRENTLY ON HALT :( ] A set of bash scripts that may enhance your reMarkable experience
GNU General Public License v3.0
234 stars 29 forks source link

repush.sh script stuck for ever #34

Open GBZH opened 3 years ago

GBZH commented 3 years ago

Hi, I have installed your scripts on my laptop running under Linux Ubuntu 20.04. I enabled the USB Web UI on the remarkable 2 tablet. Typing the following command: reMarkable/scripts/host/repush.sh -r xxx.xxx.x.xx wcs.pdf root@xxx.xxx.x.xx's password: with good IP address and password, nothing happens, no error message and no file copied on the tablet. It stays there forever. After killing the command with CTRL c, I get an error message if I try to rerun the command w/o restarting the reMarkable 2 tablet: repush: Port 9000 is already used by a different process!

Any hints on how to solve this problem is very welcome. Thanks, Gilles

trou commented 3 years ago

This is probably issue #31, you can try the fix in the PR: https://github.com/reHackable/scripts/pull/35

GBZH commented 3 years ago

Hi,

Many thanks, downloading your new script solved the problem when the tablet is connected to the laptop and when copying with the following command : repush.sh file.pdf But the command is still stuck after entering password when tablet is connected and using : repush.sh -r xxx.xxx.x.xx file.pdf

De: "Raphaël Rigo" notifications@github.com À: "reHackable/scripts" scripts@noreply.github.com Cc: "Gilles Quéméner" quemener@lpccaen.in2p3.fr, "Author" author@noreply.github.com Envoyé: Vendredi 12 Février 2021 00:02:24 Objet: Re: [reHackable/scripts] repush.sh script stuck for ever (#34)

This is probably issue [ https://github.com/reHackable/scripts/issues/31 | #31 ] , you can try the fix in the PR: [ https://github.com/reHackable/scripts/pull/35 | #35 ]

— You are receiving this because you authored the thread. Reply to this email directly, [ https://github.com/reHackable/scripts/issues/34#issuecomment-777850697 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AAQU2CZEM7VVKKS7BLQYOUTS6ROYBANCNFSM4XPBCBKQ | unsubscribe ] .

trou commented 3 years ago

It's probably because the Web UI is disabled when the rM is disconnected. Can you post the output of bash -x repush.sh -r x.x.x.x file.pdf ?

GBZH commented 3 years ago

Here are the outputs that you want :

1) First test: tablet is connected to laptop and USB interface is OFF

~$ bash -x reMarkable/scripts/host/repush.sh -r xxx.xxx.x.xx wcs.pdf

2) Second test: tablet is connected to laptop and USB interface is ON

~$ bash -x reMarkable/scripts/host/repush.sh -r xxx.xxx.x.xx wcs.pdf

3) Third test: tablet is not connected to laptop and therefore USB interface is OFF by default

~$ bash -x reMarkable/scripts/host/repush.sh -r xxx.xxx.x.xx wcs.pdf

Gilles

De: "Raphaël Rigo" notifications@github.com À: "reHackable/scripts" scripts@noreply.github.com Cc: "Gilles Quéméner" quemener@lpccaen.in2p3.fr, "Author" author@noreply.github.com Envoyé: Vendredi 12 Février 2021 09:33:49 Objet: Re: [reHackable/scripts] repush.sh script stuck for ever (#34)

It's probably because the Web UI is disabled when the rM is disconnected. Can you post the output of bash -x repush.sh -r x.x.x.x file.pdf ?

— You are receiving this because you authored the thread. Reply to this email directly, [ https://github.com/reHackable/scripts/issues/34#issuecomment-778055590 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AAQU2CYWZXA4W7CA7ACO373S6TRW3ANCNFSM4XPBCBKQ | unsubscribe ] .

trou commented 3 years ago

As the script outputs: repush: Port 9000 is already used by a different process!, you have a leftover SSH session, kill it.

GBZH commented 3 years ago

So, I have killed the ssh (not the ssh-agent from the list of ps -u command) and reran your command. I was asked a first time for the password, but connection was refused, then I have entered it a second time and it worked (note however that it was correctly typed the first time).

~$ bash -x reMarkable/scripts/host/repush.sh -r xxx.xxx.x.xx wcs.pdf

Gilles

De: "Raphaël Rigo" notifications@github.com À: "reHackable/scripts" scripts@noreply.github.com Cc: "Gilles Quéméner" quemener@lpccaen.in2p3.fr, "Author" author@noreply.github.com Envoyé: Vendredi 12 Février 2021 09:52:21 Objet: Re: [reHackable/scripts] repush.sh script stuck for ever (#34)

As the script outputs: repush: Port 9000 is already used by a different process! , you have a leftover SSH session, kill it.

— You are receiving this because you authored the thread. Reply to this email directly, [ https://github.com/reHackable/scripts/issues/34#issuecomment-778064179 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AAQU2C37TRHLTTPPPODJ4ITS6TT4LANCNFSM4XPBCBKQ | unsubscribe ] .

trou commented 3 years ago

the script does not work without the cable