OneDrive backup not working 5.1.0.8

No issues here with thr upgrade using an X10 III.

Though the Onedrive Backup is still not working for me. The manual backp process works fine, but the upload to OneDrive does not. I have removed and recredted the OD account and rebooted.
some logs…

Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [Log] “Removing all working files in /home/defaultuser/.local/share/system/privileged/Backups-tmp”
Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [Log] “Start: rm -rf /home/defaultuser/.local/share/system/privileged/Backups-tmp”
Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [Log] “Done: rm [OK]”
Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [Log] “Status = Finished”
Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Requesting sync profile onedrive.Backup-22 to upload file /home/defaultuser/.local/share/system/privileged/Backups/onedrive.Backup-22/sailfish_backup_2026-03-11T17-14-49Z.tar.gz”
Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Status: UploadingBackup”
Mar 12 04:15:01 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Status text: Uploading backup”
Mar 12 04:15:04 Xperia10III kernel: [schedu][0x38c5b3ee0][17:15:04.752484] wlan: [2635:I:OSIF] vdev 0, scan id 41017 type COMPLETED(1) reason COMPLETED(1) scan found 16 bss
Mar 12 04:15:05 Xperia10III buteo-oopp-runner[7604]: [W] unknown:0 - “Backup” request with account 22 experienced error: QNetworkReply::NetworkError(ContentConflictError) HTTP code: 409 data: “{"error":{"code":"nameAlreadyExists","message":"Name already exists","innerError":{"date":"2026-03-11T17:15:04","request-id":"954dec60-2c59-42d6-b68f-7c0ae4e68439","client-request-id":"954dec60-2c59-42d6-b68f-7c0ae4e68439"}}}”
Mar 12 04:15:08 Xperia10III buteo-oopp-runner[7604]: [W] unknown:0 - “Backup” request with account 22 experienced error: QNetworkReply::NetworkError(ContentConflictError) HTTP code: 409 data: “{"error":{"code":"nameAlreadyExists","message":"Name already exists","innerError":{"date":"2026-03-11T17:15:07","request-id":"be1416ba-048c-4bab-9e2c-8d0c0b130b70","client-request-id":"be1416ba-048c-4bab-9e2c-8d0c0b130b70"}}}”
Mar 12 04:15:09 Xperia10III kernel: [schedu][0x39219dfd9][17:15:09.772230] wlan: [2635:I:OSIF] scan start scan id 41018
Mar 12 04:15:11 Xperia10III buteo-oopp-runner[7604]: [W] unknown:0 - “Backup” request with account 22 experienced error: QNetworkReply::NetworkError(AuthenticationRequiredError) HTTP code: 401 data: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”
Mar 12 04:15:11 Xperia10III buteo-oopp-runner[7604]: [W] unknown:0 - failed to backup file: “/home/defaultuser/.local/share/system/privileged/Backups/onedrive.Backup-22” “sailfish_backup_2026-03-11T17-14-49Z.tar.gz” to: “Backups/Xperia-10-III_Iz9zbxp2z0jP” for OneDrive account: 22 , code: 401 response: “”
Mar 12 04:15:11 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Cloud operation backupToCloud for profile onedrive.Backup-22 sync status changed: 4”
Mar 12 04:15:11 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Status: Error”
Mar 12 04:15:11 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Status text: Error: could not upload file”
Mar 12 04:15:11 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Error! error=CloudUploadError errorString=onedrive.Backup-22 update failed, details:õ”
Mar 12 04:15:11 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Status text: Idle”
Mar 12 04:15:11 Xperia10III p[4422]: [W] unknown:0 - [sailfish-backup] “Status: Idle”

10VV upgrade from 5.0.0.73 to .76 worked flawelessly. Have had multiple phone coversations and they work the same as prior to the update.

I was able to add my M365 OneDrive account and have just manually initiated my first backup to OneDrive. It is running as I type this.

Thank you, awesome Jolla team!

4 Likes

Oh that’s good to hear OD upload is working for you. Means it’s just my system.
I’ll do some more digging…

Can you view all your OD images in the gallery, in full screen mode too?

Some additional details. When I went into System > Accounts, then added my OneDrive, I could authenticate in the browser, add my MFA code, then return to the accounts and I just saw “Adding account” and the progress circle spinning forever. I eventually came back and saw the OD account there and fully illuminated (not shadowed) and then tried a backup. That failed. It always said “preparing” then ultimately failed.

I deleted the account and then went to System > Backup. It immediately asked if I wanted to add an account. I add the OD account and it worked immediately. I then initiated a manual backup and that backed up fine. I can see it in my OD under Apps > Sailfish OS > Backups > Xperia-10-V_xxxxxxxx > sailfish_backup_2026-03-11….tar

I deleted the OD account, tried adding again from Settings > Accounts and it failed again.

I deleted the attempted OD account, then went into Settings > Backup and adding it again, it worked, I manually performed a second backup and it worked, and in Backup app at the bottom, it lists “You can restore your device from these previous backups” and lists my most recent backup, as is expected.

When I go into gallery, I see OD listed below Android storage, however, it’s shadowed out and the progress circle spins continuously. I did allow the permissions when setting up the OD account from within the Backup application.

Thanks for all of this.
Unfortunately it’s still not uploading, and producing the same error as shown in my post above.

I renamed my backup directory in OD and did another manual backup and the directory is created, so the phone is authenticating to OD and creating the required directory- Xperia-10-III_xxxxxxxxxxxx

But I am getting this too:

sailfish-accounts-tool[18047]: [W] unknown:0 - void CredentialKeysQuery::signOnError(const SignOn::Error&) signon error while retrieving secrets for credentials 12 : “Identity does not allow authentication using the selected method or mechanism. Method:oauth2, mechanism:user_agent, allowed:user_agent”

For me, uploading photos or backing up my phone to OneDrive still isn’t working.

Hi powers that be…
Is there a chance for this to be looked at for 5.1 onwards as it’s still an issue, for more than one user.
Thanks!

1 Like

Yea, there are already some signin hanging fixes in 5.1 that solved the last problems for me with onedrive.

3 Likes

Amazing to hear, thanks for the info!

I’d be curious to know where the issue lay in the code. It’s been a pesky problem.

Within the buteo social plugins?

Thanks for your work on this!

1 Like

There: Avoid hanging if there are multiple ipc blobs waiting to be handled (!43) · Merge requests · Accounts SSO / signond · GitLab

2 Likes

Unfortunately the same issues with SFOS 5.1.0.7
Rebooted, removed and recreated new account.

That’s sad to hear. At this point some new logs might help, the problem might have moved somewhwere else.

For me this has seemed to be working now ok so hard to debug more.

Logs you say?
This is for the gallery OneDrive image. I can see all the relevant thumbnails, they update in real time, including removing files via OD but opening an image in gallery produces this:

May 28 17:19:16 Xperia10III jolla-gallery[11456]: [W] unknown:0 - AbstractImageDownloader::about to fetch image: “https://graph.microsoft.com/v1.0/me/drive/items/xxxxxxxxxxxxxxxxx!s5414a812bc284217bf5616fd24fd99e2/content
May 28 17:19:16 Xperia10III jolla-gallery[11456]: [W] unknown:0 - AbstractImageDownloader::about to fetch image: “https://graph.microsoft.com/v1.0/me/drive/items/xxxxxxxxxxxxxxxxx!sd3c17a179e45456783a6b5b78e28fc33/content
May 28 17:19:16 Xperia10III jolla-gallery[11456]: [W] unknown:0 - AbstractImageDownloader::about to fetch image: “https://graph.microsoft.com/v1.0/me/drive/items/xxxxxxxxxxxxxxxxx!8175/content
May 28 17:19:18 Xperia10III jolla-gallery[11456]: [W] unknown:0 - AbstractImageDownloader::about to fetch image: “https://my.microsoftpersonalcontent.com/personal/xxxxxxxxxxxxxxxxx/_layouts/15/download.aspx?UniqueId=d3c17a17-9e45-4567-83a6-b5b78e28fc33&Translate=false&tempauth=v1e.eyJzaXRlaWQiOiI4ZDNkYzE0OC01ZGRjLTRjYjUtYjFlMC1kODliMWFmOWE2YjYiLCJhcHBfZGlzcGxheW5hbWUiOiJTYWlsZmlzaCBPUyIsImFwcGlkIjoiYjRlMzJlY2UtODAwOC00NTNiLWI4MTItYzIyNDhkYzUzZDUyIiwiYXVkIjoiMDAwMDAwMDMtMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL215Lm1pY3Jvc29mdHBlcnNvbmFsY29udGVudC5jb21AOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwiZXhwIjoiMTc3OTk1NjM1NyJ9.qM2EM7rDx5HQBAztHOobj82et7R7k-ubeaIRT74lym1wfK9SeSo30Qt-TwNuSwZov1gE2YJBl2HrHf_AquJ5LlmrdObpwi8tTGYnUAvRg8_TPG7bRwqKzRmmmwZWJrHBqdJ5S_hquGdXXzXbN-8r1FByIgD-4MQgCVQ_78TAJPLzdIeSvIqf7wgczEb-gVoI2lqvdWXgSsWtARohAYFGsA9nmwlyfMsAgDWmwJhUSK2M5fGhSYdPN4yKfdAHg-S5rRZNU6PDEQ6o3-bnXullMdH1-97jsrN6TS8UJI4AZeGGbF157yxy2Vy9L4UHPPd9U2ePd4zsULqM6G7ZuQ-G0GWbHS8txrLXbipwth2Z-TW7XzoJCflYIyPJH_JPQNAoNkOvb9NgAU0OQMSroqucUvGrzLAvUFY8SACEBZuAYygRaq0T53g8hwmCsX9Bsn2TQxdQkZ16JR6a2N1HB6T6hnPfpHGMisLldAKriM8yzak.scxaRsR9Nnp8I7OrlaulsCZqRfgkMBm3Sfh7zlkDxBk&ApiVersion=2.0
May 28 17:19:19 Xperia10III jolla-gallery[11456]: [W] unknown:0 - Downloaded file is not an image, mime type is “text/plain”
May 28 17:19:19 Xperia10III jolla-gallery[11456]: [D] unknown:0 - Got text instead: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”
May 28 17:19:19 Xperia10III jolla-gallery[11456]: [W] unknown:0 - SocialImageDownloader: failed to download “https://graph.microsoft.com/v1.0/me/drive/items/xxxxxxxxxxxxxxxxx!sd3c17a179e45456783a6b5b78e28fc33/content
May 28 17:19:20 Xperia10III jolla-gallery[11456]: [W] unknown:0 - AbstractImageDownloader::about to fetch image: “https://my.microsoftpersonalcontent.com/personal/xxxxxxxxxxxxxxxxx/_layouts/15/download.aspx?UniqueId=1b2de68f-6150-2074-80fa-ef1f00000000&Translate=false&tempauth=v1e.eyJzaXRlaWQiOiI4ZDNkYzE0OC01ZGRjLTRjYjUtYjFlMC1kODliMWFmOWE2YjYiLCJhcHBfZGlzcGxheW5hbWUiOiJTYWlsZmlzaCBPUyIsImFwcGlkIjoiYjRlMzJlY2UtODAwOC00NTNiLWI4MTItYzIyNDhkYzUzZDUyIiwiYXVkIjoiMDAwMDAwMDMtMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL215Lm1pY3Jvc29mdHBlcnNvbmFsY29udGVudC5jb21AOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwiZXhwIjoiMTc3OTk1NjM1OSJ9.HClemlNxgLLAOj3bsYD0AkB6pqxUOwNvZCrzUWXkKIGfgHVf2XI4zsJj2r3bztV6ZXNWCTa7UvQClBtIrwtp4B2mQTnywmnmgfiWbK13mVFuk9XZDgPBTNXwTJU-CX76GkyTatK2kq3E63GVnzMN91S96lisQL8ZjgV8QvVv8mP_3lt314Jmh5NhTwGQm0xF_yMC1DibVcyMAgU7QJdeGfKDsz9R55BiY31LkGlzz6XaYAP7oJw4jD7abBHZ60S5nUz1c9sowr48bPxVKrf1pXEkieHfJlic8wPs6Gtnc_ps7vDiEyUDP6IHrMdu8WMzqOD5vwTwzrW2Tq91maM8wrOrw8k9j2sdSz8R6JW99m-UIHo7K2HnI_afQIMzDjLkNbG2zbd6OTaLZ9oW2DwQoj_kfZ6UmO64Ktcq-_cIysDlrMmE0fVL14BnC2yEejCmJsa6s1Sf5GegG6sBVtge6nGhadfovNvcbKxBT15OJyU.01FV6_GecLSgqc3IGjtqgbBmcjvRYaYnfp9BtUwbHfA&ApiVersion=2.0
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [W] unknown:0 - Downloaded file is not an image, mime type is “text/plain”
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [D] unknown:0 - Got text instead: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [W] unknown:0 - SocialImageDownloader: failed to download “https://graph.microsoft.com/v1.0/me/drive/items/xxxxxxxxxxxxxxxxx!8175/content
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [W] unknown:0 - AbstractImageDownloader::about to fetch image: “https://my.microsoftpersonalcontent.com/personal/xxxxxxxxxxxxxxxxx/_layouts/15/download.aspx?UniqueId=5414a812-bc28-4217-bf56-16fd24fd99e2&Translate=false&tempauth=v1e.eyJzaXRlaWQiOiI4ZDNkYzE0OC01ZGRjLTRjYjUtYjFlMC1kODliMWFmOWE2YjYiLCJhcHBfZGlzcGxheW5hbWUiOiJTYWlsZmlzaCBPUyIsImFwcGlkIjoiYjRlMzJlY2UtODAwOC00NTNiLWI4MTItYzIyNDhkYzUzZDUyIiwiYXVkIjoiMDAwMDAwMDMtMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL215Lm1pY3Jvc29mdHBlcnNvbmFsY29udGVudC5jb21AOTE4ODA0MGQtNmM2Ny00YzViLWIxMTItMzZhMzA0YjY2ZGFkIiwiZXhwIjoiMTc3OTk1NjM2MCJ9.YqpvXJagffjI4o-hoyZDTOuOJ9AqZ3zFs1m0pc-bgKtMPwfJ0qQOU7dz9zU3XBoWZeLC9tjPreFdFw_3Wrce_GCevpd-ue6dR9rEx9qYABdFbbDJmK6LPQyHFfYmSILe6WpGX1I2CpsLHN_JYsoM9do9d_b0rjr2zMKaJCpt5DmjroixwDZPC9Y7l13UlyhoOlECEb-bXS6J3EJ_MLv5TGZjrCui7JpChDYk4q2IV5Swh9gXJyVRPn_dpYPb-7ktzzv4p4nEF6hTZdSKceQlvexjIByBcY8Ks4lmJwx7yQlii3u1rRKBb6IVRVMsBGapUW23f50bwG7IwzMhPSPjla9FKwj17QcTgS7IdiTeS8-Y72VlMu3ApgH7wR63X5CpHZmQolBvsbcQktqz6oKCjUpbxdLu80v1N7HvV7T7Kx7_C01AOgjjYcyIJts49zdwfB50UOwpn4Ju6MtFc9Eir16PQYMyWZeBq9kxdAxNvUk.UwA-D3wCSsx247F_JCaGSKzmvtZOIhKtoUL5SusGAec&ApiVersion=2.0
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [W] unknown:0 - Downloaded file is not an image, mime type is “text/plain”
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [D] unknown:0 - Got text instead: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”
May 28 17:19:21 Xperia10III jolla-gallery[11456]: [W] unknown:0 - SocialImageDownloader: failed to download “https://graph.microsoft.com/v1.0/me/drive/items/xxxxxxxxxxxxxxxxx!s5414a812bc284217bf5616fd24fd99e2/content

