Friday, December 22, 2023
support@conference.yunohost.org
December
Mon Tue Wed Thu Fri Sat Sun
        1
2 3
4
5 6
7 8
9
10
11 12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 29
30
31
             

[09:05:53] <lapineige> ```
Port 587 is not reachable from the outside.

- Exposing this port is needed for email features (service postfix)\
```

Can someone explain to me what's the issue with that port being unreachable ?
[09:06:20] <@err404:matrix.numericore.com> if you don't use emails, it is not an issue
[09:06:43] <lapineige> I use it only to be informed by my server
[13:44:36] <Azu> > ```
> Port 587 is not reachable from the outside.
>
> - Exposing this port is needed for email features (service postfix)\
> ```
>
> Can someone explain to me what's the issue with that port being unreachable ?

if you're hosting at home,most residential ISPs block it. If youre only using it for notifications,you should be able to open the IMAP port and sign in to get those. Brevo will give you 300 mails a month for free if you need to send to non-local addresses,say a gmail or hotmail,and can be used as a Yunohost SMTP Relay
[16:32:38] <lapineige> But I'm receiving some emails, telling that the mail could not be sent ^^
[17:00:23] <Dante> Hi all

I'm trying to configure the Firefox syncstorage-rs, I've successfully installed it in my homeserver but I cannot make it work, from Firefox Desktop I see the request being done properly but I get this error `GET fail 401 https://domain.tld/1.5/4/info/collections`. Any clues? 🙂
[17:00:47] <Dante> (domain is configured properly, I've just changed it to post it here)
[17:01:20] <Dante> `Sync.Service WARN 401: login failed.`
[17:04:02] <Dante> ```
1703263490018 Sync.LogManager DEBUG Flushing file log
1703263490022 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1703263490022 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1703263490022 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1703263490023 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1703263490027 Sync.LogManager DEBUG Log cleanup threshold time: 1702399490027
1703263490028 Sync.LogManager DEBUG Done deleting files.
1703263491657 Sync.Engine.Tabs.Tracker DEBUG Detected a tab change, but conditions aren't met for a quick write - bumping score
1703263491688 Sync.Engine.Tabs.Tracker DEBUG Detected a tab change, but conditions aren't met for a quick write or a score bump
1703263491743 Sync.Engine.Tabs.Tracker DEBUG Detected a tab change, but conditions aren't met for a quick write or a score bump
1703263492162 Sync.RemoteTabs INFO Generating tab list with filter
1703263492164 Sync.RemoteTabs INFO Final tab list has 0 clients with 0 tabs.
1703263697231 Sync.Engine.Tabs.Tracker DEBUG Detected a tab change, but conditions aren't met for a quick write - bumping score
1703264071088 Sync.Engine.Tabs.Tracker DEBUG Detected a tab change, but conditions aren't met for a quick write or a score bump
1703264072586 Sync.Service DEBUG In sync: should login.
1703264072586 Sync.Service INFO User logged in successfully - verifying login.
1703264072587 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile
1703264072587 FirefoxAccounts DEBUG getOAuthToken enter
1703264072587 FirefoxAccounts TRACE getCachedToken returning cached token
1703264072587 FirefoxAccounts DEBUG getOAuthToken returning a cached token
1703264072587 Sync.SyncAuthManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys
1703264072587 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile
1703264072588 Sync.Status DEBUG Status.login: error.login.reason.network => success.status_ok
1703264072588 Sync.Status DEBUG Status.service: error.login.failed => error.login.failed
1703264072588 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok
1703264072863 Services.Common.RESTRequest DEBUG GET https://profile.accounts.firefox.com/v1/profile 304
1703264073599 Sync.Resource DEBUG GET fail 401 https://domain.tld/1.5/4/info/collections
1703264073599 Sync.Resource WARN GET request to https://domain.tld/1.5/4/info/collections failed with status 401
1703264073599 Sync.Service WARN 401: login failed.
1703264073599 Sync.SyncAuthManager DEBUG _findCluster has a pre-existing clusterURL, so fetching a new token token
1703264073599 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1703264073599 Sync.SyncAuthManager INFO Getting sync key
1703264073600 Sync.SyncAuthManager INFO Getting a sync token from: https://domain.tld/1.0/sync/1.5
1703264073600 Sync.SyncAuthManager DEBUG Getting a token using OAuth
1703264073600 FirefoxAccounts DEBUG getOAuthToken enter
1703264073600 FirefoxAccounts TRACE getCachedToken returning cached token
1703264073600 FirefoxAccounts DEBUG getOAuthToken returning a cached token
1703264073600 Services.Common.TokenServerClient DEBUG Beginning OAuth token exchange: https://domain.tld/1.0/sync/1.5
1703264073600 Services.Common.RESTRequest DEBUG GET request to https://domain.tld/1.0/sync/1.5
1703264074199 Services.Common.RESTRequest DEBUG GET https://domain.tld/1.0/sync/1.5 200
1703264074199 Services.Common.TokenServerClient DEBUG Got token response: 200
1703264074199 Services.Common.TokenServerClient DEBUG Successful token response
1703264074199 Sync.Status DEBUG Status.login: success.status_ok => success.login
1703264074199 Sync.Status DEBUG Status.service: error.login.failed => success.status_ok
1703264074199 Sync.SyncAuthManager DEBUG _findCluster returning https://domain.tld/1.5/4/
1703264074199 Sync.SyncAuthManager DEBUG Cluster value = https://domain.tld/1.5/4/
1703264074199 Sync.Status DEBUG Status.login: success.login => error.login.reason.network
1703264074199 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed
1703264074200 Sync.ErrorHandler ERROR Sync encountered a login error
1703264074200 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score.
1703264074200 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. (why=schedule)
1703264074201 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
1703264074201 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: error.login.reason.network(resource://services-sync/service.sys.mjs:1038:15) JS Stack trace: onNotify@service.sys.mjs:1038:15
1703264074201 Sync.Service DEBUG Not syncing: login returned false.
1703264074201 FirefoxAccounts TRACE not checking freshness of profile as it remains recent
```
[17:11:02] <Azu> Wait,the rs varient is on the app catalog now?
[17:21:54] <Dante> yep 🙂 it works fine, takes a while to compile and install tho
[19:38:51] <qqqq12> 12345
[19:58:57] <Dante> so after reinstall it worked but Firefox Android still doesn't work :(
[20:02:14] <Mateusz Szymański> > <@thardev:matrix.org> so after reinstall it worked but Firefox Android still doesn't work :(

TBH I was never able to determine why it fails on Android, I'm open to suggestions/improvements
[20:02:46] <Mateusz Szymański> when it comes to desktop typically it's a matter of logging out, shutting Firefox down, starting again and logging in
[20:03:06] <Mateusz Szymański> you can also try increasing server verbosity to see WHY it fails (didn't give me a clue though)
[20:04:16] <qqqq12> Azu: 12345
[20:08:45] <Azu> > <@thardev:matrix.org> yep 🙂 it works fine, takes a while to compile and install tho

i can live with that,whats the RAM use like?
[20:10:42] <qqqq12> Dante, ahh@*/h$%# Mateusz Mateusz Mateusz Szymański Szymański Szymański ateusz Szymański, Dante:
[20:13:59] <qqqq12> Azu, 1113:
[20:14:48] <qqqq12> > when it comes to desktop typically it's a matter of logging out, shutting Firefox down, starting again and logging in
> you can also try increasing server verbosity to see WHY it fails (didn't give me a clue though)

[20:18:48] <Mateusz Szymański> > <@admin:loliimoutolove.com> i can live with that,whats the RAM use like?

~3% on 2GB system
[20:22:35] <Azu> > <@orhtej2:matrix.org> ~3% on 2GB system

thats not bad at all! I dont know much about syncserver,what ports does it use? I generally route things through CF,as my domain also has services that are public,so everything on that domain MUST use cloudflare
[20:23:41] <qqqq12> Azu:
[20:24:38] <Azu> qqqq12 your messages arent rendering correctly in Nheko. If you wish to communicate with me,please turn off any special formatting and try again
[20:34:57] <Azu> Update:_ all I see is Azu: on my fluffychat too
[20:42:37] <Mateusz Szymański> > <@admin:loliimoutolove.com> thats not bad at all! I dont know much about syncserver,what ports does it use? I generally route things through CF,as my domain also has services that are public,so everything on that domain MUST use cloudflare

I believe it's plain HTTPS (so 443)
[22:54:41] <Azu> > <@orhtej2:matrix.org> I believe it's plain HTTPS (so 443)

Good,means the free tier will work for CF,thank you!
[22:55:00] <Dante> Ok, so after a lot of pain 🥲 I found out how to make it work (at least in Mull Android Browser for now). Pretty annoying, but when you do all the steps described [here](https://thesmarthomejourney.com/2023/03/18/self-hosting-firefox-sync/) you have to respect the order strictly, it would be as follows:

1 - Install syncstorage-rs in Yunohost
2 - Go to Mull Browser -> Settings -> About Mull -> tap 5 times in Mull logo
3 - Go back to Settings -> Account --> you should see a new option "Sync Debug" (super unintiutive) 😣
4- Select "Custom Sync server" and write there your endpoint, it should be "https://yourdomain.tld/1.0/sync/1.5 WITHOUT the token part you see in all the other tutorials
5 - Exit Mull completely, reopen and then follow the steps of "Connect a device" to your Firefox account
6 - After a successful auth it should work, enjoy 😄

Keep in mind that if you make a typo on the "Custom Sync server" setting or you do the steps in a different order it won't probaly work. So if that is the case, what I did is reset Mull in Android (Open Mull in app list and "Clear all data" from Android Settings), also make sure you have logged out any session related to the failed attempt in https://accounts.firefox.com/settings
[22:55:11] <Dante> Ok, so after a lot of pain 🥲 I found out how to make it work (at least in Mull Android Browser for now). Pretty annoying, but when you do all the steps described [here](https://thesmarthomejourney.com/2023/03/18/self-hosting-firefox-sync/) you have to respect the order strictly, it would be as follows:

1 - Install syncstorage-rs in Yunohost
2 - Go to Mull Browser -> Settings -> About Mull -> tap 5 times in Mull logo
3 - Go back to Settings -> Account --> you should see a new option "Sync Debug" (super unintiutive) 😣
4- Select "Custom Sync server" and write there your endpoint, it should be "https://yourdomain.tld/1.0/sync/1.5" WITHOUT the token part you see in all the other tutorials
5 - Exit Mull completely, reopen and then follow the steps of "Connect a device" to your Firefox account
6 - After a successful auth it should work, enjoy 😄

Keep in mind that if you make a typo on the "Custom Sync server" setting or you do the steps in a different order it won't probaly work. So if that is the case, what I did is reset Mull in Android (Open Mull in app list and "Clear all data" from Android Settings), also make sure you have logged out any session related to the failed attempt in https://accounts.firefox.com/settingse
[23:02:18] <Dante> I'll add that to the README when I have some spare time with more detailed instructions and troubleshooting 🙂 Mateusz Szymański
[23:14:23] <Dante> Confirmed it also works in Firefox Android 🙂