Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS Catalina 10.15 seems to be PREVENTING access Documents and Desktop folders ... #2843

Closed
DG12 opened this issue Jun 30, 2019 · 36 comments

Comments

@DG12
Copy link

DG12 commented Jun 30, 2019

  • Etcher version:Version = 1.5.39,
  • Operating system and architecture:Mac OS Catalina 10.15 beta (19A487m)

"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

@DG12 DG12 changed the title Mac OS Catalina 10.15 seems to be PREVENTING writing to SD Long directory/filename seems to fail (was Mac OS Catalina 10.15 seems to be PREVENTING ) Jun 30, 2019
@DG12 DG12 changed the title Long directory/filename seems to fail (was Mac OS Catalina 10.15 seems to be PREVENTING ) Mac OS Catalina 10.15 seems to be PREVENTING access Documents and Desktop folders ... Jun 30, 2019
@vdkdamian
Copy link

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.

@semicolonsnet
Copy link

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.

@bk-one
Copy link

bk-one commented Jul 8, 2019

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.

@idoodler
Copy link

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.

@jsajovic
Copy link

@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"}

@idoodler
Copy link

@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.

@DG12
Copy link
Author

DG12 commented Jul 25, 2019

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

@idoodler
Copy link

@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.

@DG12
Copy link
Author

DG12 commented Jul 26, 2019

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

@idoodler
Copy link

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

@DG12
Copy link
Author

DG12 commented Jul 27, 2019

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

@idoodler
Copy link

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

@thundron
Copy link
Contributor

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

@redsox4886
Copy link

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!

@f1rat
Copy link

f1rat commented Aug 30, 2019

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

@DG12
Copy link
Author

DG12 commented Sep 23, 2019

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.

@thundron
Copy link
Contributor

@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 #2833 (comment) for a workaround and let's use that as the issue for Catalina changes, closing this one

@felixlindemann
Copy link

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

@bee256
Copy link

bee256 commented Oct 12, 2019

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

@mattbeau
Copy link

running as sudo is working for me also thanks @semicolonsnet

@wAuner
Copy link

wAuner commented Oct 13, 2019

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

@keiohtani
Copy link

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!

@marcosanchez
Copy link

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.

@rajkundu
Copy link

Thank you @semicolonsnet! Worked beautifully for me.

@DIYglenn
Copy link

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!

@scuba-tech
Copy link

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.

@lurch
Copy link
Contributor

lurch commented Oct 29, 2019

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

@BillSquare
Copy link

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

@3DDruckEinsteiger
Copy link

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

@klausdm
Copy link

klausdm commented Nov 5, 2019

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

Thx !!

@michaelschapira
Copy link

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.

@lurch
Copy link
Contributor

lurch commented Nov 15, 2019

According to #2833 (comment) this should be fixed in the latest versions of Etcher. (making sudo no longer necessary)

@DG12
Copy link
Author

DG12 commented Nov 15, 2019

Catalina 10.15.2 this is not a problem

@RauchenwaldC
Copy link

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

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

@WorldWideWebDev
Copy link

WorldWideWebDev commented Jan 11, 2021

Screenshot 2021-01-11 at 7 34 12 pm
Same problem on Balena 1.5.113 I inadvertently clicked "Disallow" a Mac Request to allow Balena to access my SD card and then i received an error from Balena "Writing to card failed, EPREM Operation not permitted, open /dev/rdisk3 " or similar. I then tried "sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher " from Terminal and started Balena once again. I then received a request from my Mac " Terminal wants to access / write to SD card" i clicked on "Allow" at this stage and all is well. Seems it was an ID-10-T error on my part and now i must always use the sudo option through terminal to run Balena as it seems to have disallowed Balena to write indefinitely?

@TimidRobot
Copy link

TimidRobot commented May 3, 2021

I encountered this error on macOS Big Sur 11.3

I resolved it by ensuring System Preferences > Security & Privacy > Privacy > Files and Folders > Removal Volumes was enabled for balenaEtcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests