mozilla-services / syncserver

Run-Your-Own Firefox Sync Server
Mozilla Public License 2.0
1.87k stars 145 forks source link

401 with Firefox 83.0 #263

Open sysoppl opened 3 years ago

sysoppl commented 3 years ago

Hello, I just deployed my docker container, and with some research I was able to sync with my Android phone ( https://example.com/token/ ), however I'm unable to sync with my firefox desktop (83.0).

Docker logs says: INFO:mozsvc.metrics:{"code": 401, "request_time": 0.00031304359436035156, "remoteAddressChain": ["1.2.3.4", "172.17.0.1"], "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0", "path": "https://example.com/token/1.0/sync/1.5", "method": "GET"}

Also, there was crash or something inside, here is the log: sync_logs.txt - I removed some ip's and url's

I tried with http://example.com/token/1.0/sync/1.5 http://example.com/token/token/1.0/sync/1.5 http://example.com/token/


After setting these two to false and few relogins I was finally able to sync... 91498485-d6cccc00-e88d-11ea-8d1f-9a465725428d

rfk commented 3 years ago

After setting these two to false

Just want to let you know, those prefs will eventually be removed from Firefox, so we can't count on them for a long-term solution here.

When you have a chance, please try setting those prefs back to False, reproducing the 401 error, and then following these instructions to capture more detailed client-side logs about what might be going wrong?

sysoppl commented 3 years ago

Well, I set them back to true, but no 401 in logs for now.. I will try with fresh firefox or it will pop 401 soon, I'll see in few days

virgoparna commented 3 years ago

Those settings do not exists in Firefox for Android since last august. Probably reason, why I cannot get sync to work even with https.

sysoppl commented 3 years ago

@virgoparna For Android version I'm using https://URL/token/ without changing any settings and it is working fine

virgoparna commented 3 years ago

Got Android version to sync by new install. Old sync server was probably too old.

MichiFr commented 3 years ago

@virgoparna For Android version I'm using https://URL/token/ without changing any settings and it is working fine

So you did this with the current server which source is available here? w/o adding any SSL certs or whatsoever? You even did not change the URI to https://URL/token/1.0/sync/1.5 with or without trailing slash?

sysoppl commented 3 years ago

I'm using 3 months old version with Lets Encrypt SSL. It is just https://URL/token/ without any /1.0/sync etc.