and for OD backup:

May 28 17:24:19 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Requesting sync profile onedrive.Backup-28 to upload file /home/defaultuser/.local/share/system/privileged/Backups/onedrive.Backup-28/sailfish_backup_2026-05-28T07-24-07Z.tar.gz”
May 28 17:24:19 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Status: UploadingBackup”
May 28 17:24:19 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Status text: Uploading backup”
May 28 17:24:23 Xperia10III kernel: [schedu][0xb3b72ed72][07:24:23.517780] wlan: [9169:I:OSIF] vdev 0, scan id 41010 type COMPLETED(1) reason COMPLETED(1) scan found 30 bss
May 28 17:24:24 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - “Backup” request with account 28 experienced error: QNetworkReply::NetworkError(ContentConflictError) HTTP code: 409 data: “{"error":{"code":"nameAlreadyExists","message":"Name already exists","innerError":{"date":"2026-05-28T07:24:23","request-id":"2fe2eaf1-d72b-4247-aaf3-96accf06f149","client-request-id":"2fe2eaf1-d72b-4247-aaf3-96accf06f149"}}}”
May 28 17:24:26 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - “Backup” request with account 28 experienced error: QNetworkReply::NetworkError(ContentConflictError) HTTP code: 409 data: “{"error":{"code":"nameAlreadyExists","message":"Name already exists","innerError":{"date":"2026-05-28T07:24:25","request-id":"5e4e1204-1104-4bd9-9438-10a1b78d41c0","client-request-id":"5e4e1204-1104-4bd9-9438-10a1b78d41c0"}}}”
May 28 17:24:29 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - “Backup” request with account 28 experienced error: QNetworkReply::NetworkError(AuthenticationRequiredError) HTTP code: 401 data: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”
May 28 17:24:29 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - failed to backup file: “/home/defaultuser/.local/share/system/privileged/Backups/onedrive.Backup-28” “sailfish_backup_2026-05-28T07-24-07Z.tar.gz” to: “Backups/Xperia-10-III_Iz9zbxp2z0jP” for OneDrive account: 28 , code: 401 response: “”
May 28 17:24:29 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Cloud operation backupToCloud for profile onedrive.Backup-28 sync status changed: 4”
May 28 17:24:29 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Status: Error”
May 28 17:24:29 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Status text: Error: could not upload file”
May 28 17:24:29 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - Cloud backup error was: “CloudUploadError” “onedrive.Backup-28 update failed, details: 501”
May 28 17:24:29 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - busy semaphore is negative for account 28
May 28 17:24:29 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Error! error=CloudUploadError errorString=onedrive.Backup-28 update failed, details: 501”
May 28 17:24:29 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Status text: Idle”
May 28 17:24:29 Xperia10III p[11505]: [W] unknown:0 - [sailfish-backup] “Status: Idle”

May 28 17:24:24 Xperia10III buteo-oopp-runner[12269]: [W] unknown:0 - “Backup” request with account 28 experienced error: QNetworkReply::NetworkError(ContentConflictError) HTTP code: 409 data: “{“error”:{“code”:“nameAlreadyExists”,“message”:“Name already exists”,“innerError”:{“date”:“2026-05-28T07:24:23”,“request-id”:“2fe2eaf1-d72b-4247-aaf3-96accf06f149”,“client-request-id”:“2fe2eaf1-d72b-4247-aaf3-96accf06f149”}}}”

This looks like a new thing.

Now, could try to enable you some more logging for the more precise details, or then you could maybe check your onedrive content. E.g. if just removing/moving the existing content could avoid the conflict.

I’m open as to how I can do that.
Using

journalctl -o verbose

produced nothing more usable - to my eyes at least. I could be missing something

Hi there @Pasik2 - how is this going for you with OS 5.1 ? (when you update…)

Nope, backup and uploading photos to OneDrive still don’t work. SailfishOS 5.1.0.8

1 Like

Thinking out loud here…
Do you have 2FA enabled for OD? Perhaps that could be reason as Sailfish can’t do 2FA during gallery lookup and hence produces:

Got text instead: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”

and consquently

Downloaded file is not an image, mime type is “text/plain”

I don’t have 2FA enabled. I also noticed that the number of images doesn’t match. I have over 6000 images of which Sailfish only reports about 500. It also doesn’t load all the thumbnails and I can’t open the ones where the icons are visible. Maybe it’s because I can’t log into my email account with Microsoft Exchange either, because my Microsoft email address ends in msn.com.