3.4.0 Manual Backup to OneDrive

That is a shame.

I did find that leaving my phone overnight seemed to help.

For example, my location was not being updated in GPSInfo after I updated Sailfish, despite changing the Location settings.

I returned to the phone and they are updating correctly.

i notice that while testing the nextcloud-backup-client (which fails - see log) there are no according connections at the target nextcloud-instance (apache-access-log).

journalctl on XA2:
<<<<<
Oct 25 12:53:08 cartman p[23038]: [W] unknown:0 - [sailfish-backup] “Status: UploadingBackup”
Oct 25 12:53:08 cartman p[23038]: [W] unknown:0 - [sailfish-backup] “Status text: Datensicherung hochladen”
Oct 25 12:53:09 cartman nextcloud-backup-client[24701]: [W] unknown:0 - Nextcloud “nextcloud-backup” sync for account 243 finished with error: “Remote directory listing failed (http status=405)”
Oct 25 12:53:09 cartman nextcloud-backup-client[24701]: [C] unknown:0 - Nextcloud Backup sync failed: 401 “”
Oct 25 12:53:09 cartman p[23038]: [W] unknown:0 - [sailfish-backup] “Cloud operation backupToCloud for profile nextcloud.Backup-243 sync status changed: 4”
Oct 25 12:53:09 cartman p[23038]: [W] unknown:0 - [sailfish-backup] “Status: Error”
Oct 25 12:53:09 cartman p[23038]: [W] unknown:0 - [sailfish-backup] “Status text: Fehler: Konnte Datei nicht hochladen”
Oct 25 12:53:09 cartman nextcloud-backup-client[24701]: [W] unknown:0 - Nextcloud “nextcloud-backup” sync for account 243 finished with error: “Cloud backup error was: CloudUploadError , details:\u0091”
Oct 25 12:53:09 cartman nextcloud-backup-client[24701]: [C] unknown:0 - Nextcloud Backup sync failed: 401 “”
Oct 25 12:53:09 cartman p[23038]: [W] unknown:0 - [sailfish-backup] “Error! error=CloudUploadError errorString=, details:\u0091”

The issue still exists with version 4.0.1.45.
it fails at uploading… I’ve deleted and readded the onedrive account but it still fails :

2 Likes

Still an issue with 4.0.1 here too. The same error message in the GUI as others reported. I have attached the log from journalctl related to onedrive.

