-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Backup Failed #12404
Comments
Looks like it's struggling on an attachment. Any wonky recent attachments? |
Thank you Cody, I did delete all big ones... |
How long ago was that? Curious if some are still being cleaned up/deleted and that's causing the backup job to choke. |
It started yesterday, all was good til yesterday, I wonder if the latest version is causing that, I tried everything, deleted old backups, disabled backups, enabled again and again, disabled permissions and enabled again with no success, but I wonder why exactly the same % every time 20.3 % it fails. It started happening before deleting attachments. |
I can confirm since the update from version 5.45.6 to version 5.46.6 my backup fails as well (I did not receive any multimedia messages since the last successful backup with the previous version three days ago). debuglog
Maybe one of those:
|
Yes, since the last update. I tried everything ... Now I can do backups as usual. |
I just compared our logs mine is lacking the |
I can confirm the issue and got the same error as gkft. It worked fine until 2-3 days, got Signal 5.46.5 |
I can confirm as well. Same error message in debug log, happening since update to 5.46.6 two days ago. Using Android 11. |
Thanks, looking into it. |
For those that are encountering the issue, please include a debuglog. |
I have the same problem since a few days. Here is my debug log |
I believe I have the same issue. Debug log. I don't know if exceptions like the following play a role:
|
I'm having a similar issue that started after I updated to 5.46.6. I just updated to 5.47.0 and still the same. Android 12 on Pixel 6 Pro. |
Same issue since probably 10 days or so. Currently on 5.46.6. Lots of "Needed size calculation" messages before the stack trace, if this is relevant...
|
Thanks for the additional reports. Looks like there's two issues being reported. One (needed size calculation) has a clear fix and will be addressed in an upcoming release. The other is less clear. Can folks respond with where they are storing their backups? As in, are they being stored in internal storage, external, on device, etc.? |
I store mine on internal storage (Downloads, ~150GiB available). |
Mine are in /storage/emulated/0/Signal |
Mine is on /storage/emulated/0/Signal/Backups - and there is no way to change it. Tapping on the folder display does not bring up any dialog. This is internal storage. |
Mine are on internal storage, but in a custom non-default location, namely /storage/emulated/0/Backup/Signal (~200GB free space) fresh debug log here: https://debuglogs.org/android/5.46.7/38f382a773aeca0badca4d521ef008d20b1319f9dbbe689b55e3b51bc216d1a7 |
I have also been encountering this for the last week or so: as soon as I place my phone on the charger, Signal tries and immediately fails to create a backup. Attempted manual backups also fail immediately. Debug log after manually triggering a backup: https://debuglogs.org/android/5.46.6/663dd6e83eb1aaeddb531b7a7396108a7ae0ac45ae1565022ca972aa3de1fe40 As @mauriceKA mentioned, I also cannot change my backup location. It is currently |
Hi @cody-signal so the |
I have had the same issue for 1-2 weeks: Failed backup with the "File too short" exception. In the media section, I noticed that I had a lot of broken media from 2014-2015. They had no thumbnails, could not be displayed nor exported. The backup feature started to work again right after deleting these broken media. |
I have a similar issue of not being able to back up. Similarly, I am unable to select the backup folder location. My last backup was Aug. 20th. I am currently on version 5.47.3. Debug logs. |
Thanks for mentioning that, @simonbru - inspecting my media revealed several broken older media files, and removing them restored backup functionality. |
Indeed, some of the oldest stored media seems to have been broken. After removal the backup started working again. |
The old media problem seems to be fixed with 05c16e4, so it should not be necessary to search all chats for wonky attachments. |
I have the same problem. I deleted some old media files, but that didn't help. Can anyone help? |
My backup completed this morning on 5.48.3 👍🏻 |
My backup also completed successfully after upgrading to 5.48.3. 👍 |
Another notification of "Backup failed" at 08:59. I dutifully "tap to manage backuips" and there's nothing to indicate any issues. https://debuglogs.org/android/5.53.5/e25c2ab8962f543dea61c78ebebc6967499d392d57323eace8721a8ef6ec7ee8 |
Coming back to thread to note that the referenced solution above worked for me and it seems to be resolved. Steps taken:
|
Hi. 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. |
@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 |
@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
<#12404 (comment)>,
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. |
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
<#12404 (comment)>,
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
<#12404 (comment)>,
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$AM__6NnZmduQ5oDS8tZY51D7UmE(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
The text was updated successfully, but these errors were encountered: