-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support for /sync/v4 #311
Comments
rmfakecloud doesn't have any v4 routes yet, so yes, all the new v4 routes would need to be added to routes.go As for if there needs to be a new method for them, that depends on if the API itself has changed for that call or not. From the readme:
|
Can we expect the v4 routes to work in the same way as v3 ? |
FWIW I had tried to copy the v3 routes to v4 and all I can say is sync still is unhappy (root was the same so that was a fair attempt, but if it's really the same it would just keep using the v3 endpoint, I assume the v4 one returns more informations) I don't have an account on the official cloud to take traces here so didn't try anything else; sending notes via mail works and I assume I can still send files over usb if I really need to so didn't press this further. |
Are you on 3.13.1? I just made the upgrade and with just the new route |
Hmm, the 'check sync' option fails with something similar to what you've done and I don't see new files when uploading with rmapi so I'm surprised it works for you; I'll check again when I have a moment. |
Found some time before bed -- upgraded to 0.0.19 (which contains #312) and can confirm it's still broken for me, but then again it's possibly something local to my device -- I upgraded from 3.0 (!) and after upgrade some files re-appeared that I had deleted (fairly old, pretty sure they weren't just in trash), and the device might just considers it has been unsync'ed or something.
I tried creating a new user and it gets a 404 error:
I tried removing the .tree file (after backing up ...) and sync appears to work again, except the phantom files don't appear in the cloud, so I better delete them again from the remarkable... Anyway, sorry for the noise; I'm still not convinced they'd go out of their way to create a v4 endpoint if it's identical to v3 but it could be something for their own convenience on the backend side so I'll pretend I never saw this and happily use the fake cloud. Thanks! |
Sure, they didn't make a v4 for nothing. The caveat is to play with the official route to identify the differences. One notable difference seems to be at the beginning of the account setup, as observed from your test when no sync has been done before. The 404 error you encountered was expected in v3, but since checking that behavior requires a new official cloud account, it's quite difficult to verify what is expected for v4. To move forward, perhaps the v4 route behaves like our v3 did in the past. Reverting 98c7da8 might help, or we might need to create an empty index and return it. Regarding archived files, I experience the same issue. The fakecloud doesn't handle them properly yet; it works as a side effect. However, it doesn't stop the sync process. As for the phantom files, it could be related to https://ddvk.github.io/rmfakecloud/usage/diff-sync/#deal-with-file-lost? |
Oh, this is great, thanks @nemunaire ! |
When the tablet send an archive request, the fakecloud returns OK, but doesn't perform any action under the hood. |
Right, ok, got it. |
RM Software is 3.13.1.2
rmfakecloud version 0.0.18
Setup: rmfakecloud running behind nginx reverse proxy; DNS is handled by resolver rather than modifying /etc/hosts on the tablet
My sync is failing 100% of the time after upgrading the tablet to 3.13.1.2. It failed with rmfakecloud v0.0.17, and upgrading to v0.0.18 did not help.
Packet capture reveals the following exchange. Could this be preventing sync?
The client, xochitl, closes the TCP connection immediately after acknowledging this response. I don't see anything in the xochitl debug logs that gives any clues, but it seemed suspicious to me. Do we need a new syncGetRootV4?
The text was updated successfully, but these errors were encountered: