ddvk / rmfakecloud

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

Service and certs get deleted after restart or shutdown (Paper Pro) #322

Closed jdk-21 closed 1 month ago

jdk-21 commented 1 month ago

I wanted to try out this project for my new Paper Pro. I followed the documentation to setup and I only had to build the proxy myself due to the arm64 architecture. The syncing worked pretty well until I rebooted the device. After that the service was gone and my cert for the reverse proxy too. It seems that the remarkable has a cleanup job that deletes everything that isn't from remarkable itself (outside of /home/root). Is this the same on the remarkable 2?

Eeems commented 1 month ago

This probably should be on the proxy repository and not here.

No the rM1/2 do not do this.

jdk-21 commented 1 month ago

I think I found the root cause. It's because /etc is mounted as an overlay filesystem.

# mount | grep /etc
overlay on /etc type overlay (rw,relatime,lowerdir=/etc,upperdir=/var/volatile/etc,workdir=/var/volatile/.etc-work)
/dev/mapper/home-encrypted-disk on /etc/dropbear type ext4 (rw,relatime)
overlay on /mnt/lowerdir type overlay (rw,relatime,lowerdir=/etc,upperdir=/var/volatile/etc,workdir=/var/volatile/.etc-work)

But I don't know how one would bypass this. I will open an issue on the prox repo.