Sync error message - but it apparently works?

Hi,

I’m running FP5 and /e/ since very early versions, and I have a persistent annoying error : 'sync error, please check your credentials", something like that. Now running 2.9.

If I go in ‘accounts’ and I manually trigger a sync, everything is ok, in the sens that no issue is displayed.

I do not sync much, only these :

  • contacts
  • notes
  • applications settings

Not agenda, no webmail, no tasks, no gallery …

Even if I set up only one murena account, things are weird in the interface, as if there were several sub-accounts created, some for emails, some for contacts, in the end I removed all accounts and started again.

My murena account is using MFA for obvious security reasons, and I set up a device key dedicated to my phone. I use this key to set up the account instead of my password, and initial sync worked fine.

Then 15 min later : sync error message.

I disabled anything related to emails (agenda, tasks, whatever not listed above), as from what I remember email does not yet support accounts with mfa, that’s not a big deal in my case I can live without it.

But hell that error message is annoying.

Please tell me what I should try / how to help figure out with more details what happens and how to solve that.

(and no, don’t suggest removing mfa :wink: )

thank you !

Regain your privacy! Adopt /e/OS the unGoogled mobile OS and online servicesphone

Did you allow Sync on the web?

I’m afraid I don’t get what you mean by ‘sync on the web’ ?

obviously sync occurs over network,
and it works when triggered manually.

Maybe it’s me using the wrong words for that ? I’ll try to be more specific.

I mean, when the error pops, I can click on it it will bring me to an ‘account manager’, which my murena account displayed in a colored rectangle, with a “people” icon.

Choosing this account will bring be to a tabbed configuration area :

  • Cardav
    • ‘contacts’ is ticked,
    • Webmail is NOT
  • CaLdav → all unticked,
  • Webcal is empty

Hitting manually the sync button there does not raise error.

Note that I have absolutely no idea how to enter this account manager if not by hitting the error message.

BTW I have the error message right now so I can share it more precisely.

Your account ****@murena.io
Authentication failure (check your connection credentials)

Other things synced (notes) are configured elsewhere - which make /e/ awkward on this topic.

settings > account → there I can see several accounts, not in the same ‘account manager’

  • contacts (****@murena.io)
  • ***@murena.io

the first one seems related to contacts only (from carddav contacts mentioned above in ‘account manager’)
the second let me then choose which elements to sync.

There is a web access of Murena.io and because of the outage to make sure everyone has a backup before first synch, you have to activate it.

Ok !
well, I totally removed the account from the phone yesterday,
lost all local contacts (had a backup :slight_smile: )
configured it again,
contacts came back. So I thought it was all good regarding syncing.

I cannot find the place to “activate it” on murena.io

I’m reading this

https://doc.e.foundation/backup-my-files-after-the-outage

Account sync. If Pictures and videos is disabled, it means eDrive is not running and that you can ignore this part.

=> I can ignore :slight_smile:

finally

Q: Why is sync disabled?
    A: Sync is disabled to prevent data loss during the recovery process.
Q: When can I re-enable sync?
    A: We will notify you when it is safe to re-enable sync.

So,
I do have contacts sync that do work (tested with some contacts added 2 weeks ago, present on murena website)
I have no idea where a sync option could be hidden in murena website

I only saw this picture from other user:

I don’t really use the cloud.

ok, thank you !

Found the option !

let’s see if it works without error now.

→ Ticked the box, configured phone to ‘every 15 minutes’ … instant error message :confused:

So there must be something else.

I do not know the intricacies of the key but it sounds as if a manual sync uses the “credential check” correctly but in some unknown way the the “extra level credential ID” is not being applied to “timed” sync. Thus, I propose, you get the error message at every “timed” sync.

How could that happen (??)

Perhaps a logcat might help? Capture a debug information from /e/OS

yeah, I’ll certainly end up opening a proper ticket with logs attached

in case someone finds this topic useful, here’s the issue opened

with interesing part of logs

04-10 13:40:23.797 11955 11992 E WM-WorkerWrapper: Work [ id=2bce88c6-42de-40e2-9e3d-cd3627b6694e, tags={ at.bitfire.davdroid.syncadapter.PeriodicSyncWorker, periodic-sync foundation.e.accountmanager.addressbooks e.foundation.webdav/*******@murena.io } ] failed because it threw an exception/error
04-10 13:40:23.797 11955 11992 E WM-WorkerWrapper: java.util.concurrent.ExecutionException: at.bitfire.davdroid.InvalidAccountException: Invalid account: Account {name=*********@murena.io, type=e.foundation.webdav}

04-10 13:40:23.797 11955 11992 E WM-WorkerWrapper:      at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:21)
04-10 13:40:23.797 11955 11992 E WM-WorkerWrapper:      at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:119)