Hello,
 
I try to run my own Sync Server 1.5, so I followed these instructions:
https://docs.services.mozilla.com/howtos/run-sync-1.5.html

I build the sync server, installed the apache module and created the
VirtualHosts entry.
 
This is my apache entry:

<VirtualHost *:443>
  ServerName sync.bolvin.de
  UseCanonicalName On
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/sync_public.crt
  SSLCertificateKeyFile /etc/apache2/ssl/sync_privkey.pem
  SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem
  SSLCipherSuite HIGH
  SSLProtocol all -SSLv2

  ServerAdmin [email protected]

  DocumentRoot /var/www/ffsync
  WSGIProcessGroup sync
  WSGIDaemonProcess sync user=fred group=fred processes=2 threads=25
python-path=/var/www/ffsync/local/lib/python2.7/site-packages/
  WSGIPassAuthorization On
  WSGIScriptAlias / /var/www/ffsync/syncserver.wsgi
  <Directory /var/www/ffsync>
    Order deny,allow
    Allow from all
  </Directory>

  CustomLog /var/log/apache2/access_sync.log combined
  ErrorLog /var/log/apache2/error_sync.log
</VirtualHost>

If I change the WSGIProcessGroup to "foo" without changing it in
WSGIDaemonProcess, I get an error 500 while calling the page: No WSGI daemon
process called 'foo' has been configured: /var/www/ffsync/syncserver.wsgi.
Otherwise there is no error, so it seems the python module is running nice.

The confusing thing:
If I call https://sync.bolvin.de in the Browser, I get a simple "It works!" (but
not the apache style I think). By calling https://sync.bolvin.de/1.0/sync/1.5, I
get a 404 HTTP Status and the "0" in the browser.
I compared it with https://token.services.mozilla.com and it seems like it
doesn't work as expected.
 
This is the beginning of my syncserver.ini:
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[app:main]
use = egg:syncserver

[syncserver]
# This must be edited to point to the public URL of your server,
# i.e. the URL as seen by Firefox.
public_url = https://sync.bolvin.de

 
PS: In the error log I get messages like
[Fri Jan 30 09:56:22 2015] [error] INFO:mozsvc.metrics:{"code": 200,
"request_time": 0.0024847984313964844, "remoteAddressChain": ["193.84.178.5"],
"agent": "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:36.0) Gecko/20100101
Firefox/36.0", "path": "https://sync.bolvin.de/";, "method": "GET"}

The problem that a INFO message is in the error log looks like it's caused by
this issue https://github.com/mozilla-services/syncserver/issues/31, but in
general "it does something".

So I think the syncserver python process is running nice, but I don't get the
HTTP results I expected.
Do you know what I made wrong?
Did I forgot something, or do I have to do something undocumented?

Thanks for help!
Best regards,
 
Frédéric
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

Reply via email to