Can't start the server with Debian sid

138 views
Skip to first unread message

Douglas Perkins

unread,
Nov 7, 2014, 7:48:21 AM11/7/14
to anki-syn...@googlegroups.com
I posted this to GitHub, but since that appears to be the secondary source of communication, here is the same information...

I have a box running Debian sid. I make a new directory, install everything as documented, and I can't run the server. Help?

$ mkdir anki
$ virtualenv anki
$ cd anki
$ source bin/activate
(anki)$ cd anki-sync-server
(anki)$ cp example.ini production.ini
(anki)$ ./ankiserverctl.py debug
Traceback (most recent call last):
  File "./ankiserverctl.py", line 169, in <module>
    main()
  File "./ankiserverctl.py", line 151, in main
    startsrv(sys.argv[2], True)
  File "./ankiserverctl.py", line 42, in startsrv
    subprocess.call( ["paster", "serve", configpath], shell=False)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

OK, maybe I should add a user first. That appears to work.

./ankiserverctl.py adduser joe2
Enter password for joe2: 
Password: 

The data and password files and directories look OK, as far as I can see, but if I try running the server, the above error shows up just like before.

./ankiserverctl.py debug
Traceback (most recent call last):
  File "./ankiserverctl.py", line 169, in <module>
    main()
  File "./ankiserverctl.py", line 151, in main
    startsrv(sys.argv[2], True)
  File "./ankiserverctl.py", line 42, in startsrv
    subprocess.call( ["paster", "serve", configpath], shell=False)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Help?  The same error occurs if I use start instead of debug.

Bert Besser

unread,
Aug 8, 2017, 12:23:03 PM8/8/17
to Anki Sync Server
A little late maybe, but I'm having the same problem. Did you find out what the problem was?

entb...@gmail.com

unread,
Mar 29, 2018, 2:32:16 AM3/29/18
to Anki Sync Server
I had the same problem on Debian stretch.
The anki-sync-server was installed using pip in my case.

I gave ankiserverctl.py the absolute path to the paster script and it works fine now.

Attached is the ankiserverctl.py with changes on lines 33 (you'll have to change that), 44 and 48.

Cheers
ankiserverctl.py

entb...@gmail.com

unread,
Mar 29, 2018, 1:49:12 PM3/29/18
to Anki Sync Server
Update:

AnkiServer installed in a virtualenv using pip works without any modifications for me.
Reply all
Reply to author
Forward
0 new messages