-
Notifications
You must be signed in to change notification settings - Fork 109
rmapi out of sync? (most probably cloud problem of remarkable) #187
Comments
Same issue here. I factory reset my Remarkable, and when resyncing, it got the latest modifications from just before I reset it. It seems like the cloud works fine for Remarkable devices at least. Edit: just use the USB-C web interface for the moment, it seems to work just fine. For backup-ing, maybe use SSH so you get the remarkable files instead of e.g. PDFs. |
It is as if the state of the cloud (as seen in rmapi), is totally different than what the remarkable device (and clients) can access/does. This includes files and folders:
So I'm pretty sure the cloud works for remarkable devices/applications (it was able to re-sync everything as it was before the reset after a factory reset + official Remarkable application syncs as it should). The cloud, as seen by rmapi is totally different though. As if stuck in time, but editable. Found out about the issue when trying to upload a PDF and the remarkable device wouldn't sync it, and then saw that moved files (from a couple of days ago) were still listed (inside of rmapi) as if not moved. I deleted the .config file for rmapi and put in a new one-time code but it didn't change anything. Some info that might be useful:
P.S. I also just downloaded the Remarkable Windows client (not rmapi) on a different machine to test, and it works: it has the new folder I've moved some stuff into (as well as other changes.) |
Yes, I've got exactly the same symptoms, down to the letter. I've also rebooted to windows (first time in two years!) just to try the official client, that works flawlessly. It is, as @TaiBa131 describes, a time-frozen but still editable version of the cloud state. @juruen: I'ld be happy to dig a bit around and search for errors, but I've never even looked at go. If you could give me a few pointers where to best inject some debug statements (e.g. dumping network messages) that would be great! |
Oh, additionally: I'm on the reMarkable software beta branch (2.8.0.98). Are you as well, @TaiBa131? This might be why it works for most but not for us? |
I'm using 2.8.0.98 on a remarkable 2, but I'm not enrolled in the remarkable beta program. |
I'm also on 2.8.098 on rm v1. It could be helpful if you could come up with a short list of actions that leaves the devices out of sync. For instance, I just tried:
For the record, I just tried the above and it worked as expected. |
it is more like @TaiBa131 described: Once it stops syncing, it's just completely frozen in time. Nothing you do is represented in Might I ask how the devicetoken is generated? Maybe, somehow, |
the token's validity is 12h iirc, so it gets regenerated quite often. and the result of: and
|
@juruen my theory is that they've added more storage instances and are distributing the clients in some way |
@ddvk: I've already answered on the I'm located in Graz, Austria and connected via UPC fiber. (repost of from the other thread) That is the traceroute:
Note that it changes a lot, occasionally 10 hops, sometimes 6. furthermore, curl results in: |
I could offer investigating the network traffic of the official reMarkable windows client. I have to run it in Would that help? I'm not tooo familiar with networks sniffing and that kind of stuff, so it would take some time. |
The traceroute is a deadend, it all goes to the google cloud. You can use mitm proxy or Fiddler on windows to inspect the traffic of the windows client. Fiddler being quite easy to use. So far I haven't seen anything different in the requests. The |
@ddvk I've now captured a whole full syncing process of the windows app via I can share with you the handshake of the windows app, but I would prefer to not upload it on github for obvious reasons. |
yes, dont post auth tokens. just check if there is any difference in the url for getting the docs. |
So the huge difference first: The official windows client seems to use Otherwise most of the stuff seems kinda fine. Except for the API difference o.O All the stuff for devicetoken etc ... I've could not make out a major difference. But I've just looked at it by hand, maybe I've missed something? |
Does anyone know an official apiv2-client? I could try the official android app, if it absolutely has to be, but I would have to start and android emulator for that. Which is no fun at all. |
Ok, I've now tried sniffing the the windows-client devicetoken and usertoken and placing it into the So my guess is: Under some circumstances, the v2-api-call to The windows app circumvents that by never calling for that
(I've censored it a little bit, even if it expires within a minute) By that method the cloud server tells the client which documents to request and the client downloads them, basically by replacing So yeah, for some strange reason some APIv2-calls to Would be someone where |
@flomlo thank you for taking the time to look into this. If I remember correctly I don't think we use the I'll be taking a look at this today. |
@juruen: Where did you find the documentation for the APIv2? Did you reverse-engineer some official app? Did you just guess? Or is it standard google-blob-storage API? It is really strange that it works for some and not for others. |
also can you post the |
latest findings: rm have 2 sync protocols now: XoApp 1.0 ans XoApp 1.5 some users have beein migrated to 1.5, thus they have the new scopes if 1.5 is used then the first request is: which returns the url: |
Hi, I login using email/password for I can post that here, just was not sure how "secret" this was. Will do so once I'm back home. Nice findings! I'm not sure if it is something in my power to change if I belong to a XoApp 1.0 or XoApp 1.5 server. I can try whining on the support, though. Maybe this is just an accident and they're not even aware. On the other hand: Is there a "heavy" syncing client which keeps a local copy already? Or do I have to write it myself? I think I kinda understood the protocol of the windows client. |
@flomlo With the scopes i meant in the authorization bearer jwt token. it a signed json, with a scopes property. ps: to get the json, you can decode it on https://jwt.io i'm sure there are offline parsers as well |
Hi, I've got : for the |
I'm not too deep into the whole cloud-computing-thingy: Do you think reMarkable is using a standard google API which we can look up? Or do you think it is their own custom brew? So would one need to reverse-engineer the whole API or can we just look it up? Even with the new API I'm experiencing one could extract the information formerly received by calling the |
i think they are using the standard google blob storage apinow |
I have the same issue with rmapi and rmapy. Are there any news yet? |
someone has to reverse engineer the new api and implement it in rmapi. my account is not migrated yet |
Hi, I'm a tad busy in the moment. I'll grant access to full uncensored logs (and if the trust is there, probably even more) to anyone interested (and capable) of reverse-engineering an updated version. I pledge to help as well as I can, just not confident that this will be enough. |
I started working on it for rmapy subutux/rmapy#26 |
I also had issues with this, and my account was on sync protocol 1.5. I could not get my device to sync even after
Finally I created a new account under a different email. This account is on protocol 1.0 and everything is working fine for now. Possible causes:
I wonder if any of these triggered the issue... |
I also had this issue. Nothing syncs between device-cloud, even after factory reset. rM2 IOS/OSX apps do not sync either. When I contacted with rM customer service they told me to replace the device but if I open a new account under different email, everything works perfectly. I told them to check sync API, still waiting the response.. |
I also had this problem, and ended up just using wine to run the official wine desktop client on linux, pending a fix. Steps: 1.Install wine |
Ok, is there any update since? |
thanks to subutux/rmapy#25 I managed to add the new api to ddvk/rmfakecloud@433d2e0
|
i've made some progress, with the api, upload/delete seem to work, but it's still in an early fase and I don't have a migrate account to test (so far only against the simulator) so if someone wants to play with it ( make backups first) |
A follow-up on this. We just merged @ddvk's awesome work to add experimental support for the new sync protocol. Please take a look at https://github.com/juruen/rmapi#warning-experimental-support-for-the-new-sync-protocol |
Can we reopen one of these issues? The new sync functionality doesn't appear to work for me as of 0.0.17 — files still appear on the rmapi tree but not on the device itself. |
It would be helpful to have this issue pinned (this way it will be more noticeable than the warning in the readme, honestly). |
@darthoctopus what doesn't work? do you see a warning that rmapi is using sync1.5? |
I do see the warning, and I understand that the functionality isn't quite there yet. I mean only that perhaps one of the GitHub issues should be left open, to be closed only when the new sync is fully supported. What happens for me is that despite the warning, the behaviour is otherwise the same as with the older version on the new sync API: rmapi push uploads PDF files, and they appear in the tree from rmapi ls, but don't ever get pushed to the device or the app. I don't get any error messages. Thanks for all the work! |
@darthoctopus if you create a note on the tablet, do you see it later in rmapi? |
Yes, new notebooks do appear in rmapi after being created on the device |
Hi,
I've been experiencing heavy out-of-sync between the rm-cloud (accessed only via rmapi) and my remarkable 2. Has anyone else been noticing it? My troubles began at 2021-07-05 at around 11:00.
I'm aware that most probably rmapi is not at fault, but something else in the system (not that remarkable as a company is remarkably quick at acknowleding such problems). But I'ld like to inquire here just in case.
Problem summary: rmapi shows me a state of the cloud which is out of sync with the device. File transfer in both directions via cloud does not work. Sending files by mail does work. File transfer via USB-C does work.
I've relinked the device to the cloud and reinstalled rmapi as well as removing rmapi.cfg and thus relinking rmapi. Nothing changed.
Will remove this ticket once rmapi as an error source is ruled out.
The text was updated successfully, but these errors were encountered: