Search Criteria
Package Details: anki-sync-server-git r425.ef41934-1
Git Clone URL: | https://aur.archlinux.org/anki-sync-server-git.git (read-only, click to copy) |
---|---|
Package Base: | anki-sync-server-git |
Description: | A sync server for anki using a forked version from github.com/ankicommunity (orig:dsnopek) |
Upstream URL: | https://github.com/ankicommunity/anki-sync-server |
Keywords: | anki |
Licenses: | GPL |
Conflicts: | anki-sync-server |
Provides: | anki-sync-server |
Submitter: | None |
Maintainer: | s7hoang |
Last Packager: | s7hoang |
Votes: | 0 |
Popularity: | 0.000000 |
First Submitted: | 2016-03-13 20:03 (UTC) |
Last Updated: | 2022-10-12 00:47 (UTC) |
Dependencies (5)
- nginx (nginx-nchan-gitAUR, nginx-nchanAUR, nginx-rtmp-sergey-gitAUR, nginx-mainline-boringsslAUR, nginx-quic-openssl-hgAUR, nginx-mainline-pushstreamAUR, tengineAUR, tengine-extraAUR, freenginx-mainline-hgAUR, angieAUR, nginx-quic-libresslAUR, freenginx-mainlineAUR, nginx-mainline)
- python (python37AUR, python311AUR, python310AUR)
- python-pip
- git (git-gitAUR) (make)
- portaudio (make)
Latest Comments
1 2 Next › Last »
berturion commented on 2023-11-26 22:07 (UTC)
Thank you s7hoang for your quick answer. I was not aware of this built-in server implementation. I will try this then.
s7hoang commented on 2023-11-26 17:34 (UTC) (edited on 2023-11-26 19:19 (UTC) by s7hoang)
Yeah, it's been awhile since I updated this.
There's actually not much point in using this because the actual anki team has made their own self-hosted server:
https://docs.ankiweb.net/sync-server.html
I tried it out and it works just fine with the android app. No need for nginx either; looks like the android app may have relaxed the requirement for HTTPS. So, you can just use HTTP. That means no need for certs either.
When I have time I'll either remove this package entirely or make it work in the same way as it does now (runs as a separate user with a startup script).
berturion commented on 2023-11-26 16:57 (UTC)
Hi, I am sorry, I am not an expert in python things. I just tried to install this package because I use the Anki Android app and wanted to synchronize my cards and ran into several issues I am sure someone know already.
During my first attempt, I encounterd this message:
So I created the file
/opt/anki-sync-server/.config/pip/pip.conf
and put this:I re-installed the package and I had another issue :
So I installed the package
rust
to my system. After my 3rd attempt to install anki server, I obtained these errors :The package seems to be installed though, but when I run it, it fails with:
I am stuck at his point.
mattski commented on 2022-10-11 06:43 (UTC)
FYI - the INSTALL file is failing the integrity check. I have worked around manually but it would be good if the package was updated.
s7hoang commented on 2022-07-11 16:09 (UTC) (edited on 2022-07-12 17:37 (UTC) by s7hoang)
It looks like the repository has changed some stuff around. So my instructions are probably out of date.
It looks like "ankisyncctl.py" doesn't exist in the default branch anymore. It does however still exist in the "main" branch though.
I tried this only up to getting the server to work (but so far so good) on a fresh copy of manjaro. The steps to getting it to work are:
1. In PKGBUILD change:
git+https://github.com/ankicommunity/anki-sync-server.git
to
git+https://github.com/ankicommunity/anki-sync-server.git#branch=main
2. manually install the python packages using:
Before you do that though, the version on "protobuf" is too new and throws errors (4.21.2). The one on my machine is "3.19.3" that gets the server to work.
3. copy "ankisyncctl.py" to the root:
It should generate some files:
4. it should work from there
I'll update the package over the weekend.
You can check the output of the servers by running them in the foreground:
then in two terminals:
and
make sure
daemon off;
is set innginx.conf
.If they're working right, you should actually be able to visit them from a regular browser on ports 27701 (nginx) and 27702 (ankisyncd). For example while on the same network, my test setup is on 192.168.1.165. From my windows computer I visit http://192.168.1.165:27701 (and 27702) and I get
You'll see corresponding log stuff on the foregrounded processes server side. Also, you actually don't need
nginx
forhttp
so you can try disabling that for troubleshooting; for mobile use you needhttps
though.I'll try again, but the only problem I found from rejigging my setup to use the test setup was that I needed to change the anki client's plugin from
https
tohttp
, and the ip address.cable commented on 2022-06-29 00:35 (UTC)
I appreciate the work, but I can't get this to work at all. The manual says that running "sudo -u anki-sync-server ./ankisyncctl.py adduser <username>" inside "/opt/anki-sync-server" should create a username and allow to set a password, but "ankisyncctl.py" isn't in that directory. After copying it from the "_cli" directory to the main directory, running it still doesn't work because the python libraries need to be found. After making the python path accessible, and creating a username and password, and copying the init.py file to the appropriate location, anki still complains of an incorrect username/password pair. Don't know how to get this working.
Any advice would be appreciated.
s7hoang commented on 2022-02-05 01:35 (UTC)
added, thanks!
clarfonthey commented on 2022-01-30 23:15 (UTC) (edited on 2022-02-03 04:32 (UTC) by clarfonthey)
Even though the files are included in the git repo, you should still include them in the
source
array since tools likemkchrootpkg
will only copy over the listed sources and not every file.At least for me, I need to patch those in for it to work.
Here's the full patch I made in case anyone wants it / the maintainer wants to incorporate it:
s7hoang commented on 2022-01-23 07:32 (UTC) (edited on 2022-01-23 07:32 (UTC) by s7hoang)
rats! I was just finishing up work on it and hoping no one would've noticed :P
yeah during testing at that time I was using 27701-27703 for testing the http, https and anki servers and forgot to update those files.
but, I made some changes to this package and it now has:
2 server files (http & https) : https is needed for AnkiDroid in particular
a manpage with instructions for setting up the https server
the ports are now properly set to 27701 for the client plugins :P
give it a spin!
goffi commented on 2022-01-19 19:59 (UTC)
Hello,
I could not do any sync from Anki desktop (
anki-bin
package) to Anki Sync Server installed with this package, while download was working fine. The issue is the same as https://github.com/ankicommunity/anki-sync-server/issues/108 and I found that the__init__.py
file of the plugin was incorrectly using 27702 (Anki Sync Server port directly) instead of 27701 (NGINX proxy), see my comment at https://github.com/ankicommunity/anki-sync-server/issues/108#issuecomment-1016817755. After changing the port for 27701, it's working fine.Thanks for maintaining this package, once this little issue fixed, it's working well.
1 2 Next › Last »