ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.69k stars 2.24k forks source link

AnkiDroid not syncing #3284

Closed hssm closed 9 years ago

hssm commented 9 years ago

Originally reported on Google Code with ID 2388

What steps will reproduce the problem?
1.open anki droid; decks appear find
2.synch and get error message: SYNCH ERROR: Please use the latest AnkiDroid to continue
synching
3.

What is the expected output? What do you see instead?
I expect the synch to the web to work. It worked YESTERDAY. Today I get
error message: SYNCH ERROR: Please use the latest AnkiDroid to continue synching

Does it happen again every time you repeat the steps above? Or did it
happen only one time?
Every single time

What version of AnkiDroid are you using? (Decks list > menu > About > Look
at the title): Version 2.3
On what version of Android? (Home screen > menu > About phone > Android
version) Android 4.4.2

If it is a crash or "Force close" and you can reproduce it, the following
would help immensely: 1) Install the "SendLog" app, 2) Reproduce the crash,
3) Immediately after, launch SendLog, 4) Attach the resulting file to this
report. That will make the bug much easier to fix.

Please provide any additional information below.

Reported by jordanv@theellisschool.org on 2014-11-07 13:02:30

hssm commented 9 years ago
Same here.  At the same time, a similar error is happening on my desktop, so now I have
no way to sync with AnkiWeb.  (I'll be trying to set up my own server in the near future.
 What a disaster this is.)

Reported by dper81 on 2014-11-07 13:23:00

hssm commented 9 years ago
Just update to the latest version, v2.3.2

Reported by perceptualchaos2 on 2014-11-07 13:26:28

hssm commented 9 years ago
I tried to do that. I tried to download ANKIDROID to my phone, but the download told
me that ANKIDROID is already installed!!!

Reported by jordanv@theellisschool.org on 2014-11-07 13:28:05

hssm commented 9 years ago
If you can't use play you can get it here:
https://github.com/ankidroid/Anki-Android/releases/latest

Reported by perceptualchaos2 on 2014-11-07 13:28:21

hssm commented 9 years ago
Uninstall first if required

Reported by perceptualchaos2 on 2014-11-07 13:29:16

hssm commented 9 years ago
Thanks so much to comment #4.  I did finally find the proper version of Anki droid at
the github.com/ankidroid and I downloaded it successfully. Synching is working now.
Tank ou again

Reported by jordanv@theellisschool.org on 2014-11-07 14:23:30

hssm commented 9 years ago
Me as well, thanks!  Success with v2.3.2  The v2.4alpha1 release did *not* work for
me.

Reported by dper81 on 2014-11-07 14:29:45

hssm commented 9 years ago
what do you mean it didn't work? what happened exactly?

Reported by perceptualchaos2 on 2014-11-07 14:56:40

hssm commented 9 years ago
nevermind, just reproduced!

Reported by perceptualchaos2 on 2014-11-07 14:57:36

hssm commented 9 years ago
Who is responsible for pushing v2.3.2 to F-Droid or Google Play?

Reported by robert.pollak@mykolab.com on 2014-11-08 09:17:23

hssm commented 9 years ago
I currently have v2.3 from F-Droid, and I also see the sync error.

The GitHub download AnkiDroid-2.3.2.apk does not install on my Android 2.3.7 phone
- but strangely, neither does AnkiDroid2.3.apk from GitHub.

P.S. Does uninstalling/reinstalling v2.3 keep my data intact? Can I downgrade to v2.2.3
via F-Droid, or has the database structure changed?

Reported by robert.pollak@mykolab.com on 2014-11-08 09:35:31

hssm commented 9 years ago
Nicolas takes care of F-Droid but he's a bit busy at the moment... Installing from github
should work, have you enabled installation from unknown sources?

Reported by perceptualchaos2 on 2014-11-08 10:17:15

hssm commented 9 years ago
Uninstalling will keep all your flashcard data in-tact. 
Sync is only supported in 2.3.2 and 2.4alpha, so not sure why you'd want to downgrade
to 2.2.3 though

Reported by perceptualchaos2 on 2014-11-08 10:19:38

hssm commented 9 years ago
Yes, I have enabled "installation from unknown sources", since is necessary for using
F-Droid.

> Sync is only supported in 2.3.2
Ah, I did not know this. Sometimes downgrading fixes newly introduced errors - but
obviously not in this case :) 

Is the error caused by a server change? Which commit fixed it? It must be one on the
hotfix-2.3.1 branch, but it cannot be the 'fix long-standing bug in syncer.chunk()',
can it?

Reported by robert.pollak@mykolab.com on 2014-11-08 10:38:25

hssm commented 9 years ago
what happens exactly when you try install from github?

yes it's that commit... all previous AnkiDroid versions had the sync bug, but this
only came to light after the chunk size was recently decreased. Consequently Damien
has decided to block all clients before 2.3.2

Reported by perceptualchaos2 on 2014-11-08 10:47:57

hssm commented 9 years ago
I have made sure to have enough space, by first uninstalling Firefox, which is much
larger.

After confirming the access rights, I correctly saw "Installation ...", then I got
a green (!) checkmark next to the localized text of "Application not installed" like
e.g. on http://i.stack.imgur.com/y2qXr.png .

(Also, reinstalling Firefox afterwards went fine.)

Reported by robert.pollak@mykolab.com on 2014-11-08 13:43:19

hssm commented 9 years ago
What version of Android is that?

Reported by perceptualchaos2 on 2014-11-08 15:49:59

hssm commented 9 years ago
As mentioned, it's Android 2.3.7 - a CyanogenMod release.

Reported by robert.pollak@mykolab.com on 2014-11-08 17:02:53

hssm commented 9 years ago
Ok - I worked around my problem:

I saw that Google Play already provides v2.3.2. I could not directly update to this
version - probably because my version 2.3 was installed via F-Droid. But installing
this v2.3.2 worked after deinstalling v2.3 .

Reported by robert.pollak@mykolab.com on 2014-11-08 17:14:57

hssm commented 9 years ago
Anyone still having this problem?
If yes, please tell us where you dowloaded AnkiDroid from, thanks!

Reported by nicolas.raoul on 2015-01-27 05:26:57

hssm commented 9 years ago
This should no longer be a problem.

Reported by Houssam.Salem.Au on 2015-06-01 00:57:08