Backup to OneDrive stopped to work

REPRODUCIBILITY: 100%
OS VERSION: 4.6.0.15
HARDWARE: 10 III
UI LANGUAGE: en-us
REGRESSION: yes

DESCRIPTION:

Backup to OneDrive stopped to work

PRECONDITIONS:

Needs a Microsoft account

STEPS TO REPRODUCE:

  1. Configure a OneDrive account
  2. Select OneDrive as destination for the backup
  3. Trigger the backup (either scheduled or manual)

EXPECTED RESULT:

Backup successful

ACTUAL RESULT:

Error: could not upload file

MODIFICATIONS:

None

ADDITIONAL INFORMATION:

Not sure where to find logs

Any news? On SFOS5.0.0.62 it still not work. Only with dropbox its work. :expressionless:

Thanks, Ok this is the file size. I saw the backup file in the .local … folder but SFOS deleted it so quick and I cannot show the file size. Only this post is written here in the forum.

If you ever made a succesful backup on OneDrive, you can try this:
1, Put SD card into the phone
2. Create backup on SD card
3. On computer, copy the backup file to your OneDrive account in the folder, where your phone store backups, for me, it is OneDrive\Programs\Sailfish OS\Backups\Xperia-XA2_ydUCPCkw6ggD
4. Then, check backup app. Your backup should be available for restore. This will somehow prove, that the size is the problem, you can read larger files from Onedrive, but not write them.

I have try now some thinks on one drive. It is also not possible to upload small pictures from phone. Via Windows Notebook it works also with bigger files as 10Mb. I think the false is in SFOS. Maybe only a timing issuse. If I delete the backup folder from Sailfish on onddrive the Backupupload generate it new but it is empty. I give up now and use dropbox.

Have to say this works fine for me Xperia 10 III and .62.

Hmm, the size might be the reason why upload failed: the last uploaded file (tar.gz) from my 10III to OneDrive was 3,6MB on 1 December 2024 (I had a weekly automatic schedule). Did something change after 1 December in the automatic backup that could have increased the backup from 3,6 MB to to larger than 10MB? I’ve not changed much on my phone since then (I even cleared the browser cache).
The manual backup I made on 22 February 2025 (before upgrading from 4.6.0.15 to 5.0.0.61) to the SD card was 1,22GiB, probably because of Gallery included in manual backup (and it’s only .tar, no .gz). So the manual backup and the automatic backup cannot be compared.

I doubt that the size is the reason, my backups are around 1MB in size and I didn’t do anyrhing special when it stopped to work.
However I managed to retrieve the following logs from journalctl:

Mär 07 08:45:41 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Status text: Datensicherung hochladen"
Mär 07 08:45:42 Xperia10III buteo-oopp-runner[59964]: [W] unkno
wn:0 - "Backup" request with account 16 experienced error: QNet
workReply::NetworkError(ContentConflictError) HTTP code: 409 da
ta: "{\"error\":{\"code\":\"nameAlreadyExists\",\"message\":\"N
ame already exists\",\"innerError\":{\"date\":\"2025-03-07T07:4
5:42\",\"request-id\":\"8d139e07-ca74-4513-b5b2-099e66d3bef8\",
\"client-request-id\":\"8d139e07-ca74-4513-b5b2-099e66d3bef8\"}
}}"
Mär 07 08:45:43 Xperia10III buteo-oopp-runner[59964]: [W] unkno
wn:0 - "Backup" request with account 16 experienced error: QNet
workReply::NetworkError(ContentConflictError) HTTP code: 409 da
ta: "{\"error\":{\"code\":\"nameAlreadyExists\",\"message\":\"N
ame already exists\",\"innerError\":{\"date\":\"2025-03-07T07:4
5:43\",\"request-id\":\"5f35a065-694f-4c4e-9eab-ecca93f3f8a9\",
\"client-request-id\":\"5f35a065-694f-4c4e-9eab-ecca93f3f8a9\"}
}}"
Mär 07 08:45:46 Xperia10III buteo-oopp-runner[59964]: [W] unkno
wn:0 - "Backup" request with account 16 experienced error: QNet
workReply::NetworkError(AuthenticationRequiredError) HTTP code:
401 data: "{\"error\":{\"code\":\"unauthenticated\",\"message\
":\"Unauthenticated\"}}"
Mär 07 08:45:46 Xperia10III buteo-oopp-runner[59964]: [W] unkno
wn:0 - failed to backup file: "/home/defaultuser/.local/share/s
ystem/privileged/Backups/onedrive.Backup-16" "sailfish_backup_2
025-03-07T07-45-32Z.tar.gz" to: "Backups/Xperia-10-III_NsYDIHBU
iPRe" for OneDrive account: 16 , code: 401 response: ""
Mär 07 08:45:47 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Cloud operation backupToCloud for profile onedrive.Ba
ckup-16 sync status changed: 4"
Mär 07 08:45:47 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Status: Error"
Mär 07 08:45:47 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Status text: Fehler: Konnte Datei nicht hochladen"
Mär 07 08:45:47 Xperia10III buteo-oopp-runner[59964]: [W] unkno
wn:0 - Cloud backup error was: "CloudUploadError" "onedrive.Bac
kup-16 update failed, details:õ"
Mär 07 08:45:47 Xperia10III buteo-oopp-runner[59964]: [W] unkno
wn:0 - busy semaphore is negative for account 16
Mär 07 08:45:47 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Error! error=CloudUploadError errorString=onedrive.Ba
ckup-16 update failed, details:õ"
Mär 07 08:45:47 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Status text: untätig"
Mär 07 08:45:47 Xperia10III p[46102]: [W] unknown:0 - [sailfish
-backup] "Status: Idle"

It seems I made wrong conclusions. This is my personal OneDrive shown in Win File Explorer (despite of name the files are not gziped), last succesfull backup upload was on 21.11.2024, but I do not remember what was happening in that time.

I tryed also to share a small picture on Onedrive but also this not work any more. It is a problem in SFOS and beginns in 01-2025.
image

My last update on Onedrive is from 10.01.2025.

I rename the folder “SailfishOS1” in Onedrive but no changes. My backups was all biger than 10Mb. With Android app Onedrive I could upload the last backup without falses? Maybe a timing is the false. SFOS wait not enough at the upload process? I don’t know. I will test and if I found a solution I will share it here.