Etcher: Mac OS Catalina 10.15 seems to be PREVENTING access Documents and Desktop folders ...

Created on 30 Jun 2019  Ā·  34Comments  Ā·  Source: balena-io/etcher

"Something went wrong"
Image in Documents directory fails!
Moving it elsewhere proceeds successfully.

PLEASE (at least) revise the error message when "operation not permitted, open " occurs to be more specific rather than mentioning corruption.

I have submitted a feedback issue to apple ( FB6392670).
++++++++
Sorry about the pervious various confusing updates here.

OMG! On a whim, I moved the image to a high level directory and renamed it to a short name and it works.
++++++++++++++++++++++++++++++++++++++++++++++

ls -lTOeog 2*
-rw-r--r-- 1 - 426031826 Jun 29 18:07:14 2019 2019-06-20-raspbian-buster-lite.zip

From devtools; console:
Validate on success: true
/Volumes/DATA/dgerman/.bin/balenaEtcher.app/Contents/Resources/app.asar/node_modules/raven-js/dist/raven.js:58

Error: EPERM: operation not permitted, open ā€˜/Volumes/DATA/dgerman/Documents/computerstuff/hardware/pi/SDimages/i/2019-06-20-raspbian-buster-lite.zip’
/Volumes/DATA/dgerman/.bin/balenaEtcher.app/Contents/Resources/app.asar/node_modules/raven-js/dist/raven.js:58

Sun Jun 30 2019 08:33:57 GMT-0400 (EDT) Open modal ({ā€œnameā€:ā€œwarningā€,ā€œapplicationSessionUuidā€:ā€œc8c7003a-5741-4484-b98c-4f37fe3cabb6ā€,ā€œflashingWorkflowUuidā€:ā€œ521ab4a8-f281-4360-8af3-6964b792d80aā€,ā€œsampleā€:0.1})
/Volumes/DATA/dgerman/.bin/balenaEtcher.app/Contents/Resources/app.asar/node_modules/raven-js/dist/raven.js:58

{ā€œstackā€:ā€œError: EPERM: operation not permitted, open ā€˜/Volumes/DATA/dgerman/Documents/computerstuff/hardware/pi/SDimages/i/2019-06-20-raspbian-buster-lite.zipā€™ā€,ā€œmessageā€:ā€œEPERM: operation not permitted, open ā€˜/Volumes/DATA/dgerman/Documents/computerstuff/hardware/pi/SDimages/i/2019-06-20-raspbian-buster-lite.zipā€™ā€,ā€œnameā€:ā€œErrorā€,ā€œcodeā€:ā€œEPERMā€,ā€œsyscallā€:ā€œopenā€,ā€œerrnoā€:-1,ā€œimageā€:ā€œ2019-06-20-raspbian-buster-lite.zipā€}
console.(anonymous function) @ /Volumes/DATA/dgerman/.bin/balenaEtcher.app/Contents/Resources/app.asar/node_modules/raven-js/dist/raven.js:58
/Volumes/DATA/dgerman/.bin/balenaEtcher.app/Contents/Resources/app.asar/node_modules/raven-js/dist/raven.js:58

Flash results Object
/Volumes/DATA/dgerman/.bin/balenaEtcher.app/Contents/Resources/app.asar/node_modules/raven-js/dist/raven.js:58

Terminating IPC server

Most helpful comment

I had to run as "sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher" to get correct permissions to write to the SD card. Running the app normally didn't seem to work.

All 34 comments

I had the same issue on macOS Catalina, I moved the file to my home folder and renamed the file to a shorter name. This did indeed do the trick for me.

I had to run as "sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher" to get correct permissions to write to the SD card. Running the app normally didn't seem to work.

same here, running as sudo did the trick, it gives you an additional dialog and asks if it's okay for Etcher to write to a removable disk. Didn't get this dialog when running as my user.

I don't get any dialog, running with sudo didn't help. I also enabled the new Filesystem permissions in the Settings app. I am now using Parallels Dektop as a Workaround.

@idoodler

As long as you are logged into your Mac as an Admin user you will have access to sudo. As @semicolonsnet mentioned Open a terminal window and navigate all the way into the contents of the application and then open the app. Here is a copy of my output for reference. MacBook-Pro:MacOS jsajovic$ sudo ./balenaEtcher Password: 2019-07-25 12:19:16.942 balenaEtcher[14093:2684760] NSSoftLinking - The function 'SLSIsSuppressedByScreenTime' can't be found in the (null) framework. 2019-07-25 12:19:17.014 balenaEtcher[14093:2684760] *** WARNING: Textured window <AtomNSWindow: 0x7fcb943f06d0> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead. ready-to-show: 2156.483ms Checking for update Update for version 1.5.52 is not available (latest version: 1.5.52, downgrade is disallowed). Error: Error: Please check update first at MacUpdater.downloadUpdate (/Applications/balenaEtcher.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:576:21) at checkForUpdates (/Applications/balenaEtcher.app/Contents/Resources/app.asar/generated/etcher.js:435:27) at process._tickCallback (internal/process/next_tick.js:68:7) {"stack":"Error: Please check update first\n at MacUpdater.downloadUpdate (/Applications/balenaEtcher.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:576:21)\n at checkForUpdates (/Applications/balenaEtcher.app/Contents/Resources/app.asar/generated/etcher.js:435:27)\n at process._tickCallback (internal/process/next_tick.js:68:7)","message":"Please check update first"} {"stack":"Error: Please check update first\n at MacUpdater.downloadUpdate (/Applications/balenaEtcher.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:576:21)\n at checkForUpdates (/Applications/balenaEtcher.app/Contents/Resources/app.asar/generated/etcher.js:435:27)\n at process._tickCallback (internal/process/next_tick.js:68:7)","message":"Please check update first"} Checking for update Update for version 1.5.52 is not available (latest version: 1.5.52, downgrade is disallowed). Error: Error: Please check update first at MacUpdater.downloadUpdate (/Applications/balenaEtcher.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:576:21) at checkForUpdates (/Applications/balenaEtcher.app/Contents/Resources/app.asar/generated/etcher.js:435:27) at process._tickCallback (internal/process/next_tick.js:68:7) {"stack":"Error: Please check update first\n at MacUpdater.downloadUpdate (/Applications/balenaEtcher.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:576:21)\n at checkForUpdates (/Applications/balenaEtcher.app/Contents/Resources/app.asar/generated/etcher.js:435:27)\n at process._tickCallback (internal/process/next_tick.js:68:7)","message":"Please check update first"} {"stack":"Error: Please check update first\n at MacUpdater.downloadUpdate (/Applications/balenaEtcher.app/Contents/Resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:576:21)\n at checkForUpdates (/Applications/balenaEtcher.app/Contents/Resources/app.asar/generated/etcher.js:435:27)\n at process._tickCallback (internal/process/next_tick.js:68:7)","message":"Please check update first"}

@jsajovic Yes, I know that. Executing sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher didn't help, the Application starts as expected, but I can't flash the image on the SD Card. There is no error message in the applications log.

@idoodler What directory is the image you want to flash in?
Did you get the "something went wrong" message?

@DG12 The image is in the ~/Downloads directory and yes, I get the "something went wrong" message but without any further information and without any error in the terminal window.

@idoodler Try moving the image file to /tmp or /private/tmp .
Let us know what happens.

@DG12 No, same error message in the BalenaEtcher application. I executed the binary with sudo...
Bildschirmfoto 2019-07-27 um 09 04 19

This message: "The writer process ended unexpectedly" in not the " "something went wrong" message you said you received earlier.

@DG12 Oh, I thought you ment this message because you its less to write.

@idoodler could you please paste here the output of the devtools console? cmd + shift + i to open it

Moving the linux iso to my user folder and then running the app under sudo (sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher) did the trick. I did still get the new Catalina prompt asking to confirm access to the USB drive but no further issues.

Thanks for the tips!

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher worked great for me. I also renamed my image file to a.img and left it in the Downloads folder.

OSX 10.15 19A546d with Etcher 1.5.56

To repeat my request which will assist in isolating the specific problem:
PLEASE revise the error message ""Something went wrong" when "operation not permitted, open " occurs to be more specific rather than mentioning corruption.
Thank you.

@DG12 We'll do, there are some new error messages we need to flesh out when the generic "EPERM" error appears, and in this case it's due to the changes to OSX Catalina. See https://github.com/balena-io/etcher/issues/2833#issuecomment-511152047 for a workaround and let's use that as the issue for Catalina changes, closing this one

Same here.... Running as sudo worked for me.
thanks to @semicolonsnet

Same with me. Working with balenaEtcher 1.5.58 on macOS Catalina 10.15. It worked only when run as sudo.

running as sudo is working for me also thanks @semicolonsnet

thanks, sudo worked for as well. Before I got the error message "something went wrong" and something about a compressed image.
sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

I tried with balenaEtcher version 1.5.30 with the command sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher, and it did not work.

After updating the app to version 1.5.58, the app is working fine now!

I had the same problem, and worked for me the sudo solution. Maybe something interesting is that with this method I had to allow access to the USB drive for terminal.

Thank you @semicolonsnet! Worked beautifully for me.

I had to run as "sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher" to get correct permissions to write to the SD card. Running the app normally didn't seem to work.

Great, thanks!

Same, running sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher within terminal launches the app with the proper permissions.

That said. This feels a bit unsafe.

@diver-down It's being fixed in #2939
See #2833 for more details.

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher
That worked for me :-)
Txxxxx
does somebody can explain why this would be unsafe ?

"sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher" worked!

"sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher" worked!

Thx !!

I am on macOS 10.15.1 and I had to sudo the application to flash a device as well.
I was getting a "corrupted image" error message.

According to https://github.com/balena-io/etcher/issues/2833#issuecomment-550109402 this should be fixed in the latest versions of Etcher. (making sudo no longer necessary)

Catalina 10.15.2 this is not a problem

"sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher" worked!

Balena Etcher 1.5.69 on macOS 10.15.1 works with sudo. Thanks.

Was this page helpful?
0 / 5 - 0 ratings