Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Invalid sync server specified. Please check the preferences.

Open ImenaOfelia opened this issue 5 months ago • 12 comments

Checked for duplicates?

  • [x] This issue is not a duplicate

Does it also happen in the desktop version?

  • [x] This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

I installed Anki 25.07.3, configured it, created decks, synced it with AnkiWeb, installed AnkiDroid 2.21.1, gave it all permisions, loged in to AnkiWeb, and typed the sync button at the top right corner

Image

Expected behaviour

The notification above shouldn't appear at all

Debug info

AnkiDroid Version = 2.21.1 (5dcdec8a8891153d8480a8ece2cdc44327cb2ff9)  
Backend Version = 0.1.54-anki25.02.7 (25.02.7 98253c81cb3c4d203acec48d6eae6b488bf484d0)  
Android Version = 15 (SDK 35)  
ProductFlavor = play  
Device Info = Xiaomi | POCO | duchamp | duchamp_global | 2311DRK48G | mt6897  
Webview User Agent = Mozilla/5.0 (Linux; Android 15; 2311DRK48G Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.157 Mobile Safari/537.36  
ACRA UUID = dd827a30-fe34-457a-98fb-9205c4715613  
FSRS = 2.0.3 (Enabled: true)  
Crash Reports Enabled = true

(Optional) Anything else you want to share?

I get the notification whenever I click the sync button

Research

  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

ImenaOfelia avatar Jul 21 '25 20:07 ImenaOfelia

For some reason, I don't get the notification any longer

ImenaOfelia avatar Jul 21 '25 20:07 ImenaOfelia

Still happens to me.

AnkiDroid Version = 2.21.1 (5dcdec8a8891153d8480a8ece2cdc44327cb2ff9)  
Backend Version = 0.1.54-anki25.02.7 (25.02.7 98253c81cb3c4d203acec48d6eae6b488bf484d0)  
Android Version = 14 (SDK 34)  
ProductFlavor = full  
Device Info = realme | realme | RMX1851 | RMX1851 | RMX1851 | qcom  
Webview User Agent = Mozilla/5.0 (Linux; Android 14; RMX1851 Build/AP1A.240505.005.B1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.67 Mobile Safari/537.36  
ACRA UUID = 3b99bc69-32be-46fa-b0d4-3a037757819a  
FSRS = 2.0.3 (Enabled: true)  
Crash Reports Enabled = true

KAGEYAM4 avatar Jul 22 '25 02:07 KAGEYAM4

@BrayanDSO FYI

david-allison avatar Jul 22 '25 08:07 david-allison

Any workaround in the meantime? Not able to use ankidroid at all because sync from ankidroid to server dosent work at all.

KAGEYAM4 avatar Jul 30 '25 16:07 KAGEYAM4

@KAGEYAM4 what version of AnkiDroid are you using?

david-allison avatar Jul 30 '25 17:07 david-allison

@KAGEYAM4 what version of AnkiDroid are you using?

Github release

AnkiDroid Version = 2.22.2 (44bf67dc264fa0a99d44e84ed518e3a4dd8b0367)  
Backend Version = 0.1.59-anki25.07.4 (25.07.4 e511d63b7ef57e7d7e81612a9905172b871d18df)  
Android Version = 14 (SDK 34)  
ProductFlavor = full  
Device Info = realme | realme | RMX1851 | RMX1851 | RMX1851 | qcom  
Webview User Agent = Mozilla/5.0 (Linux; Android 14; RMX1851 Build/AP1A.240505.005.B1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/138.0.7204.168 Mobile Safari/537.36  
ACRA UUID = bbfa6b0d-0aca-4d43-973d-12eeac694401  
FSRS = 4.1.1 (Enabled: true)  
Crash Reports Enabled = true

KAGEYAM4 avatar Jul 30 '25 18:07 KAGEYAM4

The last fix we did will be in the next release. Please tell us if it fixes your issue after you upgrade

BrayanDSO avatar Jul 30 '25 19:07 BrayanDSO

@BrayanDSO The bug is fixed but i am still getting the above notification generated whenever i perform sync.

KAGEYAM4 avatar Aug 03 '25 03:08 KAGEYAM4

I also got the notification after I had logged in and performed the first sync and keep on getting it whenever I click the sync button. It seems that everything else works correctly, though.

I stopped getting it when I removed Ankidroid from my RAM memory and opened it again

Image

Emiwande avatar Sep 10 '25 20:09 Emiwande

I've been getting this same notification and having a lot of my media files not be synced at all. Ankidroid worked perfectly before, but I got a new phone and now have this notification ("invalid sync server specified. Please check the preferences") pop up whenever I try to sync, and the files do not load.

AnkiDroid Version = 2.22.3 (4f2ec681da36b8307a865f05192498b8425adf0f)
Backend Version = 0.1.60-anki25.07.5 (25.07.5 7172b2d26684c7ef9d10e249bd43dc5bf73ae00c)
Android Version = 16 (SDK 36)
ProductFlavor = play
Device Info = Google | google | tegu | tegu | Pixel 9a | tegu
Webview User Agent = Mozilla/5.0 (Linux; Android 16; Pixel 9a Build/BP3A.251005.004.B1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/140.0.7339.207 Mobile Safari/537.36
ACRA UUID = ebf64d0a-d4fa-4705-bacc-093b58e3718b
FSRS = 4.1.1 (Enabled: true)
Crash Reports Enabled = true

benjbussert avatar Oct 21 '25 01:10 benjbussert

I ran into this error as well after logging in on a new phone. The following workaround made syncing media files succeed again:

  • Settings > Sync > Custom sync server > Enable the toggle and set "Sync url" to some URL (e.g. http://localhost:8080)
  • Go back to apply the setting, sync will fail
  • Settings > Sync > Custom sync server > Disable the toggle

Crazywater avatar Nov 15 '25 12:11 Crazywater

I've seen this with a 'one way sync' on a new device, but can't replicate it.

david-allison avatar Nov 20 '25 13:11 david-allison

Downgraded to 2.22.3, tried to synchronize, and get that error

PavelAmialiushka avatar Dec 11 '25 21:12 PavelAmialiushka

How did you downgrade? Uninstalling and reinstalling?


I'd like to confirm whether this still occurs for anyone on 2.23, or it's fixed for good

david-allison avatar Dec 11 '25 22:12 david-allison

How did you downgrade? Uninstalling and reinstalling?

Yes, exactly. Unistalled play version, and installed an .apk from here. A newly installed version showed some decks from old times (like years ago) So I started syncing with AnkiWeb.
And after selecting "rewrite Ankidroid collection" option, I got all the active decks, and a message above. But looks like eventually it downloaded all media files. So I believe this message is misleading

PavelAmialiushka avatar Dec 12 '25 10:12 PavelAmialiushka