-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite looping while backing up APKs #703
Comments
Thanks for the log. There's a log of strange stuff happening. I'll quote the relevant bits: Looks like our forground service gets stopped, because it has no types. 07-02 07:19:23.220 1314 10449 W ForegroundServiceTypeLoggerModule: FGS stop call for: 10130 has no types!
07-02 07:19:23.230 1314 2868 W JobScheduler: Job didn't exist in JobStore: 9ea5446 #u0a130/16181 com.stevesoltys.seedvault/androidx.work.impl.background.systemjob.SystemJobService
07-02 07:19:28.741 1314 4019 I ActivityManager: Background started FGS: Allowed [callingPackage: com.stevesoltys.seedvault; callingUid: 10130; uidState: TRNB; uidBFSL: n/a; intent: Intent { act=ACTION_START_FOREGROUND cmp=com.stevesoltys.seedvault/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:SYSTEM_ALLOW_LISTED; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:34; callerTargetSdkVersion:34; startForegroundCount:0; bindFromPackage:null: isBindService:false]
07-02 07:19:40.888 1314 2261 W ForegroundServiceTypeLoggerModule: FGS stop call for: 10130 has no types! What gets stopped is @elem089 what ROM is this on and which version? This seems unrelated to the issue but may hint at a problem with your OS: 07-02 07:29:47.645 1314 2209 E ResilientAtomicFile: Failed to verity-protect shortcut package item
07-02 07:29:47.645 1314 2209 E ResilientAtomicFile: java.io.IOException: Failed to enable fs-verity on FD(726): Inappropriate ioctl for device Then suddenly, there's backup activity going on: 07-02 07:29:55.144 25293 25345 E ApkBackupManager: Error while writing APK for jp.co.canon.bsd.ad.pixmaprint
07-02 07:29:55.144 25293 25345 E ApkBackupManager: java.io.IOException: could not find nor create
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.plugins.saf.DocumentsStorageKt.createOrGetFile(DocumentsStorage.kt:166)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.plugins.saf.DocumentsStorageKt.createOrGetFile$default(DocumentsStorage.kt:156)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.plugins.saf.DocumentsProviderStoragePlugin.getOutputStream(DocumentsProviderStoragePlugin.kt:99)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackupManager$backUpApk$2.invokeSuspend(ApkBackupManager.kt:107)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackupManager$backUpApk$2.invoke(Unknown Source:8)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackupManager$backUpApk$2.invoke(Unknown Source:4)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackup.backupApkIfNecessary(ApkBackup.kt:119)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackupManager.backUpApk(ApkBackupManager.kt:105)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackupManager.backUpApks(ApkBackupManager.kt:72)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.ApkBackupManager.backup(ApkBackupManager.kt:49)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.AppBackupWorker.doBackup(AppBackupWorker.kt:142)
07-02 07:29:55.144 25293 25345 E ApkBackupManager: at com.stevesoltys.seedvault.worker.AppBackupWorker.doWork(AppBackupWorker.kt:123) @elem089 what backup destination to you back up to. It seems, it fails completely to create/get files on that type of destination, maybe related to that storage error above? Now our job got cancelled and we request a new backup which may yet be another loop: 07-02 07:30:07.354 25293 25343 E AppBackupWorker: Error backing up APKs:
07-02 07:30:07.354 25293 25343 E AppBackupWorker: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@2cc6cce
07-02 07:30:07.354 25293 25343 I AppBackupWorker: Requesting app data backup... (stopped: true)
07-02 07:30:07.354 25293 25343 D AppBackupWorker: Have requested backup.
07-02 07:30:07.355 25293 25341 E AppBackupWorker: Error backing up APKs:
07-02 07:30:07.355 25293 25341 E AppBackupWorker: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@4984d01
07-02 07:30:07.355 25293 25341 I AppBackupWorker: Requesting app data backup... (stopped: true)
07-02 07:30:07.355 25293 25341 D AppBackupWorker: Have requested backup.
07-02 07:30:07.356 25293 25344 E AppBackupWorker: Error backing up APKs:
07-02 07:30:07.356 25293 25344 E AppBackupWorker: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@43e3832
07-02 07:30:07.356 25293 25344 I AppBackupWorker: Requesting app data backup... (stopped: true)
07-02 07:30:07.356 25293 25344 D AppBackupWorker: Have requested backup.
07-02 07:30:07.356 25293 25337 E AppBackupWorker: Error backing up APKs:
07-02 07:30:07.356 25293 25337 E AppBackupWorker: kotlinx.coroutines.JobCancellationException: Job was cancelled; job=JobImpl{Cancelling}@dbe0adf
07-02 07:30:07.356 25293 25337 I AppBackupWorker: Requesting app data backup... (stopped: true)
07-02 07:30:07.356 25293 25337 D AppBackupWorker: Have requested backup. A re-try is expected, but that it happens so soon isn't. There should be some back-off. |
Device is OnePlus 6 (enchilada), ROM is LineageOS21 >> https://xdaforums.com/t/rom-official-enchilada-14-lineageos-21.4656607/
backups are going to local storage (on device).
yes, exactly. |
Ok, so we either need to add backoff here as well or not retry on failures.
There's something wrong with your storage. You could try to copy things around with the Files app that came pre-installed. It should have similar issues. If your storage is faulty or throws these kinds of errors, there's not much Seedvault can do unfortunately. |
Things can break, of course. But in fact I'm doing a lot of copying around on the device's storage and never had any trouble. |
With the Files app, or
Worth a try:
|
I'm most of the time using Total Commander but also the internal Files app that comes with LOS. For backing up stuff to my Windows PC I'm using the standard USB file transfer mechanism. Only very rarely I use adb pull or push commands
Yup, that's what I was thinking about. Maybe not today though ;) |
did as you wrote. Interesting: the new backup is ~25% smaller than the last backup before the reset. First log (right after setting the location): 2nd log from after first manual backup: |
Hi, I mentioned this a while ago as a side-note in a different issue (#696). This morning it happened again:
SeedVault is set for me to run backups every third day, and only while the device is being charged.
Every now and again I realize that the backup is caught in an infinite loop: looking at the notifications I observe that always the same few apks are being backup up, again and again. In that situation the device heats up significantly (some battery-monitoring app is telling something like 39°C).
This loop can be stopped by pulling the charger, the backup stopps immediately then (leaving the last notification in place, btw.; looks as if SeedVault wouldn't terminate properly, but I may be wrong).
This time I exported a log right after I had stopped the backup. I don't understand much of it, but the looping is obvious (line 11125 onwards).
Let me know if you need more info.
seedvault-14-4.0-1719898242473.zip
The text was updated successfully, but these errors were encountered: