The notebooks in the UI are shown as having a size of 0 bytes
I cannot see nor download my notebooks from the web UI, because the files appear as if they had no bytes.
However, when I log into the stored files they are far from empty.
$ docker run -ti -v "<my docker volume mounted in /data>:/inspect" alpine ls -lh /inspect/users/yann/sync -hl
total 35M
-rw-r--r-- 1 root root 410.3K Jan 15 17:40 007205a392441860703b8887213a9deb33f61d190f34480babe71b0269b24425
-rw-r--r-- 1 root root 415.9K Jan 11 15:33 0135b004ab43c2f76ef60d4161c08040b9fb9732a7370a9d68705709b48996b9
-rw-r--r-- 1 root root 594.2K Jan 11 15:33 01e60bc0fc742da93242ef579add96f4d49e9cf57792818b486df5ca6fcc8791
-rw-r--r-- 1 root root 154.6K Jan 11 15:33 02131f5c66448933a7466a9b3a67bae633a26805bdca834ad295346eccaf19c3
-rw-r--r-- 1 root root 267 Jan 11 15:33 03039b07491944c7845d06f93f2a821999bb991d2b5add3c46945068a00bd253
-rw-r--r-- 1 root root 85.8K Jan 11 15:33 0587c52e26ce46c0dfdcb7872368243ba8abb127bfcadca0b75fce9ad9d6aa8b
-rw-r--r-- 1 root root 2.1K Jan 11 15:33 05dba4a214b9f5ee840d526df68e736d2e0d4b820bdb05eb93d4f7799e173c46
....
-rw-r--r-- 1 root root 3.3K Jan 15 17:32 fd7d237498f675ae91fd39132bc4f4a0e2ccf5131871a4f0c44af1ac467dbcc6
-rw-r--r-- 1 root root 476 Jan 15 16:30 ff64b5844491787449f46c1ba5eb7b06708e885c47f37449d967a46e9641d7b8
-rw-r--r-- 1 root root 3.6K Jan 15 16:18 ffff5cfb983e5d3af9f9af1f814a2544bce9b93458b0b585c88aa8a3b352110a
-rw-r--r-- 1 root root 64 Jan 15 17:40 root
However when I Try to read a notebook this error keeps popping up
time="2025-01-15T17:58:42Z" level=info msg="[ui-authmiddleware] User from token: yann"
time="2025-01-15T17:58:42Z" level=info msg="exporting 33c3074b-2f4c-4761-9909-234df026c257"
time="2025-01-15T17:58:42Z" level=info msg="cached tree loaded: /data/users/yann/.tree"
time="2025-01-15T17:58:42Z" level=error msg="the document has no pages"
time="2025-01-15T17:58:42Z" level=info msg="[GIN] 2025/01/15 - 17:58:42 | 200 | 6.200166ms | 172.18.0.6 | GET \"/ui/api/documents/33c3074b-2f4c-4761-9909-234df026c257\""
I am using a rm tablet with software version 3.16.2.3 and rmfakecloud 0.0.23
Hi Yann, thanks for the report. You are right this behavior is a bit misleading.
As the original author of the current UI I can tell you that there is nothing wrong with your notebooks or the UI. The API actually returns "size": 0 for all the notebooks.
This is apparently unfinished by the maintainer and might be caused by the notebooks being stored in a remarkable-specific file format which can not directly be compared with a file size. I should have left it out and not be showing the wrong information from the API, now that I reconcile. Probably I had hopes that this would be fixed in the API one day.
I actually also thought about rendering the page count instead for notebooks, but this would have required an additional API call for each notebook, as the information is not sent in the list action.
Anyway, the "0 bytes" is not an indicator for an error. If you experience problems with viewing or downloading your notebooks, you'd need to provide further information.
I have a similar issue. Xochitl version 3.3.2.1666 (I believe the latest release is 3.17), using the latest docker image for rmfakecloud running on nixos.
PDFs seem to render and download fine /sometimes/, but I can neither view nor download any special files (e.g. notebooks, quick sheets, etc.) through the rmfakecloud web ui.
I tried nixpkg's 0.0.18 build of rmfakecloud to see if that would make a difference, and it didn't.
An excerpt from the log in debug mode for the nixos build:
Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=info msg="[GIN] 2025/02/21 - 21:53:23 | 200 | 2.436532ms | 127.0.0.1 | GET \"/pdf.worker.js\"" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=info msg="[ui-authmiddleware] User from token: woof" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=info msg="exporting e6c0efae-6a8b-43df-a404-2a86c2b0b215" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=info msg="cached tree loaded: /var/lib/rmfakecloud/users/woof/.tree" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="Fullpath: /var/lib/rmfakecloud/users/woof/sync/root" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="got root 630707eb0b2434a04737b892b232969bd3d5480cf42f8fb54810c336371fd7162 <nil>" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="Fullpath: /var/lib/rmfakecloud/users/woof/sync/0fe8c80625f195b753928a02d678d467a51d3d2c37e8774d126da92d3dc98b22" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="Fullpath: /var/lib/rmfakecloud/users/woof/sync/304b564390c6ebc2c720ad62c1f5353146460349ef2b45e48cf9f5e3ae3e54e7" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="adding page e021d3bf-54cd-4a5d-81fd-6838c18abcaa" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="page afad990da3ea819677c38082e3435b61e106cd34af7adffd0c1baf29c1d0e48d" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=debug msg="Fullpath: /var/lib/rmfakecloud/users/woof/sync/afad990da3ea819677c38082e3435b61e106cd34af7adffd0c1baf29c1d0e48d" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=error msg="Unknown header" Feb 21 21:53:23 cottontail rmfakecloud-start[365639]: time="2025-02-21T21:53:23-08:00" level=info msg="[GIN] 2025/02/21 - 21:53:23 | 500 | 12.769181ms | 127.0.0.1 | GET \"/ui/api/documents/e6c0efae-6a8b-43df-a404-2a86c2b0b215\""
I seem to get the "Unknown header" message when I try to view a file through the ui that doesn't work, but this isn't consistent. For some special files, I get "the document has no pages", even though the document certainly has pages. I know for certain, though, that I cannot download or access any special files. Pdfs and epubs are a little bit more inconsistent. Strange because I didn't initially have this issue, but it's hard to say what's changed from that instance of rmfakecloud to this one.
My first thought is that perhaps there's a difference in format between Xochitl 2 and 3? But that wouldn't explain why some epubs and pdfs don't work. My second thought is that maybe rmfakecloud isn't completely synchronizing files? But I'm not sure how to investigate that.
@piafferish #255 is why you can't download notebooks.