Current Image - data error #image


Dave Phelps <dave.phelps@...>
 

2021-Feb-16 gives me a data error while trying to extract the image from the .xz file or writing it directly from the .xz file with the Raspberry Pi Imager utility and/or Balena Etcher.  No further details are listed by 7zip, just data error.  Raspi Imager util says Error extracting archive: Lzma library error: Corrupted input data, which I suspect is a generic message.

Downloaded multiple times.


Basil Gunn
 

Below are the byte count and md5sum that match what is on the server and
my build directory. Does the file that you download match?

gunn@bazaudi/var/www/downloads $ stat -c %s nwdr19.img.xz
1985647044
gunn@bazaudi/var/www/downloads $ md5sum nwdr19.img.xz
74343a95dc6614c256b7e36d7d76518e nwdr19.img.xz

This worked fine for me in Linux.
unxz nwdr19.img.xz


Dave Phelps <dave.phelps@gmail.com> writes:

2021-Feb-16 gives me a data error while trying to extract the image
from the .xz file or writing it directly from the .xz file with the
Raspberry Pi Imager utility and/or Balena Etcher. No further details
are listed by 7zip, just data error. Raspi Imager util says Error
extracting archive: Lzma library error: Corrupted input data, which I
suspect is a generic message.


Dave Phelps <dave.phelps@...>
 


md5 check sum does not match.  I've downloaded several times.

PS C:\Users\Irem\Downloads\DRAWS> get-filehash -Algorithm MD5 nwdr19.img.xz

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
MD5             C83DA4E8C2C5834431F5B7A70B217D79                                       C:\Users\Irem\Downloads\DRAWS...

Download again...
PS C:\Users\Irem\Downloads\DRAWS> get-filehash -Algorithm MD5 nwdr19.img.xz

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
MD5             7D81BD675AC551AE23C683E0724FCC6D                                       C:\Users\Irem\Downloads\DRAWS...

Name: nwdr19.img.xz
Size: 1985647044 bytes (1893 MiB)
CRC32: 1E9ACD5B
CRC64: 1F88F0A3CC20950D
SHA256: AA387F3DEB98B479BFCB6E5D8835005576912ABDB4B7458E3A363D259A289580
SHA1: 7DEB42A8CB41AC0419624018CABFE4BB767C9CE1
BLAKE2sp: CF69AAF0D1A8B1C99EAA9E71B7E9926654BF83D703312F9DB6EE4268D64B825F

So I guess even though the bytes match I'm not getting the same md5 as you, or even the same md5 per download.

And here's the extracted checksum info.  Definitely doing something wrong here.
Name: nwdr19.img
Size: 176160768 bytes (168 MiB)
CRC32: 07D0599B
CRC64: 12C7209035916FB8
SHA256: D9F88ACA324DDD0B61B165213F225F915D91C72F0D3939536FE5D522CF76045E
SHA1: DDB1A3A2237FF53742E3C2F88E740972F4583C51
BLAKE2sp: BDCD7831364CDA293AD1534ED729A1C5DDDD0B9C17E1828049EAFCDB59CC99C3


Basil Gunn
 

What method/program/browser are you using to download the file?
Perhaps others who are using Windows can recommend what they have
successfully used.

I just used wget in a Linux console to download & verify the
image.
wget http://nwdig.net/downloads/nwdr19.img.xz

You can get wget for Windows 10 from here:
https://builtvisible.com/download-your-website-with-wget/

Since you displayed them in your post here are the sha256 sums
for nwdr19.img & nwdr19.img.xz.

I would focus on getting proper check sums with the xz compressed file
first.

md5sum nwdr19.img.xz
74343a95dc6614c256b7e36d7d76518e nwdr19.img.xz

sha256sum nwdr19.img.xz
9c4d555c6315cfd480e934ae3d9023aa2c81cc681fad865673cac8c037d45417 nwdr19.img.xz

md5sum nwdr19.img
a4f33bbde2ca5c0e7bea95ab410822d3 nwdr19.img

sha256sum nwdr19.img
5b2eec569f6f3d1fce74d4eabca2682660bdbce0b3e27aca4e45744282df3fef nwdr19.img

Dave Phelps <dave.phelps@gmail.com> writes:

md5 check sum does not match. I've downloaded several times.

PS C:\Users\Irem\Downloads\DRAWS> get-filehash -Algorithm MD5 nwdr19.img.xz

Algorithm Hash Path
--------- ---- ----
MD5 C83DA4E8C2C5834431F5B7A70B217D79 C:\Users\Irem\Downloads\DRAWS...

Download again...
PS C:\Users\Irem\Downloads\DRAWS> get-filehash -Algorithm MD5 nwdr19.img.xz

Algorithm Hash Path
--------- ---- ----
MD5 7D81BD675AC551AE23C683E0724FCC6D C:\Users\Irem\Downloads\DRAWS...

Name: nwdr19.img.xz
Size: 1985647044 bytes (1893 MiB)
CRC32: 1E9ACD5B
CRC64: 1F88F0A3CC20950D
SHA256: AA387F3DEB98B479BFCB6E5D8835005576912ABDB4B7458E3A363D259A289580
SHA1: 7DEB42A8CB41AC0419624018CABFE4BB767C9CE1
BLAKE2sp: CF69AAF0D1A8B1C99EAA9E71B7E9926654BF83D703312F9DB6EE4268D64B825F

So I guess even though the bytes match I'm not getting the same md5 as you, or even the same md5 per download.

And here's the extracted checksum info. Definitely doing something wrong here.
Name: nwdr19.img
Size: 176160768 bytes (168 MiB)
CRC32: 07D0599B
CRC64: 12C7209035916FB8
SHA256: D9F88ACA324DDD0B61B165213F225F915D91C72F0D3939536FE5D522CF76045E
SHA1: DDB1A3A2237FF53742E3C2F88E740972F4583C51
BLAKE2sp: BDCD7831364CDA293AD1534ED729A1C5DDDD0B9C17E1828049EAFCDB59CC99C3


Dave Phelps <dave.phelps@...>
 

OK, so I've just been using Firefox to navigate to the download site and save it.

Used your WGet for windows and I still do not get the same checksum and extraction with 7Zip is still corrupted data.  Byte count is correct.
Kinda puzzled.  Downloading isn't really that hard to do.  Downloaded and burned a stock RPi image with no problems.

So, just to see what would happen, I broke out the toughbook and threw in the Linux Mint cage.  Wget in that and Bob's your uncle, correct byte count, md5sum, and extraction works. 

Strangely, download rate on that was only half what it was in the windows box.  Dunno if that could be related, it was kinda slow either way.


Basil Gunn
 

Kinda puzzled.
Yes. Me too. When I do a traceroute the server I use is currently in
Dallas/Fort Worth, Texas. I believe Texas is having some power issues.

Downloading isn't really that hard to do.
Agree.

So, just to see what would happen, I broke out the toughbook and threw
in the Linux Mint cage. Wget in that and Bob's your uncle, correct
byte count, md5sum, and extraction works.
Happy you got that to work.
Sorry I couldn't be more helpful.

Strangely, download rate on that was only half what it was in the
windows box. Dunno if that could be related, it was kinda slow either
way.
It took my Ubuntu 18.04.5 LTS machine 7m 23s to download the 1.85G file
with no errors. Even though I live on an island I have fiber.

wget http://nwdig.net/downloads/nwdr19.img.xz
--2021-02-18 21:59:45-- http://nwdig.net/downloads/nwdr19.img.xz
Resolving nwdig.net (nwdig.net)... 173.203.212.50
Connecting to nwdig.net (nwdig.net)|173.203.212.50|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1985647044 (1.8G) [application/octet-stream]
Saving to: ‘nwdr19.img.xz’

nwdr19.img.xz 100%[==============================================================================>] 1.85G 4.54MB/s in 7m 23s

2021-02-18 22:07:08 (4.28 MB/s) - ‘nwdr19.img.xz’ saved [1985647044/1985647044]


Mitch Winkle
 

It'd be interesting to try this in Win10's Linux bash shell, using Windows Sub-system for Linux.

https://docs.microsoft.com/en-us/windows/wsl/install-win10

open a std cmd.exe box, and type "bash" <Enter> to get the bash prompt.  Alternately, push the Windows button or click the Start button and type "wsl" and <Enter>.

sudo apt install wget -y

then try your wget from that prompt and compare your byte count and sum.

On 2/19/2021 20:02, Dave Phelps wrote:
...

So, just to see what would happen, I broke out the toughbook and threw in the Linux Mint cage.  Wget in that and Bob's your uncle, correct byte count, md5sum, and extraction works.
...


Dave Phelps <dave.phelps@...>
 

So I needed to download a different ISO.  Encounter same problem as with this DRAWS iso - cannot get checksum to match.  Multiple tries, multiple mirrors.  Torrent link will not resolve.
Pull out a win 7 box, download with no problem.  Well, crap, makes it look like my win 10 box is not working correctly.  Connect with VPN.  Suddenly, the same mirrors providing bad files work fine.  Checksum matches on multiple new downloads, torrent link resolves and I download that way.  checksum fine.  Redownload from mirrors that gave me bad checksum - now mysteriously gives good result.  Can't make it fail if I wanted to.
Weird problem to diagnose.  Use of the VPN seems to be giving me the results I need so that seems like it would rule out a windows or hardware based problem.  hmmmmmmmmmmmmmm

Anyway, off topic.  Just needed to vent a little.


Corky
 

Dave, if I were to guess, I would say you may have an undesired covert "helper" app running in the background that gets cut out by the VPN. I might suggest a very good and deep virus/malware scan or three.

Thanks and 73,
-Corky, AF4PM


On Sat, Feb 20, 2021, at 12:54 PM, Dave Phelps wrote:
So I needed to download a different ISO.  Encounter same problem as with this DRAWS iso - cannot get checksum to match.  Multiple tries, multiple mirrors.  Torrent link will not resolve.
Pull out a win 7 box, download with no problem.  Well, crap, makes it look like my win 10 box is not working correctly.  Connect with VPN.  Suddenly, the same mirrors providing bad files work fine.  Checksum matches on multiple new downloads, torrent link resolves and I download that way.  checksum fine.  Redownload from mirrors that gave me bad checksum - now mysteriously gives good result.  Can't make it fail if I wanted to.
Weird problem to diagnose.  Use of the VPN seems to be giving me the results I need so that seems like it would rule out a windows or hardware based problem.  hmmmmmmmmmmmmmm

Anyway, off topic.  Just needed to vent a little.