Closed zjabri closed 1 year ago
And another debug log after a failed manual back-up: https://debuglogs.org/android/5.51.7/c17b0946dff2edb67f424b28c0aa8a7c3530efb33d527edb2d15d1fd7a73fe97
Anything of update here? Thanks.
@mikefonnesbeck Looks like we lose permission to writing to the backup file while we're in the middle of writing it :/
@r-eule Looks like we're trying to rename a file that doesn't exist...
We have someone looking into these issues this week.
@hslh @r-eule can you try changing your backup location to a different folder other than Downloads and see if that changes anything? Preferably one that you make just for backups at the root of the storage space?
@mikefonnesbeck are you also using the download folder or somewhere else?
Changing the backup folder appears to have resolved the issue for me. Thank you!
@cody-signal @greyson-signal thank you for the responses. I tried deleting the backup file and re-enabling chat backups. I created a new folder under Signal/Backups and selected that folder. Then tried to back it up and it failed & crashed again. So I disabled backups and deleted the backup file, re-enabled and just selected the Signal folder. Again it failed & crashed. So I tried one more time but selected the Download folder of my phone and Signal gave an error that that folder was not secure and to select a different folder. So I have gone back to just the Signal folder but it keeps failing and crashing.
@mikefonnesbeck thanks for the detailed response, can you provide a new debuglog after all that?
I made a dedicated new folder at the root of internal storage and that fixed it, thanks!
I'm seeing this backup failed notification intermittently as well. There is no UI feedback in the notification or the backup screen as to what the problem is. A manual "create backup" appears to work. https://debuglogs.org/android/5.53.4/5805af39281fd0fa88c799a00c476c6d135c0f16d1815f43c7f0e7b4e30a094f
Changing the backup location from Downloads to another folder worked for me. Thanks!
I can't change the location of the backups! When I click on the location parameter, nothing happens.
@thewholelifetolearn Can you share a log taken after you click and nothing happens?
Ah, actually, @thewholelifetolearn the UI isn't great here. You have to turn off backups and then re-enable them to choose a new location. I'm aware this isn't great.
Is there any work being done on the error status aspect (it's not been mentioned here)? A consistent issue is that the 'backup failed' notificaiton pops up, I go as instructed to the backup screen and there is no info there about the failure.
Hi @hslh for the new folder you created, did you have to change permissions or anything? I tried this, creating a new folder at the base, it asked for Signal to have access which I gave it access, but the backup still fails and Signal crashes.
Hi @hslh for the new folder you created, did you have to change permissions or anything? I tried this, creating a new folder at the base, it asked for Signal to have access which I gave it access, but the backup still fails and Signal crashes.
Hi, I followed those exact steps, create a folder, Signal asked for access, approved that, and it worked. No extra steps or permissions necessary.
When I go to SETTINGS | APPS | SIGNAL | PERMISSIONS | FILES AND PERMISSIONS - I see that Signal has permission to "Allow access to media only". It doesn't give me the option to allow access to files. Is there a way to set this access somewhere?
@greyson-signal did you get a chance to look at my debug log from after I changed the backup folder?
I am guessing this is the pertinent part of the DEBUG log, which seems to indicate that it still does not have access to write the backup. I don't know what changed. Backups have been working forever and now all of sudden it can't write it 👍
[5.52.5] [64388] 2022-10-19 11:04:26.170 MDT W LocalBackupJobApi29: Backup failed. Deleted temp file [5.52.5] [64388] 2022-10-19 11:04:26.176 MDT I GenericForegroundServic: Stopping foreground service id=0 [5.52.5] [main ] 2022-10-19 11:04:26.180 MDT I GenericForegroundServic: handleStop() [5.52.5] [main ] 2022-10-19 11:04:26.180 MDT I GenericForegroundServic: Last request. Ending foreground service. [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: Encountered a fatal exception. Crash imminent. [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: java.lang.SecurityException: com.android.externalstorage has no access to content://media/external_primary/file/1000000417 [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.os.Parcel.createExceptionOrNull(Parcel.java:2438) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.os.Parcel.createException(Parcel.java:2422) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.os.Parcel.readException(Parcel.java:2405) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:153) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:780) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2034) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1849) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at android.content.ContentResolver.openInputStream(ContentResolver.java:1525) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at org.thoughtcrime.securesms.jobs.LocalBackupJobApi29.verifyBackup(LocalBackupJobApi29.java:187) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at org.thoughtcrime.securesms.jobs.LocalBackupJobApi29.onRun(LocalBackupJobApi29.java:142) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at org.thoughtcrime.securesms.jobs.BaseJob.run(BaseJob.java:32) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at org.thoughtcrime.securesms.jobmanager.JobRunner.run(JobRunner.java:86) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: at org.thoughtcrime.securesms.jobmanager.JobRunner.run(JobRunner.java:49) [5.52.5] [64388] 2022-10-19 11:04:26.180 MDT E BaseJob: [5.52.5] [64388] 2022-10-19 11:04:26.181 MDT E JobRunner: [JOB::86d3e2ca-af96-4dcf-adfb-2485ac4e280b][LocalBackupJobApi29][2] Job failed with a fatal exception. Crash imminent. (Time Since Submission: 4299 ms, Lifespan: Immortal, Run Attempt: 1/3, Queue: __LOCAL_BACKUP__) [5.52.5] [64388] 2022-10-19 11:04:26.187 MDT E SignalUncaughtException: [5.52.5] [64388] 2022-10-19 11:04:26.187 MDT E SignalUncaughtException: java.lang.SecurityException: com.android.externalstorage has no access to content://media/external_primary/file/1000000417
OK UPDATE --
I kept trying different folders to back up chats. Finally when I selected my "Documents" folder the backup succeeded!
I went back and tried a bunch of other folders including the Signal folder, and a few others, and those all failed. So switched back to the Documents folder and it works. So I am sticking with that for now as it seems to work. For the Signal team I wonder why this is the only folder that would work ... ?
Thanks everyone for your help.
-M
Is there any work being done on the error status aspect (it's not been mentioned here)?
@mr-brunes Nothing currently planned, but probably something we should work on. Can you post a recent debuglog so I can see what you're running into?
@cody-signal It would be good to have some improvements to help solve the mystery! I posted a debug log a couple of days back. No backup failed notifications since.
Another notification of "Backup failed" at 08:59.
I dutifully "tap to manage backuips" and there's nothing to indicate any issues. I tap "Create backup"(Last backup was Sat) and it seems to create it successfuly (well I glanced away and it now says "Last backup: Now" . Head scratched.
https://debuglogs.org/android/5.53.5/e25c2ab8962f543dea61c78ebebc6967499d392d57323eace8721a8ef6ec7ee8 The only thing that jumps out to me as a layman is: "Unable to start foreground service ... Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service org.thoughtcrime.securesms/.service.GenericForegroundService"
Worth noting the temporary backup files created during crash are not deleted during the backup failure. I've had to delete multiple 2+ GB working files as one is left each time the backup fails.
Coming back to thread to note that the referenced solution above worked for me and it seems to be resolved.
Steps taken:
Hi. Finally I was able to try change the backup location as suggested. It worked like the previous poster (dcgomez) described it. The manually triggered backup worked without problem.
The UI is really not good at this point.
Thank you @greyson-signal and @cody-signal for looking in the debug-log and finally providing a solution.
Hi just added a new debug log https://debuglogs.org/android/5.52.5/cafede2fbb53cb3908c790bcef6c0e4f45e02a5d2fc03c9a65627953de3ee929
Looking through I can see an error popping up regularly for LiveRecipient.
I have read through the other posts and tried to clear out any old backups, still have the same issue
Another backup failed notification this morning, but manual backup appears to work fine. https://debuglogs.org/android/5.53.5/a7af9dac014678384268392023e7311cfa82541d12b6ec223ca0bf0d5ea13d74
@PeterPilley try using a different directory for your backups. Some folks have had permissions issues with Downloads.
@mr-brunes Yeah, so the problem is we aren't getting the right conditions to run in the background like we should, and so it fails. But when you start with us already in the foreground via the UI, it'll work. We'll have a tweak out for this shortly.
@PeterPilley try using a different directory for your backups. Some folks have had permissions issues with Downloads.
@mr-brunes Yeah, so the problem is we aren't getting the right conditions to run in the background like we should, and so it fails. But when you start with us already in the foreground via the UI, it'll work. We'll have a tweak out for this shortly.
@cody-signal I can't do that unfortunately. If I click chat backups under settings the app crashes. Do I need to reinstall
@cody-signal that's good to know!
Hi, I am facing the same error on Signal 5.47.3, with "Backup failed / Tap to manage backups."
Any updates? I see that some users have had success by changing the backup directory but I had no luck there.
Debug log (let me know if you need more than this)
100% working (for me) also look: dcgomez
https://github.com/signalapp/Signal-Android/issues/12404#issuecomment-1289400901
@andrepd are you still experiencing this issue? Can you send me an updated debuglog link?
Hi, the trick was to change the directory. In the same folder (DOWNLAD) it no longer worked. (Delete backup and create new one failed) Now I save the Backup in Dokuments and IT works. attached the log where it works again.
https://debuglo.txt https://drive.google.com/file/d/1GafQjHh6RVYfHbwZngXYz2hoiaD9UMJZ/view?usp=drivesdk schnappy
Cody Henthorne @.***> schrieb am Di., 13. Dez. 2022, 15:57:
@andrepd https://github.com/andrepd are you still experiencing this issue? Can you send me an updated debuglog link?
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Android/issues/12404#issuecomment-1348747261, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4XB6COHJ6IWNT5J4RXVB4DWNCFHDANCNFSM57A5CHPA . You are receiving this because you commented.Message ID: @.***>
Hello, I am having a similar issue on 6.5.6. I have tried enabling backups several times on different folders on my SD card. My phone does not have enough free internal storage to store a backup, so I have been unable to test that.
The backup gets to 100%, is checked for a little while, then the notification appears saying the backup failed. I have attached a debug log. signal-log-1671716424073.zip
I found a similar thread where an SD card formatted as fat32 was causing the issue.
I am fairly sure I was using exfat on my sd card before, but after formatting it again (as exfat), backups started working so who knows.
I have a maybe similar issue:
it's probably been one year I cannot backup.
I see a file read IO Error without further description in the logs which does not allow me to find which files might be problematic and delete them.
In total, if successful the backup would probably be 10-15Gb and internal storage free space is not an issue.
I have been having the same problem since about mid-August 2022. Backup used to be stored on my device.
Currently on version 6.13.6
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@TriniKat13 your backup is failing when trying to rename the file. Have you tried using a custom folder instead of a default primary? It seems using folders like Document or Download can cause problems.
Thanks, Cody. Are you able to provide some instructions on how to do that?
Kathie
On Fri, May 12, 2023 at 8:41 AM Cody Henthorne @.***> wrote:
@TriniKat13 https://github.com/TriniKat13 your backup is failing when trying to rename the file. Have you tried using a custom folder instead of a default primary? It seems using folders like Document or Download can cause problems.
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Android/issues/12404#issuecomment-1545682276, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6OBTLYZDORKNZ4ZULY7NB3XFYVV3ANCNFSM57A5CHPA . You are receiving this because you were mentioned.Message ID: @.***>
You can go into Settings->Chats->Backup and then disable and re-enable backups to pick a new folder (I know, not great). Make sure to record the new password that is generated.
Thank you - it worked!!! I really appreciate your time. Have a great day.
Kathie
On Fri, May 12, 2023 at 12:00 PM Cody Henthorne @.***> wrote:
You can go into Settings->Chats->Backup and then disable and re-enable backups to pick a new folder (I know, not great). Make sure to record the new password that is generated.
— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Android/issues/12404#issuecomment-1545963389, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6OBTL6OMP4ZPEX42UCXWEDXFZNCJANCNFSM57A5CHPA . You are receiving this because you were mentioned.Message ID: @.***>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to inactivity.
I lost my chats and it costed me a week to find this page on GitHub. Could this solution, give Documents folder as backup folder, be added to the FAQ of Signal app?
Let's begin with a checklist: Replace the empty checkboxes [ ] below with checked ones [x] accordingly. -->
Bug description
Since yesterday I am unable to make chat backups anymore, every time I try it stops on 20.3% with a notification (backup failed tap to manage backups).
Steps to reproduce
Device info
Oneplus 7 pro
Android 12 (Crdroid 8.8) Signal version: 5.46.6
Link to debug log
08-19 09:45:43.762 17173 17173 W DocumentFile: Failed query: java.lang.IllegalArgumentException: Failed to determine if primary:Signal Backups/.backup****----**37.tmp is child of primary:Signal Backups: java.io.FileNotFoundException: Missing file for primary:Signal Backups/.backup****----**37.tmp at /storage/emulated/0/Signal Backups/.backup****----**37.tmp 08-19 09:45:43.770 17173 17173 E EventBus: Could not dispatch event: class org.thoughtcrime.securesms.backup.BackupEvent to subscribing class class org.thoughtcrime.securesms.preferences.BackupsPreferenceFragment 08-19 09:45:43.770 17173 17173 E EventBus: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.endsWith(java.lang.String)' on a null object reference 08-19 09:45:43.770 17173 17173 E EventBus: at org.thoughtcrime.securesms.util.BackupUtil.getAllBackupsNewestFirstApi29(BackupUtil.java:155) 08-19 09:45:43.770 17173 17173 E EventBus: at org.thoughtcrime.securesms.util.BackupUtil.getAllBackupsNewestFirst(BackupUtil.java:131) 08-19 09:45:43.770 17173 17173 E EventBus: at org.thoughtcrime.securesms.util.BackupUtil.getLatestBackup(BackupUtil.java:71) 08-19 09:45:43.770 17173 17173 E EventBus: at org.thoughtcrime.securesms.util.BackupUtil.getLastBackupTime(BackupUtil.java:42) 08-19 09:45:43.770 17173 17173 E EventBus: at org.thoughtcrime.securesms.preferences.BackupsPreferenceFragment.setBackupSummary(BackupsPreferenceFragment.java:169) 08-19 09:45:43.770 17173 17173 E EventBus: at org.thoughtcrime.securesms.preferences.BackupsPreferenceFragment.onEvent(BackupsPreferenceFragment.java:148) 08-19 09:45:43.770 17173 17173 E EventBus: at java.lang.reflect.Method.invoke(Native Method) 08-19 09:45:43.770 17173 17173 E EventBus: at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:485) 08-19 09:45:43.770 17173 17173 E EventBus: at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:479) 08-19 09:45:43.770 17173 17173 E EventBus: at org.greenrobot.eventbus.HandlerPoster.handleMessage(HandlerPoster.java:67) 08-19 09:45:43.770 17173 17173 E EventBus: at android.os.Handler.dispatchMessage(Handler.java:106) 08-19 09:45:43.770 17173 17173 E EventBus: at android.os.Looper.loopOnce(Looper.java:201) 08-19 09:45:43.770 17173 17173 E EventBus: at android.os.Looper.loop(Looper.java:288) 08-19 09:45:43.770 17173 17173 E EventBus: at android.app.ActivityThread.main(ActivityThread.java:7833) 08-19 09:45:43.770 17173 17173 E EventBus: at java.lang.reflect.Method.invoke(Native Method) 08-19 09:45:43.770 17173 17173 E EventBus: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 08-19 09:45:43.770 17173 17173 E EventBus: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 08-19 09:45:43.876 17173 17300 W LocalBackupJobApi29: Backup failed. Deleted temp file 08-19 09:45:43.879 17173 17300 I GenericForegroundServic: Stopping foreground service id=0 08-19 09:45:43.881 17173 17173 I GenericForegroundServic: handleStop() 08-19 09:45:43.881 17173 17173 I GenericForegroundServic: Last request. Ending foreground service. 08-19 09:45:43.881 17173 17300 W BaseJob : [JOB::a6b00639-bf3b-466c-8a53-57afe1807b82][LocalBackupJobApi29] Encountered a failing exception. (Time Since Submission: 112302 ms, Lifespan: Immortal, Run Attempt: 1/3, Queue: LOCAL_BACKUP) 08-19 09:45:43.881 17173 17300 W BaseJob : java.io.IOException: Prematurely reached end of stream! 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.crypto.ModernDecryptingPartInputStream.readFully(ModernDecryptingPartInputStream.java:78) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.crypto.ModernDecryptingPartInputStream.createFor(ModernDecryptingPartInputStream.java:64) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.crypto.ModernDecryptingPartInputStream.createFor(ModernDecryptingPartInputStream.java:28) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.openAttachmentStream(FullBackupExporter.java:435) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.calculateVeryOldStreamLength(FullBackupExporter.java:419) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.exportAttachment(FullBackupExporter.java:374) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.lambda$internalExport$5(FullBackupExporter.java:175) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.$r8$lambda$AM6NnZmduQ5oDS8tZY51D7UmE(Unknown Source:0) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter$$ExternalSyntheticLambda6.postProcess(Unknown Source:8) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.exportTable(FullBackupExporter.java:346) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.internalExport(FullBackupExporter.java:175) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.backup.FullBackupExporter.export(FullBackupExporter.java:123) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.jobs.LocalBackupJobApi29.onRun(LocalBackupJobApi29.java:118) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.jobs.BaseJob.run(BaseJob.java:32) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.jobmanager.JobRunner.run(JobRunner.java:86) 08-19 09:45:43.881 17173 17300 W BaseJob : at org.thoughtcrime.securesms.jobmanager.JobRunner.run(JobRunner.java:49) 08-19 09:45:43.882 17173 17300 W JobRunner: [JOB::a6b00639-bf3b-466c-8a53-57afe1807b82][LocalBackupJobApi29][2] Job failed. (Time Since Submission: 112303 ms, Lifespan: Immortal, Run Attempt: 1/3, Queue: __LOCAL_BACKUP) 08-19 09:47:23.205 17173 17173 D BaseActivity: [AppSettingsActivity] onStart() 08-19 09:47:23.208 17173 17173 I ApplicationContext: App is now visible. 08-19 09:47:23.208 17173 17173 D FrameRateTracker: Beginning frame rate tracking. Screen refresh rate: 90.00 hz, or 11.11 ms per frame. 08-19 09:47:23.208 17173 17173 D DeadlockDetector: Beginning deadlock monitoring. 08-19 09:47:23.209 17173 17173 D ApplicationContext: onStart() took 1 ms 08-19 09:47:23.209 17173 17257 I FeatureFlags: Skipping remote config refresh. Refreshed 3729019 ms ago. 08-19 09:47:23.209 17173 17257 I RetrieveProfileJob: Too soon to refresh. Did the last refresh 42792384 ms ago. 08-19 09:47:23.211 17173 17260 D IncomingMessageObserver: Network: true, Foreground: true, FCM: true, Stay open requests: [], Censored: false, Registered: true, Proxy: false 08-19 09:47:23.211 17173 17260 I IncomingMessageObserver: Making websocket connection.... 08-19 09:47:23.211 17173 17260 I WebSocketConnection: [normal:42632444] connect()
Thank you for help