Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently set up the new version of the Firefox Sync Server written in Python. I used the tutorial which can be found here:
After I completed the steps in the tutorial, I have configured the ini files accordingly to point to my MySQL Server, installed MySql-Python bindings and tested everything using the built-in Paster webserver.

No problem so far, Paster works fine, has no errors in my config and I can see in the MySQL Database that all tables (I think that this are really all tables ;) ) have been created.

Now I wanted to run my FF Sync Server behind Apache2 using mod_wsgi as supposed in the tutorial. Therefore I changed my VirtualHost config for my domain to look like this:

<VirtualHost ip:80>
  <Directory /home/user/domains/subdomain/public_html/weave>
    Order deny,allow
    Allow from all

  DocumentRoot /home/user/domains/subdomain/public_html/weave
  WSGIProcessGroup sync
  WSGIDaemonProcess sync user=sync group=sync processes=2 threads=25
  WSGIPassAuthorization On
  WSGIScriptAlias / /home/user/domains/subdomain/public_html/weave/sync.wsgi
  CustomLog /var/log/apache2/ combined
  ErrorLog  /var/log/apache2/
  Loglevel info

The files are located under /home/... because I use virtualmin and webmin for configuration and these are the default paths for html files. Apache runs as the user who owns this home directory so access restrictions should not be a problem (I also tried setting chmod 777 for the complete home path).

My problem now is, that I only get 500 error codes when FF Sync tries to connect to the server. As I can see in the access_log file, FF Sync tries to access and even if I try for myself in FF, only a 500 error is returned. The error_log does not show anything ..

Any suggestions what could go wrong or what I can try to figure this out? If further information are needed, I can post the config files for sync.wsgi, development.ini and sync.conf as well.

Best Regards, Tobias

share|improve this question

For me, this problem was caused by the following:

When you first start weave via Paster (as root), it creates the file /tmp/sync-error.log with rw permissions for root and only r for everybody else. When trying to run under mod_wsgi, it tries to write to this file as user "sync", which fails.

I had to delete /tmp/sync-error.log to resolve this issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.