3.4.0 Manual Backup to OneDrive

Thanks for the logs. We have a bug report for this now.

1 Like

You log has:

> 20:55:43 Sailfish p[28209]: [W] unknown:0 - [sailfish-backup] "Requesting sync profile onedrive.Backup-32 to upload file /home/nemo/.local/share/system/privileged/Backups/onedrive.Backup-32/sailfish_backup_2020-09-30T17-55-28Z.tar.gz"
> syys 30 20:55:43 Sailfish p[28209]: [W] unknown:0 - [sailfish-backup] "Status: UploadingBackup"
> syys 30 20:56:08 Sailfish systemd-journal[690]: Suppressed 1 messages from /user.slice/user-100000.slice
> syys 30 20:56:08 Sailfish onedrive-backup-client[28459]: [W] unknown:0 - ERROR:  "Backup" request with account 32 experienced error: QNetworkReply::NetworkError(UnknownContentError)
> syys 30 20:56:08 Sailfish onedrive-backup-client[28459]: [W] unknown:0 - ERROR:  failed to backup file: "/home/nemo/.local/share/system/privileged/Backups/onedrive.Backup-32" "sailfish_backup_2020-09-30T17-55-28Z.tar.gz" to: "Backups/Xperia-10---Dual-SIM_m1n_Oy7nYBvp" for OneDrive account: 32 , code: 413
> syys 30 20:56:08 Sailfish p[28209]: [W] unknown:0 - [sailfish-backup] "Cloud operation backupToCloud for profile onedrive.Backup-32 sync status changed: 4"
> syys 30 20:56:08 Sailfish p[28209]: [W] unknown:0 - [sailfish-backup] "Status: Error"
> syys 30 20:56:08 Sailfish p[28209]: [W] unknown:0 - [sailfish-backup] "Status text: Virhe: tiedoston lähettäminen epäonnistui"
> syys 30 20:56:08 Sailfish onedrive-backup-client[28459]: [W] unknown:0 - ERROR:  Cloud backup error was: "CloudUploadError" "onedrive.Backup-32 update failed, details:\u0001"
> syys 30 20:56:08 Sailfish onedrive-backup-client[28459]: [W] unknown:0 - ERROR:  busy semaphore is negative for account 32
> syys 30 20:56:08 Sailfish p[28209]: [W] unknown:0 - [sailfish-backup] "Error! error=CloudUploadError errorString=onedrive.Backup-32 update failed, details:\u0001"

There was this: QNetworkReply::NetworkError(UnknownContentError)

Was your internet connection ok at that time?

I have tried the backup multiple times with both Onedrive and Nextcloud. With Onedrive it never succeeds, while with Nextcloud it always does. So, I believe it is not the network.

I don’t know if this has something to do with the issue, but it seems the backup process creates a new folder into the OneDrive cloud.

Originally, there is the folder where my old device backups are, Apps>Sailfish OS>Backups, in which are separate folders for the devices (Jolla_[xxx], Xperia_X_[yyy] and Xperia_10—Dual-SIM_[zzz]).

Once I try to run a new backup on Xperia 10 with 3.4, a new folder appears in the cloud: Apps>Sailfish OS 1>Backups>Xperia-10—Dual-SIM_[zzz].

I also have problems with OneDrive.
I can successfully log in to OneDrive for a short time, but seconds later I get the error message: “Account not logged in”.
It is possible to log in again - but only for a few seconds until the error message appears again.
Manual data backup is also not possible and ends with the message: “Error: Could not upload file”.
Data recovery is also not possible.
Error: “Cannot connect to cloud provider”.
Strangely enough, however, I can access the OneDrive storage via the Android OneDrive app.

2 Likes

Maybe sailfish use the onedrive simple rest api.

“The simple upload API allows you to provide the contents of a new file or update the contents of an existing file in a single API call. This method only supports files up to 4MB in size.”

1 Like

I tested Backups and Photos with OneDrive both doesn’t work. Doesn’t matter if the OneDrive account is protected with 2FA or not.

With 2FA enabled, every action will cause a re-login, which opens the browser, checks that the login is still valid and closes the browser again. Annoying.

Have you tried so called Device password with 2FA? Under Microsoft account security settings you can generate device specific password to use with software which don’t support 2FA. I don’t remember exact place since it’s been a while last needed it.

PS. I haven’t added Onedrive account my self, but I use hotmail via exchange.

Unfortuantely device passwords didn’t work with OneDrive.

Also a problem with Gemini

SOLVED

Restarted network services using Utilities
Forgot WLAN settings
Entered WLAN connection manually (no networks visible in Sailfish 3.4.0.24)
Entered Backup and started Manual backup to OneDrive

Unfortunately this didn’t work for my J1. In backup I still get: “Cannot connect to cloud service

I have the same problem on my XA2 after the update. Password is not stored and automatic backup of photos and settings to OneDrive is not working anymore.

Edit: “Network reset” using Sailfish Utilities didn’t help.

XA2 here, also not working. Sending to OneDrive fails. Automatic nightly backup also fails.

Backup to Dropbox works.

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