-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Can't backup because of broken attachment: size mismatch #139
Comments
This is still happening on v6.3.6-1-FOSS. |
Sorry for that. Can you share the debug log please? In Settings > Help > Debug log. |
Hi, here you go. |
I don't really know the codebase or anything so I may be really off base, but both of our logs have
|
This is a known issue in Signal. The problem is that there is at least one attachment saved in the database whose metadata is corrupted and it's blocking the backup when the application tries to read it. You can try to delete the broken attachment. To do so, go to Settings > Data and Storage > Manage storage > Review storage and search for one file that cannot be open. Probably the thumbnail will be shown black. Once you delete it from the database, the backup will work again. |
I have a whole lot of attachments. I can't possibly go trough all of them by hand. Would it be possible to implement a workaround to search and delete them or to ignore the corrupted media (skip with a warning or include anyways) during a backup? |
Signal is able to backup just fine, so I'm a bit confused as to why signal works but not Molly? |
As I said, you probably have one broken attachment saved in Molly but not in Signal. |
I restored from backup created by signal so they must have the same attachments no? |
Haven't received any attachment since the restore? If so, please do a test. Try to restore the same backup file in Signal itself, and see if you got the same issue. |
I have received new attachments since moving to molly, but this issue has always been prevalent, even before I did receive a new attachment Not sure what version I started with. Would it be possible to implement code that skips broken attachments and warn the user that X amount of attachments weren't backed up due to being corrupt? |
What currupts the attachment and how do you know when they are corrupted and break the back up? Maybe i can look into fixing it. |
After using Molly myself for a while now I had no issues until I restored a backup. After restoring it kept wining and wouldn't back up. Is it the same for y'all? Maybe it's something wrong when restoring the backup that breaks it? |
I'm going to start investigating this. I was reluctant to do so because it seemed to be a Signal issue. If I don't find the root cause, I will implement a workaround anyway. Thanks for the reporting. If you find any more particular cases that leads to this bug, please add it here. It will speed up the troubleshooting. |
I have the same issue. I do not know exactly since when but it may happen only since restoring my old backup. LineageOS 19.1 https://debuglogs.org/android/6.9.2/a8df403c7722a3ce839f1545051625f1b1ed5483b647aadc316956d1eb5640a6 I have too many attachements to search in. But I will try to find any broken attachements. |
Found a couple of places that could cause attachments to be badly recorded in the database. I'm not familiar with that codebase so I'd rather not touch anything. Instead I added a quick workaround that deletes the broken attachment while the backup is running. It has no side effects as the attachment cannot be read anyway. The backup will still fail but next backup should work fine since the broken attachment has been deleted, assuming there is only one broken attachment. If there are more, it would take more attempts. |
As many times as I've restarted the backup now, I think that for me the fix didn't work and it's probably some other error with the database and there are no broken attachements. |
Same here. I have run it 5 times, but the backup always fails at 95.8% and still the same error message: |
Should be in 6.11: https://github.com/mollyim/mollyim-android/wiki/Changelog |
Didn't see that a new release dropped. I'm gonna check if it works for me. |
After running it for 4-5 times it still doesn't work for me. |
6.11.7 didn't work for me. |
Please refer to my previous comment #139 (comment) to understand the solution, as this is my second attempt to fix this. |
Latest release still fails to backup. |
For me it works now... |
It currently only deletes one broken attachment at a time, so you might need to start the backup multiple times. What is important is, that it shouldn't always fail at the same percentage. |
Failed at 98.3% then 98.6% then 98.6% again, then completed. Would be a bit user friendlier if it handled all the broken attachments at once, but as of right now it seems to be working at least, thanks. |
You're correct in that I did a "quick" fix. There are more effective methods to address this issue. |
I am still having this issue and can't get past 95.6% no matter what I do. Version 6.40.1-FOSS |
Is there an existing issue for this?
Bug description
I cannot use the backup functionality. Everytime i'm trying to make a backup it fails with the following message.
Steps to reproduce
Molly version
v5.52.5-1-FOSS
Android version
Android 13
Device
Google Pixel 6
Link to debug log
https://debuglogs.org/android/5.52.5/161649a5785d6347132b83872e22607214d126445d33c663d25433ed1aa9023d
The text was updated successfully, but these errors were encountered: