dsnopek / anki-sync-server

A personal Anki sync server (so you can sync against your own server rather than AnkiWeb)
GNU Affero General Public License v3.0
744 stars 95 forks source link

change dir debug error #76

Open JiangLongLiu opened 6 years ago

JiangLongLiu commented 6 years ago

When I changed the directory from the original /home/anki/anki to /mnt/hgfs/ankiServer, then the client clicked the sync button and an error occurred.

root@ankiserver:/mnt/hgfs/AnkiServer# ankiserverctl.py debug production.ini Starting server in PID 11724. serving on http://192.168.1.105:27701

Exception happened during processing of request from ('192.168.1.175', 10990) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Paste-2.0.3-py2.7.egg/paste/httpserver.py", line 1085, in process_request_in_thread self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 652, in init self.handle() File "/usr/local/lib/python2.7/dist-packages/Paste-2.0.3-py2.7.egg/paste/httpserver.py", line 459, in handle BaseHTTPRequestHandler.handle(self) File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle self.handle_one_request() File "/usr/local/lib/python2.7/dist-packages/Paste-2.0.3-py2.7.egg/paste/httpserver.py", line 454, in handle_one_request self.wsgi_execute() File "/usr/local/lib/python2.7/dist-packages/Paste-2.0.3-py2.7.egg/paste/httpserver.py", line 304, in wsgi_execute self.wsgi_start_response) File "/usr/local/lib/python2.7/dist-packages/Paste-2.0.3-py2.7.egg/paste/translogger.py", line 69, in call return self.application(environ, replacement_start_response) File "/usr/local/lib/python2.7/dist-packages/Paste-2.0.3-py2.7.egg/paste/urlmap.py", line 216, in call return app(environ, start_response) File "build/bdist.linux-x86_64/egg/webob/dec.py", line 129, in call resp = self.call_func(req, *args, *kw) File "build/bdist.linux-x86_64/egg/webob/dec.py", line 193, in call_func return self.func(req, args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/AnkiServer-2.0.6-py2.7.egg/AnkiServer/apps/sync_app.py", line 501, in call session = self.session_manager.load(hkey, self.create_session) File "/usr/local/lib/python2.7/dist-packages/AnkiServer-2.0.6-py2.7.egg/AnkiServer/apps/sync_app.py", line 694, in load session = self.sessions[hkey] = session_factory(res[1], res[2]) File "/usr/local/lib/python2.7/dist-packages/AnkiServer-2.0.6-py2.7.egg/AnkiServer/apps/sync_app.py", line 409, in create_session self.setup_new_collection) File "/usr/local/lib/python2.7/dist-packages/AnkiServer-2.0.6-py2.7.egg/AnkiServer/apps/sync_app.py", line 293, in init os.mkdir(path)

OSError: [Errno 2] No such file or directory: '/home/anki/anki/collections/liujl'