question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Unknown error" when writing .img.xz file on Windows

See original GitHub issue
  • Etcher version: 1.0.0-beta.10
  • Operating system and architecture: Windows 10 x64, Insider Preview build 14385
  • Do you see any meaningful error information on DevTools? Do I see anything? Yes. Meaningful? No. Just an error object with the same information as shown below.

When I attempt to flash an image (.img.xz) to an SD card, the operation often opens the UAC dialog for verification and then sits there with the message “Starting…” until I quit the application. When it gets past that, it progresses to around the 80% mark and then slows, before throwing an error (pictured below). The image that was written is corrupted, so Etcher did not successfully complete the imaging operation by the time the error was thrown.

I can’t find any useful info in the dev console and there are no other logs as far as I can tell, so past this screenshot I don’t have anything to go off of.

image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:53 (46 by maintainers)

github_iconTop GitHub Comments

1reaction
WasabiFancommented, Jul 14, 2016

Using the “One retry” version, I ran it 6 times and every time it got past the “Starting…” phase when it previously threw the diskpart errors. I tried multiple drives and various other configurations, and every time it worked as it should have up to that point. It did not fix the later error (the original one mentioned in this issue), but as far as I can tell the diskpart ones are resolved. Reinstalling the standard beta 10 brought the error back first try.

So, I think that’s the fix to go with. However, it would be great if it warned you in the dev console that it was retrying so that it was clear that it had hit that problem. That way, we could be sure that the retry logic was in fact activating and future debugging would probably be easier as well.

I think that, based on what I saw with the one-time version, ten times is probably unnecessary. Would you like me to also try the one that rescans?


Now, I think the main thing that we have to figure out is the “unknown error, write” issue, which now happens every time for me. @jeffiscow would you mind installing the version that @jviotti linked to entitled “ONE RETRY”? I’d like to know if you now see an error there like I do or if it works without issue.

1reaction
jviotticommented, Jul 14, 2016

I ran the new debug build and both the dev console and the log file are exactly the same as they were before. Where is the new debug information supposed to be?

Agh, I hot-edited a dependency and then re-installed dependencies when packaging, so silly 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I convert a .img.xz file to .img to transfer it to my ...
1. On Mac OS X you can just double click the file and it decompresses on the spot. · 1. On Windows, you...
Read more >
How do I use an .img.xz file or get an .img file from it?
xz is a compression format like zip or gz. To be able to decompress it from the command line you need to install...
Read more >
Linux xz, unxz, xzcat, lzma, unlzma, lzcat command
If no files are given or file is specified as a dash ("-"), xz reads from standard input and writes the processed data...
Read more >
writing error sd with pi imager 1.4 - Raspberry Pi Forums
i have a problem writing a new copy of raspberry pi OS on a SD 16gb with ... schannel: next initializesecuritycontext failed:Unknown error...
Read more >
How to recover corrupted 7z archive
Try latest version of 7-Zip · Required software: · 7z archive structure · Corruption types · Corruption case: Data errors or CRC errors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found