Hi,
I set up the sync server 1.5 according to the description in the Mozilla
documentation with a Apache 2.4 server in front. Firefox gives "500
Internal Server Error". Have anyone a clue what is going wrong?
Apache throw following errors:
[Sat Feb 13 17:22:51.746523 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] self.read(filename)
[Sat Feb 13 17:22:51.746527 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] File
"/home/fxcloud/syncserver/local/lib/python2.7/site-packages/backports/configparser/__init__.py",
line 699, in read
[Sat Feb 13 17:22:51.746534 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] self._read(fp, filename)
[Sat Feb 13 17:22:51.746538 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] File
"/home/fxcloud/syncserver/local/lib/python2.7/site-packages/konfig/__init__.py",
line 90, in _read
[Sat Feb 13 17:22:51.746544 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] ConfigParser._read(self, fp, filename)
[Sat Feb 13 17:22:51.746548 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] File
"/home/fxcloud/syncserver/local/lib/python2.7/site-packages/backports/configparser/__init__.py",
line 1037, in _read
[Sat Feb 13 17:22:51.746554 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] for lineno, line in enumerate(fp, start=1):
[Sat Feb 13 17:22:51.746558 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] File "/usr/lib/python2.7/encodings/ascii.py",
line 26, in decode
[Sat Feb 13 17:22:51.746565 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] return codecs.ascii_decode(input, self.errors)[0]
[Sat Feb 13 17:22:51.746577 2016] [wsgi:error] [pid 2165] [remote
192.168.178.20:63531] UnicodeDecodeError: 'ascii' codec can't decode
byte 0xe2 in position 973: ordinal not in range(128)
The syncserver.ini is like that:
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000
# workers = 2
# timeout = 60
[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://fxsync.markus.xa/
# This defines the database in which to store all server data.
# sqluri = sqlite:////home/fxcloud/syncserver.db
sqluri = pymysql://fxsync:[email protected]/fxsync
# This is a secret key used for signing authentication tokens.
# It should be long and randomly-generated.
# The following command will give a suitable value on *nix systems:
#
# head -c 20 /dev/urandom | sha1sum
#
# If not specified then the server will generate a temporary one at startup.
secret = my secret
# Set this to "false" to disable new-user signups on the server.
# Only request by existing accounts will be honoured.
# allow_new_users = false
# If you see errors about “client sent too long header line” in your
nginx logs, you may
# need to configure nginx to allow large client header buffers by adding
this to the nginx config
# forwarded_allow_ips = *
# Set this to "true" to work around a mismatch between public_url and
# the application URL as seen by python, which can happen in certain
reverse-
# proxy hosting setups. It will overwrite the WSGI environ dict with the
# details from public_url. This could have security implications if e.g.
# you tell the app that it's on HTTPS but it's really on HTTP, so it should
# only be used as a last resort and after careful checking of server config.
force_wsgi_environ = true
# Uncomment and edit the following to use a local BrowserID verifier
# rather than posting assertions to the mozilla-hosted verifier.
# Audiences should be set to your public_url without a trailing slash.
[browserid]
backend = tokenserver.verifiers.LocalVerifier
audiences = https://fxsync.markus.xa
The Apache config is like that:
<Directory /home/fxcloud/syncserver>
Require all granted
</Directory>
<VirtualHost *:443>
ServerName fxsync.markus.xa
DocumentRoot /home/fxcloud/syncserver
WSGIProcessGroup fxsync
WSGIDaemonProcess fxsync user=fxcloud group=fxcloud processes=2
threads=25
python-path=/home/fxcloud/syncserver/local/lib/python2.7/site-packages/
WSGIScriptAlias / /home/fxcloud/syncserver/syncserver.wsgi
WSGIPassAuthorization On
SSLEngine on
# SSLStrictSNIVHostCheck on
SSLCertificateFile /etc/ssl/localcerts/fxa_SAN.pem
SSLCertificateKeyFile /etc/ssl/localcerts/fxa_SAN.key
CustomLog /var/log/apache2/access_sync.log combined
ErrorLog /var/log/apache2/error_sync.log
LogLevel error
</VirtualHost>
Cheers
Markus
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev