xeals / signal-back

Decrypt Signal encrypted backups outside the app
Apache License 2.0
704 stars 67 forks source link

failed to format output: consume [avatar]: can't read attachment of length 0 #47

Open kleajmp opened 5 years ago

kleajmp commented 5 years ago

commands tried:

error: failed to format output: consume [avatar]: can't read attachment of length 0

Detailed description

the format commands is always giving me this error. extracting media files from my encrypted backup using the extract command worked fine.

rSSi commented 5 years ago

+1 Same here. Extractin media works fine, but no text

spencerross commented 5 years ago

Forgive me if I am wrong, but I was having a similar issue- and after reading the help document more carefully, I found that using "-p" means you're specifying the password and not a password file. In order to specify the password file, use a capital p, "-P password.txt"

rSSi commented 5 years ago

you are right about the option -p! it's supposed to be capital P!! but it does not produce a clear error message in the form of: "option -p expects password from stdin" or "password file given, manual input expected, terminating" :) it just spits out a bunch of errors that i can not interpret. but it should not be able to extract media, because no password is supplied!?

i have found that in my case the process runs out of memory. i will try it on a machine with more ram.

rSSi commented 5 years ago

I tried to convert the backup file to XML on a more recent machine and it took ~29GB of Ram to process a ~3.1GB file. What you get is a XML file with all the media inline (i'm guessing Base64 encoded?) sized ~6.5GB.

Snoopfr commented 5 years ago

I have this problem too. My machine has 8GB of RAM

My signal file is 263MB, I don't think the problem is related to memory. I tried it on windows and linux but the message is the same Can you help me please

Snoopfr commented 5 years ago

I succeeded by making a new backup from Signal

ghost commented 4 years ago

Check if the password is actually correct!

TM818 commented 4 years ago

I'm getting the same issue too, I'm trying everything. Tried two different Signal backup files, double-checked the password, tried entering the password manually and with the password file, tried all 3 different output types (raw, XML, CSV), and I always get the:

error: failed to format output: consume [avatar]: can't read attachment of length 0

...error. It's a real problem, I need this output for legal issues. A shame this has been abandoned. I've tried this using build binaries on MacOS and Centos, I've tried using the prebuilt binary on Windows, same issue.

I'm guessing this utility is simply no longer compatible with new versions of Signal (I'm trying this in May of 2020).