Thursday, 22 August 2013

mozilla sync server and mysql auth

mozilla sync server and mysql auth

Recently I updated my debian squeeze to wheezy. Unfortunately my firefox
sync server (weave) stopped working. I saved the config files and
downloaded the new version via hg. I already fixed some errors but I'm not
able to solve the last problem. My sync.conf:

[storage]
backend = syncstorage.storage.sql.SQLStorage
sqluri = mysql://user:password@localhost:port/user
standard_collections = false
use_quota = true
quota_size = 50120
pool_size = 100
pool_recycle = 3600
create_tables = true

[auth]
backend = services.user.sql.SQLUser
sqluri = mysql://user:password@localhost:port/user
pool_size = 100
pool_recycle = 3600
create_tables = true

[nodes]
fallback_node = https://domain.com/sync/

[captcha]
use = true
public_key = thekey
private_key = thekey
use_ssl = true

[smtp]
host = localhost
port = 25
sender = weave@domain.com

[cef]
use = true
file = syslog
vendor = mozilla
version = 0
device_version = 1.3
product = weave

[reset_codes]
backend = services.resetcodes.rc_sql.ResetCodeSQL
sqluri = mysql://user:password@localhost:port/user
create_tables = true
My apache2 configuration:

WSGIDaemonProcess sync user=ffsync group=ffsync processes=2 threads=25
WSGIScriptAlias /sync /opt/moz-sync-server/sync.wsgi
WSGIPassAuthorization On
WSGIProcessGroup sync
The server starts with bin/paste serve development.ini without errors, but
via mod_wsgi the following messages are in error.log:

[Thu Aug 22 13:05:29 2013] [error] [client ip-address] File
"/opt/moz-sync-server/deps/server-core/services/pluginreg.py", line 108,
in load_and_configure
[Thu Aug 22 13:05:29 2013] [error] [client ip-address] backend_name =
params[cls_param]
[Thu Aug 22 13:05:29 2013] [error] [client ip-address] KeyError: 'backend'
The sync server is very important because I have lots of bookmarks.
Thanks for help!

No comments:

Post a Comment