I am unable to create a backup ever since plaintext backups were removed. I have searched for other issues and found them related to external storage, however my phone has no removable storage. Tapping "Create backup" causes my conversation history in all conversations to disappear and my phone cannot send or receive any messages until Signal is killed or my phone is restarted.
I'm not really a technical user at all and didn't understand if this is the same as #7802. If so, feel free to close this issue.
Actual result:
Expected result:
Backup would work and not freeze Signal
Device: Google Nexus 5x
Android version: 8.1 (LineageOS 15.1)
Signal version: 4.19.3
I'm not really a technical user at all and didn't understand if this is the same as #7802.
It probably is, but we can't tell without a debug log. Could you capture one and post a link?
Sure, but first I wasn't able to find if this log would contain any personally identifiable information on this page https://support.signal.org/hc/en-us/articles/115005925767-How-do-I-send-you-a-debug-log-
EDIT: When I go to submit a bug report after tapping "Create backup", it only shows "Loading logs..." but never actually loads the log. I think this is because signal is freezing up and needs to be restarted.
I wasn't able to find if this log would contain any personally identifiable information
Debug logs are stripped of personal information.
When I go to submit a bug report after tapping "Create backup", it only shows "Loading logs..." but never actually loads the log.
Do you know how to use the logcat command?
Hi. Here's a log I was able to capture immediately after pressing "Create backup". If I had waited another 30 seconds or so, the logs would not be accessible, so hopefully it was not taken too early to capture what is going on.
https://debuglogs.org/76984822f8a24bc7332d582d4edf49915680ed4ece4ecf5193ff99cdb065ded3
Confirmed issue here as well. I'm trying to change phones and seems impossible until this is fixed. I was able to find a singal.blah.backup file, but no matter where i put that file it is not picked up by the app.
@madfusker Signal looks for the encrypted backup file in your external SD card (/storage/NNNN-NNNN typically where N is a number) under: Android/data/org.thoughtcrime.securesms/files/Signal/Backups/signal-YYYY-MM-DD-hh-mm-ss.backup . Signal only picks it up (per another comment under one of the backup threads) when it is freshly installed and has not otherwise been setup. In that case it will prompt for your passphrase (the 6 sets of 5 digits given when you enable backups).
Not that I've been able to get a working backup file, but I'm trying! 馃槃
That worked and I was able to restore, thanks! Note that I had to manually create each directory and then open signal for the app to see it. This was after wiping the app cache/settings.
What I noticed in settings now is that I have a "last backup" data and time from my original backup file (last night at 11:25pm), however hitting backup again doesn't change it.
Here is what I think might be happening: Signal is looking in this specific location for the backup file to read time and date, however the backup file creation is failing without error. If the file is never created, the last backup is still "never" after it appears to create the backup. Unless you have a file put there manually, in which it reads that file as the last backup and displays it. I am not really sure how I got it created on the last phone actually. Somehow I found it after searching but don't remember the location.
@madfusker That looks like you might have the problem in #7692 . You should be able to check the debug log after attempting to create an updated backup to confirm that. Basically the file is not being created properly. Signal can successfully read the SD card for import but creating a new backup doesn't work. If you need to create a new backup ejecting and then physically removing the SD card seems to do the trick by causing the backup to be created on the internal partition (/storage/self and then Signal/Backups or similar) per steps at the bottom of the 7692 comment chain.
I have this same error. Here's the output from logcat:
05-22 10:53:14.415 10562 10848 W JobConsumer:
05-22 10:53:14.415 10562 10848 W JobConsumer: java.io.IOException: Renaming temporary backup file failed!
05-22 10:53:14.415 10562 10848 W JobConsumer: at org.thoughtcrime.securesms.jobs.LocalBackupJob.onRun(LocalBackupJob.java:78)
05-22 10:53:14.415 10562 10848 W JobConsumer: at org.whispersystems.jobqueue.JobConsumer.runJob(JobConsumer.java:76)
05-22 10:53:14.415 10562 10848 W JobConsumer: at org.whispersystems.jobqueue.JobConsumer.run(JobConsumer.java:46)
Further investigation reveals that it created /sdcard/Signal/Backups/signal-YYYY-MM-DD-HH-mm-ss.backup but then failed to copy it to the actual sdcard (which is under /external_sd on my device). Manually copying that file to the right location (see comment by @velosol above) does cause Signal to recognize that a backup exists.
My phone does not have any external sd card. This is a nexus 5x experiencing this issue.
Sorry myself and the other 2 more recent posters were ultimately off-topic to your issue.
I haven't looked at a lot of the Signal code, but based on your debug log I was wondering if you were running any greenify, memory manager, task killer, etc type programs? If so, could you pause them or exclude Signal from them and retry the backup?
When you press' Create Backup' if you just hang out on that screen for 2-3 minutes, ideally without screen timeout, do you ever see more than '0 messages so far'? Just trying to figure out if Signal is even starting on the backup. If it doesn't even get to this point it may be that using logcat as @nrizzio alluded to will be necessary.
How long have you waited for Signal to create the backup? It can take tens of minutes or more depending on the size of your messages. If you go to your phone's Settings -> Apps -> Signal, how much space is listed under 'Storage'? I have ~1GB worth of messages and it took 10 minutes or so to create a backup on a phone from a similar era as your 5X.
Edit: of course your message list shouldn't also disappear during the backup, but I'm assuming you're more concerned about getting a working backup first.
Hi velosol. I don't use any memory manager or task killers. In fact I have very few non-default apps installed on my phone. This phone does have only 1 GB memory though. I went into storage and it appears Signal is using ~1.5 GB of storage space. When I click Create Backup and try to keep the screen active for ~10 minutes, nothing happens. If I minimize Signal or click the back button and then immediately go back to the "Chats and media" settings, the progress bar is gone and it says Last backup: none. I'm willing to try whatever logcat is if someone wants to explain how to do that. I really wish Signal would have left the option to export a plaintext backup alongside the new encrypted backup.
For logcat I assume you're already familiar with Android Debug Bridge (ADB) as you're running Lineage OS. If not you might want to Google for instructions for your computer setup and for the ADB drivers for your phone. The CliffsNotes are: download it from https://developer.android.com/studio/command-line/adb, enable Developer Options in your phone (tapping the software build number under System Info 7 times) then enabling USB Debugging under Developer Options. I'm not suggesting the following steps are the most efficient as I haven't done Android dev in a long time but they do work.
adb devicesadb shell then ps | grep thoughtcrime then exitu0_n534 12345 2047 1284524 ... we want the second entry, in this example 12345adb logcat --pid=12345 > signal.logNow you'll have a file named signal.log in the directory you're in. The problem is this won't be scrubbed of personal data. The minimum I would search for is phone numbers in the form of: +[countrycode][number] and then replace with +NN where NN are the original final 2 numbers of the phone number (e.g. for North America: +11234567890 to +**90) to have the log match the in-app version somewhat. Then you could post the log on pastebin.com or similar.
I hope someone else will chime in if there are better ways to approach getting a logcat when the built-in one doesn't work.
Thanks for the instructions velosol.
I finally got the 4.20.18 update and everything is working perfectly with backups. The release notes said it included a fix for backups on devices with external storage, but it also fixed my backup issues as well even though I don't have external storage. Thanks everyone.
Most helpful comment
@madfusker That looks like you might have the problem in #7692 . You should be able to check the debug log after attempting to create an updated backup to confirm that. Basically the file is not being created properly. Signal can successfully read the SD card for import but creating a new backup doesn't work. If you need to create a new backup ejecting and then physically removing the SD card seems to do the trick by causing the backup to be created on the internal partition (/storage/self and then Signal/Backups or similar) per steps at the bottom of the 7692 comment chain.