Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The notebooks in the UI are shown as having a size of 0 bytes #349

Open
WoodenMaiden opened this issue Jan 15, 2025 · 1 comment
Open

The notebooks in the UI are shown as having a size of 0 bytes #349

WoodenMaiden opened this issue Jan 15, 2025 · 1 comment

Comments

@WoodenMaiden
Copy link

I cannot see nor download my notebooks from the web UI, because the files appear as if they had no bytes.

image

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

@doebi
Copy link
Contributor

doebi commented Jan 29, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants