ddvk / rmfakecloud

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

Files uploaded through web UI don't sync #294

Closed nunofgs closed 3 months ago

nunofgs commented 3 months ago

Hi there. Thanks for the project!

I'm on the latest version 3.10.2.2063 and uploaded a pdf file through the web UI. No errors on rmfakecloud docker logs.

But from journalctl -aeu xochitl I see:

{"message":{"attributes":{"auth0UserID":"nunofgs","event":"DocAdded","id":"347e79d0-b066-4044-8d4a-8f5cc529b62a","sourceDeviceDesc":"some-client","sourceDeviceID":"web","type":"DocumentType","version":"1","vissibleName":"Check Consent (1)"},"messageId":"6e5c5c46-a9ba-403c-90d5-12aeb212a2e4","message_id":"6e5c5c46-a9ba-403c-90d5-12aeb212a2e4","messageid":"6e5c5c46-a9ba-403c-90d5-12aeb212a2e4","publishTime":"2024-03-14T11:12:18.037128429Z","publish_time":"2024-03-14T11:12:18.037128429Z"},"subscription":"dummy-subscription"}

Also, the sync appears to work on the device and when I make changes to a document I see these logs on rmfakecloud:

remarkable_1          | time="2024-03-14T11:11:36Z" level=info msg="[auth-middleware] UserId: nunofgs deviceId: RM110-252-35306 newSync: true"
remarkable_1          | time="2024-03-14T11:11:36Z" level=info msg="Write: /data/users/nunofgs/sync/b35e5d7b3caa52b940a06b4cf2b3d620763ca2a52cd7043c2feafa54f423b267"
remarkable_1          | time="2024-03-14T11:11:36Z" level=info msg="[GIN] 2024/03/14 - 11:11:36 | 200 |    4.227274ms |     172.18.0.12 | PUT      \"/sync/v3/files/b35e5d7b3caa52b940a06b4cf2b3d620763ca2a52cd7043c2feafa54f423b267\""
remarkable_1          | time="2024-03-14T11:11:36Z" level=info msg="[auth-middleware] UserId: nunofgs deviceId: RM110-252-35306 newSync: true"
remarkable_1          | time="2024-03-14T11:11:36Z" level=info msg="Write: /data/users/nunofgs/sync/root"
remarkable_1          | time="2024-03-14T11:11:36Z" level=info msg="[GIN] 2024/03/14 - 11:11:36 | 200 |     511.782µs |     172.18.0.12 | PUT      \"/sync/v3/root\""

However, my web UI doesn't show any documents at all. (which is why I was trying to upload one, to see what it did).

nunofgs commented 3 months ago

This is fixed in v0.0.18! Documents are now showing up in the web ui and syncing properly in both directions. Thanks 🎉