I updated to the current version of firefox-syncstorage-git (0.13.6.r11.gef0fbfb9-1
). Service is not starting due to
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ApiError { kind: Db(DbError { kind: Mysql(MysqlError { kind: DieselConnection(BadConnection("Access denied for user 'root'@'localhost'")), status: 500, backtrace: 0: <unknown>
My configuration at /etc/firefox-syncstorage.toml
is the same as before the update, which was running. Also no alteration in the database whatsoever. The server tries to use root@localhost
even though it is defined otherwise in my configuration.
Pinned Comments
jewelux commented on 2021-12-12 19:15 (UTC) (edited on 2023-01-12 18:59 (UTC) by jewelux)
Database
To setup a fresh MySQL DB and user:
(mysql -u root)
:Config
Open file
/etc/firefox-syncstorage.toml
to set your own parameters. Here is an example.Firefox
In
abount:config
change tokenserver url to your service url.Run service
systemctl start firefox-syncstorage.service
Add node record
Currently it is necessary to add your node (incl. service pattern) to tokenserver database.
Your can add the node record by the following sql. Don't forget to replace the example url
https://mydomain.tld
with your service url.Troubleshooting
Trouble with Apache as reverse proxy
If you use TLS you should modify the request header and set X-Forwarded-Proto to https. Here is an example of a virtual host file:
Sync in Firefox Mobile Nightly is broken
Firefox Mobile client expected X-Timestamp in response header.
Here is an example to set X-Timestamp header in apache virtual host file:
The issue is fixed and the workaround should not be necessary anymore.