Supervisor config

90 views
Skip to first unread message

jim...@gmail.com

unread,
Aug 15, 2016, 11:41:21 PM8/15/16
to Anki Sync Server
I'm fairly new to linux & python, but I have finally managed to get AnkiServer-2.0.6 running on my raspberry pi 3 with Ubuntu 16.04. I ended up installing by downloading the source from pypi and extracting it to /usr/lib/python2.7/dist-packages/AnkiServer-2.0.6/ and then running 'python setup.py install'

Now I would like to configure supervisor but I'm not sure how the /etc/supervisor/conf.d/anki-server.conf should look.

This is my anki-server.conf:
[program:anki-server]
; The command used to execute the Anki Server. If you setup a virtualenv like described
; in the README.md, then be sure to point to the "paster" command inside of it! All files
; are relative to the "directory" variable given below
command=/usr/local/lib/paster serve production.ini
; This is the directory to execute the Anki Server from. All files will be relative to this
; directory. This includes arguments to the "command" above and in the configuration files.
directory=/usr/lib/python2.7/dist-packages/AnkiServer-2.0.6/
; This is the user the Anki Server will run as. It should have permission to read and write
; the Anki collections referred to in the configuration file, but, for security reasons it
; shouldn't be "root"!
user=jim
autostart=true
autorestart=true
redirect_stderr=true
; Sometimes necessary if Anki is complaining about a UTF-8 locale. Make sure
; that the local you pick is actually installed on your system.
;environment=LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8,LC_LANG=en_US.UTF-8

When I run 'sudo supervisorctl reload' I get:
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228
 

I followed the github directions up to this point. I suspect I have something wrong in the command= line, but I just don't know what I'm doing and could use some help. Thanks!!

Jim
Reply all
Reply to author
Forward
0 new messages