sync issue with Android

296 views
Skip to first unread message

David

unread,
Sep 1, 2017, 6:22:00 AM9/1/17
to mnemosyne-proj-users

When I try syncing my Android to my Windows server, on the Windows side it prompts:
"Sync failed, restoring from backup. The next sync will need to be a full sync."

On the Android side it just says syncing until it finally says: " Timeout when trying to connect to server!".

What is meant by 'restoring from backup'? Which 'backup' (I certainly never made one).
Who is restoring from 'backup'? The Android client (which would make sense) or the Windows server
(which makes sense, bcs. the prompt appears on Windows after all). How do I do a full sync?

I tried uninstalling and reinstalling Mnemosyne on Android under the assumption, that starting with
a reinstalled Android app, it would initialize with a blank deck, which then would constitute a 'full sync' (whatever the hell
that is). But when I uninstall and reinstall Mnemosyne on Android it gives me back the old state of the deck
and it leads to the same syncing behaviour.
Where is the deck data stored on Android, so that I can delete it all and reinitialise with a blank deck
and would that even solve the problem?
Message has been deleted

David

unread,
Sep 1, 2017, 6:24:03 AM9/1/17
to mnemosyne-proj-users
I am on Mnemosyne 2.5 on Windows 10 and have the latest Mnemosyne app version on Android Nougat.

Peter Bienstman

unread,
Sep 1, 2017, 9:54:44 AM9/1/17
to mnemosyne-...@googlegroups.com
Hi,

To delete your database, you can erase /sdcard/Mnemosyne.

However, you real problem seems to be that you cannot connect to your server. Double check the IP, port, username and password, make sure the Windows server is running and not blocked by a firewall, router, etc…

BTW, I will reword "Sync failed, restoring from backup. The next sync will need to be a full sync." To "Sync failed, restoring from backup. The next sync will be a full sync.", to make it sure no extra action is required on the user’s part.

Cheers,

Peter

------------------------
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mailto:mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/9de6b68b-f12e-4738-b9b9-ec5744c81fcf%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

David

unread,
Sep 2, 2017, 8:02:13 AM9/2/17
to mnemosyne-proj-users
Thanks for the info. I'll double-check everything.
And yes, that's a start with the wording.
The 'restoring' part, I still find problematic, though.
It's not restoring anything.
No new state is actually loaded, because the Android app already
had an (old) snapshot of the database available to the user, which I guess you could call the back-up.
It doesn't get restored, it is just left unchanged.
And having the message pop up on the Windows server induces panic, bcs. now the user
thinks, that somehow his perfectly fine server database gets overwritten
from a nonsensical, ill-defined, fall-from-the-sky 'backup'.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:mnemosyne-proj-users+unsub...@googlegroups.com.

David

unread,
Sep 3, 2017, 9:49:08 AM9/3/17
to mnemosyne-proj-users
When I delete the last character of the password, that I used, it shows me 'wrong username or password',
on Android and nothing on Windows. Therefore my login data was correct.
Whilst I cannot completely exclude Firewall issues, this has worked before, so I do not think them likely.

...

Sync worked immediately after uninstalling and deleting the Mnemosyne folder.
Meaning, the chances, that it was a Firewall issue are close to zero.
I hope I wont loose any more progress to this bug, when I'm relying on the Anroid now.

Peter Bienstman

unread,
Sep 4, 2017, 7:01:47 AM9/4/17
to mnemosyne-...@googlegroups.com

Hi,

 

So, do I read your email correctly that after starting from scratch with an empty data folder, everything is solved now? In that case, it could have a been a temporary connection drop in your wifi e.g..

 

With respect to the ‘restoring from backup’ message, Mnemosyne actually does restore from a backup taken just before you started the sync, to make sure a partial sync does not bring you into an incorrect state. But I see that this message has caused you to panic unnecessarily, so I think I’ll just remove that part.

 

Cheers,

 

Peter

--

You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/5040a0b6-5e84-4980-b264-811a2746e484%40googlegroups.com.

David

unread,
Sep 6, 2017, 5:53:09 PM9/6/17
to mnemosyne-proj-users
Hello,
yes, you read that correctly (in the mnemosyne-proj-user-group, not in an email, though). No, I tried it several different times, getting the same error consistently before. The error is different, if it's not on the same wifi ("Socket error: [Errno 113] No route to host"). If the sync started correctly and the wifi dropped happened in the process, it had to have happened at least three times in a very narrow window (the sync is super-fast after all, when it works). Extremely unlikely. I'm fairly sure, that emptying the data folder was necessary. Reinstalling the app alone wasn't sufficient.

From an user perspective, if you start with state A, do action B and get a prompt telling you 'restoring to old backup now/action C' now and you end up back at state A again, it would be indeed better to hear action C described as 'This doesn't work for some reason, therefore I wont do action B.', even if under the hood there is indeed a backup restored on Windows, that's all I wanted to say. I probably should have said 'puzzled', instead of 'panicked' (on a worse day perhaps). When I hear 'backup restored', I automatically assume, I have to deal with restoring some lost state (or at least checking, if I lost something, bcs. backups aren't usually perfect).
Thanks for all the help and for working on this,
it's really appreciated!
David


On Monday, September 4, 2017 at 1:01:47 PM UTC+2, Peter Bienstman wrote:

Hi,

 

So, do I read your email correctly that after starting from scratch with an empty data folder, everything is solved now? In that case, it could have a been a temporary connection drop in your wifi e.g..

 

With respect to the ‘restoring from backup’ message, Mnemosyne actually does restore from a backup taken just before you started the sync, to make sure a partial sync does not bring you into an incorrect state. But I see that this message has caused you to panic unnecessarily, so I think I’ll just remove that part.

 

Cheers,

 

Peter

 

From: 'David' via mnemosyne-proj-users [mailto:mnemosyne-...@googlegroups.com]
Sent: 03 September 2017 15:49
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
Subject: Re: [mnemosyne-proj-users] sync issue with Android

 

When I delete the last character of the password, that I used, it shows me 'wrong username or password',
on Android and nothing on Windows. Therefore my login data was correct.
Whilst I cannot completely exclude Firewall issues, this has worked before, so I do not think them likely.

...

Sync worked immediately after uninstalling and deleting the Mnemosyne folder.
Meaning, the chances, that it was a Firewall issue are close to zero.
I hope I wont loose any more progress to this bug, when I'm relying on the Anroid now.

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+unsub...@googlegroups.com.
To post to this group, send email to mnemosyne...@googlegroups.com.

Peter Bienstman

unread,
Sep 7, 2017, 2:40:09 AM9/7/17
to mnemosyne-...@googlegroups.com

Hi,

 

OK, if it’s solved now, there’s nothing more we can do for the moment. Should it reoccur, I can prepare a special debug version to try and help diagnose better where the problem lies.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.

 

--

You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/5e0e5a2b-7eb8-4108-ab24-9f68c0927fba%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages