ddvk / rmfakecloud

host your own cloud for the remarkable
GNU Affero General Public License v3.0
751 stars 61 forks source link

TLS error with automagic #287

Open giovi321 opened 8 months ago

giovi321 commented 8 months ago

Software version 3.9.3.1986 When I run the automagic script I get the following error, what can I do?

reMarkable: ~/ sh -c "$(wget https://raw.githubusercontent.com/ddvk/rmfakecloud/master/scripts/device/automagic.sh -O-)"

Connecting to raw.githubusercontent.com (185.199.108.133:443)

wget: note: TLS certificate validation not implemented

writing to stdout

-                    100% |************************************************************************************************************************************************************|   275  0:00:00 ETA

written to stdout

Getting the installer...

Connecting to github.com (140.82.121.4:443)

wget: note: TLS certificate validation not implemented

wget: TLS error from peer (alert code 80): 80

wget: error getting response: Connection reset by peer
giovi321 commented 8 months ago

Ok, I managed to upload the installer.sh to the device via scp but now I get the following error:

reMarkable: /home/ ./installer.sh install

Extracting embedded binary...

Failed to stop proxy.service: Unit proxy.service not loaded.

gunzip: invalid magic
mintar commented 8 months ago

I have the same software version (3.9.3.1986) and get the same errors as in your first comment.

However, downloading the installer, copying it to the tablet and running it worked for me:

on the host PC

$ wget https://github.com/ddvk/rmfakecloud-proxy/releases/download/v0.0.4/installer.sh

$ md5sum installer.sh                         
2eb17bb53531082acb4f59b5d1d98e4e  installer.sh

$ scp installer.sh remarkable:

on the remarkable

reMarkable: ~/ chmod +x installer.sh
reMarkable: ~/ ./installer.sh install http://192.168.178.45:3000
Extracting embedded binary...
Failed to stop proxy.service: Unit proxy.service not loaded.
~/rmfakecloud ~
Generating CA key and crt...
Generating private key...
Generating pub key...
writing RSA key
Generating csr and crt...
Certificate request self-signature ok
subject=C = AA, ST = QQ, L = JJ, O = the culture, CN = *.appspot.com
Generation complete!
Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Setting cloud sync to: http://192.168.178.45:3000
Created symlink /etc/systemd/system/multi-user.target.wants/proxy.service → /etc/systemd/system/proxy.service.
Patching /etc/hosts
Stoping xochitl..
Fixing sync status...
Starting xochitl...
~

Maybe your installer.sh is corrupt and you need to download it again? The gunzip: invalid magic sounds a bit like that.

mintar commented 8 months ago

Ah, I think I get it now.

You probably tried to use this file directly: https://github.com/ddvk/rmfakecloud-proxy/blob/master/scripts/installer.sh

However, that source file doesn't contain the generated binary. That's why you need to use this one:

https://github.com/ddvk/rmfakecloud-proxy/releases/download/v0.0.4/installer.sh


Anyway, the original problem still exists: automagic.sh fails because of the TLS error.

Also see: ddvk/rmfakecloud-proxy#11

Slicc98 commented 7 months ago

Having the same problem. I'm using Win11. I thought the problem was because I was using power shell but I switch to CMS and still no joy. Can anyone give me a stupid proof explanation?