févr. 17 11:37:56 Sailfish dbus-daemon[5057]: dbus-daemon[5057]: [session uid=100000 pid=5057] Activating service name=‘com.google.code.AccountsSSO.SingleSignOn’ requested by ‘:1.556’ (uid=100000 pid=32047 comm=“/usr/lib/buteo-plugins-qt5//oopp/onedrive-backupqu” label=“u:r:kernel:s0”)
févr. 17 11:38:02 Sailfish p[30999]: [W] unknown:0 - [sailfish-backup] “Triggering backup sync profile: onedrive.Backup-17”
févr. 17 11:38:03 Sailfish p[30999]: [W] unknown:0 - [sailfish-backup] “Cloud operation backupToCloud for profile onedrive.Backup-17 sync status changed: 1”
févr. 17 11:38:03 Sailfish p[30999]: [W] unknown:0 - [Log] “Preparing to backup units: Accounts, Browser, Calendar, Media, Messages, Notes, MyBackup, People, Phone to /home/nemo/.local/share/system/privileged/Backups/onedrive.Backup-17/sailfish_backup_2021-02-17T10-38-02Z.tar.gz”
févr. 17 11:38:59 Sailfish p[30999]: [W] unknown:0 - [Log] “Start: tar -cvf /home/nemo/.local/share/system/privileged/Backups/onedrive.Backup-17/sailfish_backup_2021-02-17T10-38-02Z.tar.gz .from directory: /home/nemo/.local/share/system/privileged/Backups-tmp/units/sailfish_backup_2021-02-17T10-38-02Z”
févr. 17 11:38:59 Sailfish p[30999]: [W] unknown:0 - [sailfish-backup] “Requesting sync profile onedrive.Backup-17 to upload file /home/nemo/.local/share/system/privileged/Backups/onedrive.Backup-17/sailfish_backup_2021-02-17T10-38-02Z.tar.gz”
févr. 17 11:39:00 Sailfish onedrive-backup-client[32113]: [W] unknown:0 - ERROR: “Backup” request with account 17 experienced error: QNetworkReply::NetworkError(RemoteHostClosedError)
févr. 17 11:39:00 Sailfish onedrive-backup-client[32113]: [W] unknown:0 - ERROR: failed to backup file: “/home/nemo/.local/share/system/privileged/Backups/onedrive.Backup-17” “sailfish_backup_2021-02-17T10-38-02Z.tar.gz” to: “Backups/Xperia-10-Plus—Dual-SIM_W5UQAvWU8Cmq” for OneDrive account: 17 , code: 0
févr. 17 11:39:01 Sailfish p[30999]: [W] unknown:0 - [sailfish-backup] “Cloud operation backupToCloud for profile onedrive.Backup-17 sync status changed: 4”
févr. 17 11:39:01 Sailfish onedrive-backup-client[32113]: [W] unknown:0 - ERROR: Cloud backup error was: “CloudUploadError” “onedrive.Backup-17 update failed, details:\u0001”
févr. 17 11:39:01 Sailfish onedrive-backup-client[32113]: [W] unknown:0 - ERROR: busy semaphore is negative for account 17
févr. 17 11:39:01 Sailfish p[30999]: [W] unknown:0 - [sailfish-backup] “Error! error=CloudUploadError errorString=onedrive.Backup-17 update failed, details:\u0001”>

I have no network issues as everything else is working flawlessly. And as this seems to work for some users, I guess the size of 400MiB (from SD-card backup) is too much for my onedrive free account?

Still an issue with 4.0.1.48 and Xperia X. On my phone on SD-Card the backup ist 360 M (but without photos) and the upload fails for 100%.
On my wifes XperiaX (4.0.1.48) backup to SD-Card fails (size 0) and the upload to OneDrive (the same account) brings a tar.gz with only 304 KB.
It seems the backup-function needs some attention.

Cannot backup to OneDrive on 4.5.0.18, still not fixed.

Thankfully fixed for me XIII with 4.5.0.18
Both automatically and manually

Sony XA2, 4.6.0.15 (Sauna). Backup upload not working on OneDrive. Login to OneDrive works in browser. Also, the phone shows that I can restore it from the last backup that is 21.11.2024. IMHO, to show this info the phone must succesfully connect to OneDrive.

Phone reboot does not help.

Looks like the issue is continuing…
SFOS 5.0.0.67 now and a OneDrive account which has been working previously with no problems as shown in previous post. .
Most likely since upgrading (though can’t be sure) I can’t upload my device backup to the cloud.
In Gallery, I can see thumbnails but can’t open the file.
I deleted my OneDrive account and recreated it but the issue persists.
Any thoughts?

If you see thumbnails then it might be permission issue.

which end - phone or OD?

If you see the thumbnails on the phone but can’t open them on the phone then on the phone. My guess is it might be SailJail issue or wrong UID, GID.

That could be blocking the upoad to OD as well potentially…
EDIT:
Looking at journalctl whilst opening a OD file, I can see the online file path that is being looked up, copy the path and open the file via a web browser.
Error produced:

Xperia10III jolla-gallery[12678]: [W] unknown:0 - Downloaded file is not an image, mime type is "text/plain"
Xperia10III jolla-gallery[12678]: [D] unknown:0 - Got text instead: "{\"error\":{\"code\":\"unauthenticated\",\"message\":\"Unauthenticated\"}}"
Xperia10III jolla-gallery[12678]: [W] unknown:0 - SocialImageDownloader: failed to download  "https://graph.microsoft.com/v1.0/me/drive/items/XXX!2404/content"
Xperia10III jolla-gallery[12678]: [W] unknown:0 - Downloaded file is not an image, mime type is "text/plain"
Xperia10III jolla-gallery[12678]: [D] unknown:0 - Got text instead: "{\"error\":{\"code\":\"unauthenticated\",\"message\":\"Unauthenticated\"}}"
Xperia10III jolla-gallery[12678]: [W] unknown:0 - SocialImageDownloader: failed to download  "https://graph.microsoft.com/v1.0/me/drive/items/XXX!2403/content"
1 Like

Thoughts on what I can check to confirm?
Otherwise I will wait till a new release comes out to ideally resolve the issue, as happened previously

To me it seems this file is actually a text file with an error description originating from OD. Can you open it on some other device like PC? As I don’t use OD I can’t comment more.

Yep, I can open a file on my laptop that’s referenced from journalctl

I’m assuming it opens properly. Then it looks to me like OD is not accepting authetification.

That’s what I’m thinking…

Blockquote
"Downloaded file is not an image, mime type is “text/plain”
May 08 18:14:32 Xperia10III jolla-gallery[3108]: [D] unknown:0 - Got text instead: “{"error":{"code":"unauthenticated","message":"Unauthenticated"}}”

it seems some work at Jolla are ongoing to fix some issues with OneDrive Backup:

1 Like

fabulous! looking forward to next patch