-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronization not working on Android #281
Comments
@Aeinot -- i bumped into this as well (using Fennec 89.1.1 from F-Droid). i updated the Custome sync server URL to match |
@khimaros thanks for the answer, but after testing again with a fresh Firefox install, nothing is synced. When I add bookmarks, credentials, or try to list open tabs on my other devices, nothing is synced and no requests reach Nginx. |
If you browse to |
Fresh sync server based on official docker. |
Hi, I am not sure if this config is correct but I am unable to sync too. |
I have exactly the same result. |
Like you, I was unable to synchronize Firefox on Android with my personal SyncServer (history, bookmarks...) |
The tab sharing feature doesn't seem to go through the sync server. I can send tabs to my phone, but no requests are sent to my server, neither from the computer nor from the phone. |
It does not, it uses the Account server directly. |
I had the same issue and the same environment. Firstly, I've found in logcat (it's stupid that there is no indication about it in GUI) that Android version, unlike desktop version, requires HTTPS for sync server. However, after switching to HTTPS there were no errors in logcat when I pushed "Sync now". I tried several Firefox versions from Google Play, from F-Droid: nothing, even no requests from phone to my Nginx server at all! So, I gave up and left my phone for several hours (custom field was filled with It's very strange and I can't explain such a behavior. |
Unfortunately doesn't work for me. |
I had a similar problem. Probably due to an update my Firefox app lost the URL of my sync server. After disconnecting and setting the URL again I was able to reconnect and it started to sync normally. |
Hello, I've the same issue. |
you'll need a server with tls 1.2 or newer, older ones are obsoleted, you can use certificate issued by let's encrypt |
This configuration change fixed it for me. Emphasis on https: SYNCSERVER_PUBLIC_URL: 'https://<server_domain>'
SYNCSERVER_FORCE_WSGI_ENVIRON: 'true' I guess the http part in their example config file is a bit misleading :) |
Hey, |
For Android Firefox 99.1.1 will work with the following:
For some reason it fails if you are using only TLS 1.3, also it fails if you are using self signed certificate, in the past it worked with self signed but you were supposed to add an exception, for some reason I couldn't make it to work with self-signed certificate. |
Thanks, I had already this configuration on my reverse proxy. |
Some times it behaves very strange on android and debug is useless. |
I think it does sync at arbitrary times in the background, but if you run sync and leave FF open in foreground for a while, it does sync with these settings. |
Thank you so much, I was ripping my hair off installing old firefox versions and doing literally everything possible. Swapping my sync server from http to https seems to have finally worked. It did take a little bit after linking my account, restarting the app, and clicking the Sync Now button before it arbitrarily decided 'hey its time to sync now' but it finally worked! |
Reading this, and following up on what TL;DR: Make sure the My sync server has always been behind a load balancer/reverse proxy which did the SSL termination (using a LE cert), but the backend connection to the sync server container was HTTP. Opening
Note that the
Then tell the sync container to trust the reverse proxy that set those headers by setting the |
Is it possible to do this on a server/local network without a domain? |
Older versions do not insist on TLS. I cannot understand why this has been changed for closed networks. At least it should have been left to the user. Self-signed certificates for internal network hosts only work if the CA is registered in Android. AFAIK you won't get an cert from Let's encrypt for my-host.local. Firefox for desktop does not insist on TLS. Syncs here with HTTP url. |
For local certificates it worked if you've opened the link and accepted the certificate, lately this doesn't appear to work anymore on android with the past firefox iterations. I've tried both old version and new syncstorage-rs which is a pain to set it up. Though desktop version works with both. |
I set up a self-hosted sync server with Docker. It is placed behind a Nginx reverse proxy, and TLS is configured. Synchronization works well between two computers, but synchronization with Firefox on Android does not work.
I have set the "Custom sync server" field to "https://my.domain.com/token/1.0/sync/1.5", and then I linked the phone to my account. No information is synchronized (bookmarks, open tabs, etc.), and I don't see any connection on my Nginx logs (while adding a bookmark from Firefox on Windows generates several connections to the server). The last synchronization time is always set to "Never".
I also tried the following URLs:
My version of Firefox Android is 89.1.1.
The text was updated successfully, but these errors were encountered: