Closed nroach44 closed 10 years ago
This may indicate that mod_wsgi is using the system python rather than the virtualenv built at ./local
. Is your WSGIDaemonProcess
option using the correct python-path
?
I believe so (assuing this is the python-path you mean)
WSGIDaemonProcess sync user=ffsync group=ffsync processes=2 threads=25 python-path=/haven/data/htdocs/ffsync/local/lib/python2.7/site-packages/
That folder does exist and it does seem to contain the correct things. It doesn't contain zope.component, but it does have zope.interface and .deprecation. I'm not familiar with python so this may be fine.
Does the server start correctly if you run make serve
?
You could also try ./local/bin/pip install zope.component
to install it into the local virtualenv; if that helps I'll just stick it in the install script by default
It works when I browse to the URL and shows the "it works" but sync fails with the client side error
1415760933428 Sync.BrowserIDManager ERROR Non-authentication error in _fetchTokenForUser: Client error.
1415760933432 Sync.BrowserIDManager ERROR Background fetch for key bundle failed: TokenServerClientNetworkError({"error":{}})
1415760933433 Sync.BrowserIDManager ERROR Could not authenticate: TokenServerClientNetworkError({"error":{}})
And the only output on the server's console is
Starting server in PID 636.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
INFO:mozsvc.metrics:{"code": 200, "request_time": 0.0031418800354003906, "remoteAddressChain": ["192.168.0.62"], "agent": "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0", "path": "http://ffsync.haven:5000/", "method": "GET"}
INFO:mozsvc.metrics:{"code": 404, "request_time": 0.003993988037109375, "remoteAddressChain": ["192.168.0.62"], "agent": "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0", "path": "http://ffsync.haven:5000/favicon.ico", "method": "GET"}
INFO:mozsvc.metrics:{"code": 404, "request_time": 0.0010960102081298828, "remoteAddressChain": ["192.168.0.62"], "agent": "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0", "path": "http://ffsync.haven:5000/favicon.ico", "method": "GET"}
As I can't see the python error log, this seems to be the same errors as through wsgi.
I'll check what you just wrote in a minute.
./local/bin/pip install zope.component
Definitely seemed to do the trick. I'll test with wsgi in a minute.
Whoops, didn't mean to close the issue, but I does work in wsgi now, so it's all good.
I finally revisited this and pushed the zope.component
change in https://github.com/mozilla-services/syncserver/commit/5d44e8152fa9e53f7357b166addb6322803e10d1. Thanks again for the report.
Running on Debian Wheezy x64 with python-zope.component 3.10 installed.