balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
29.32k stars 2.09k forks source link

Child process exitted with error code: 1 #656

Closed toyota790 closed 8 years ago

toyota790 commented 8 years ago

It shows the error message as below when I burn the resinOS to SD card. So I can't burn the image to the SD card. Does anyone know how to solve ? Thanks!

image

tracker.js:10
Error: Child process exitted with error code: 1
    at ChildProcess.child.on (C:\Program Files (x86)\Etcher\resources\app.asar\lib\src\child-writer\index.js:115:38)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)a.(anonymous function) @ tracker.js:10
tracker.js:10
Error: EPERM: operation not permitted, write
    at ChildProcess.child.on (C:\Program Files (x86)\Etcher\resources\app.asar\lib\src\child-writer\index.js:94:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at handleMessage (internal/child_process.js:718:10)
    at Pipe.channel.onread (internal/child_process.js:444:11)
jviotti commented 8 years ago

Hi @toyota790 ,

Thanks a lot for reporting. These issues are really hard to debug since Windows seems to like to throw EPERM without any explanation on all sort of situations. That being said:

toyota790 commented 8 years ago

Hi @jviotti , Thanks for your quick reply.

image

jviotti commented 8 years ago
  • I can't erase my SD card by DiskPart. When I typed the "clean" command in DiskPart, then it printed out the "DiskPart has encountered an error encountered: Access is denied.". But I can erase the SD card with my Macbook. So I am sure that the SD card works normally.

The fact that diskpart complained with an access denied error means that there is something else preventing your SDCard from being written to in Windows, and therefore the Etcher error you see makes sense.

The tricky part is discovering what is causing your "Access is denied" error in DiskPart. Do you have any anti-virus or other software that might be trying to constantly read removable drives in your computer? If so, can you try disabling them and trying again, and see if that makes any difference?

The fact that you can erase it just fine with your MacBook means that there's definitely something in your Windows installation conflicting with this.

Can you check if something of interest comes up in the System Event Log right after you get such DiskPart error? See https://technet.microsoft.com/en-us/library/aa996634(v=exchg.65).aspx

On Wed, Aug 24, 2016 at 09:40:35AM -0700, William Luo wrote:

Hi @jviotti , Thanks for your quick reply.

  • Yes, I tried many times, and it still showed the same error message. However, I restarted the application and burned the image again, it showed up another error message (As below).

image

  • This version does not work for me, and it showed up the "Child process exitted with error code: 1" error message again.
  • I can't erase my SD card by DiskPart. When I typed the "clean" command in DiskPart, then it printed out the "DiskPart has encountered an error encountered: Access is denied.". But I can erase the SD card with my Macbook. So I am sure that the SD card works normally.

You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/resin-io/etcher/issues/656#issuecomment-242130722

Juan Cruz Viotti Software Engineer

jviotti commented 8 years ago

I just realised this is a duplicate of https://github.com/resin-io/etcher/issues/627. Please let me know how it goes in that other thread!