Getting Firefox Sync server running

Have been setting up Firefox Sync, following the instructions found at: https://docs.services.mozilla.com/howtos/run-sync-1.5.html

The instructions were pretty straight-forward, got it up and running in no time (even ran the tests to ensure everything was passing).

However, after reconfiguring the browser to point to the new Sync URL, nothing happened. (In the end it turned out I forgot the “/token/” part of the URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1032039)

Debugging Tips:

* By default if you run the server using “local/bin/pserve syncserver.ini” the server logs to console.

* The database the server saves to (by default) is “syncserver/syncserver.db”, which you can view using SQLite Browser.

* To manually start a Sync, you can go to “Tools” -> “Sync Now”

* To view the browser (client) sync logs, enter “about:sync-log” in the URL bar. You can turn on logging on successful sync by toggling the “services.sync.log.appender.file.logOnSuccess” configuration variable.

* At time of writing there’s a bug where the URL can be set back to the default in some instances: https://bugzilla.mozilla.org/show_bug.cgi?id=1003708

* You can modify the “services.sync.syncInterval” variable to make the browser attempt to sync more frequently (value is in milliseconds).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.