You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I followed the instructions on the README.md and everything works fine except medias. There is no sync error on anki 2.1.26 but when I open the media log, I see this :
Wed Dec 2 21:19:34 2020: Media sync starting...
Wed Dec 2 21:19:34 2020: Please check your internet connection.
Error details: error sending request for url (): error trying to connect: dns error:
failed to lookup address information: Name or service not known
As previously stated, the cards are synced, only the medias are missing.
Here is my nginx reverse proxy :
server {
server_name <url>;
location / {
proxy_http_version 1.0;
proxy_pass http://localhost:27701/;
}
client_max_body_size 10M;
listen 443 ssl; # managed by Certbot
<ssl certificate via Certbot>
}
Edit : The problem seems to occur only with the desktop version (2.1.26), the media sync works with ankidroid (14.1)
The text was updated successfully, but these errors were encountered:
smartlitchi
changed the title
Medias don't sync on fresh anki-sync-server install
Medias don't sync with anki 2.1.26
Dec 3, 2020
After further investigation, the error seems to come from the __init__.py of the ankisyncd addon given in README.md. I followed the instructions here : tsudoko/anki-sync-server#63 and added this line aqt.mediasync.SYNC_BASE = "%s" + addr
import anki.sync, anki.hooks, aqt
addr = "http://127.0.0.1:27701/" # put your server address here
anki.sync.SYNC_BASE = "%s" + addr
aqt.mediasync.SYNC_BASE = "%s" + addr
def resetHostNum():
aqt.mw.pm.profile['hostNum'] = None
anki.hooks.addHook("profileLoaded", resetHostNum)
There is some progress in what I see in the Media Log but the issue is not fixed yet :
Thu Dec 3 17:22:30 2020: Media sync starting...
Thu Dec 3 17:22:30 2020: A network error occurred.
Error details: builder error: relative URL without a base
Hello, I followed the instructions on the README.md and everything works fine except medias. There is no sync error on anki 2.1.26 but when I open the media log, I see this :
As previously stated, the cards are synced, only the medias are missing.
Here is my nginx reverse proxy :
Edit : The problem seems to occur only with the desktop version (2.1.26), the media sync works with ankidroid (14.1)
The text was updated successfully, but these errors were encountered: