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

Etcher broken on macOS Catalina #2833

Closed
ghost opened this issue Jun 24, 2019 · 135 comments
Closed

Etcher broken on macOS Catalina #2833

ghost opened this issue Jun 24, 2019 · 135 comments

Comments

@ghost
Copy link

ghost commented Jun 24, 2019

{"stack":"Error: EPERM: operation not permitted, open '/Users/nathfreder/Downloads/2019-06-20-raspbian-buster-full.img'","message":"EPERM: operation not permitted, open '/Users/nathfreder/Downloads/2019-06-20-raspbian-buster-full.img'","name":"Error","code":"EPERM","syscall":"open","errno":-1,"image":"2019-06-20-raspbian-buster-full.img"}
@coreyasmith35
Copy link

Having this same issue.

@ghost
Copy link
Author

ghost commented Jun 24, 2019

Workaround:
Moving your image inside balenaEtcher.app seems to do the trick.
You can do this by selecting "Show Package Contents" on balenaEtcher.app and dragging your image inside of it. Then you can select your image as usual from Finder and the flashing will go ahead. Make sure you select the image inside balenaEtcher.app

@willswire
Copy link

Workaround listed above works for me as well. I think this error is in part to the recent changes made by apple (see here) regarding disk access permissions. "... apps must now get your permission before directly accessing files in your Documents and Desktop folders, iCloud Drive, and external volumes, so you’re always in control of your data."

@CallMeTuesday
Copy link

@nathfreder suggestion worked for me as well.

@RefineryX
Copy link

@nathfreder Suggestion worked for me too! Times like these, I realise there really is no alternative to Etcher!

@DG12
Copy link

DG12 commented Jun 30, 2019

related to #2843

@xcvista
Copy link

xcvista commented Jul 1, 2019

Maybe Balena should codesign the app with disk access? Apple as been tightening the sandbox.

@ghost
Copy link
Author

ghost commented Jul 1, 2019

@xcvista That would be a good idea. It's required for Catalina.

@cameroncooke
Copy link

Above approaches didn't work for me, what did:

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

Hope this helps.

@ghost
Copy link
Author

ghost commented Jul 13, 2019

@cameroncooke That's way simpler than my approach. 😀

@livefeed
Copy link

livefeed commented Aug 1, 2019

@cameroncooke Thank you, this worked for me.

@MiroHibler
Copy link

macOS Catalina 10.15 Beta (19A526h) doesn't even allow the app (>= v1.5.51 as far as I know) to start due to "check against the malicious software".

v1.5.33 can start, but sudo hack doesn't work anymore.

@ghost
Copy link
Author

ghost commented Aug 10, 2019

@micopiira so the app doesn't start at all, or doesn't start with the sudo hack?

@thehappydinoa
Copy link

thehappydinoa commented Aug 11, 2019

Launching with sudo currently works with v1.5.52 on 10.15 Beta (19A512f)

@thundron
Copy link
Contributor

For macOS Catalina 10.15 I believe we'll have to notarise the Etcher application package as it'll be a requirement for all applications from 10.15 on, which we're already preparing for

@Betabao
Copy link

Betabao commented Aug 21, 2019

Above approaches didn't work for me, what did:

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

Hope this helps.

this works for me.

@kaushaltrivedi
Copy link

Above approaches didn't work for me, what did:

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

Hope this helps.

this worked for me!!!

@ucdailoi
Copy link

ucdailoi commented Sep 2, 2019

Wont work for my mac..... What started out as an attempt to load Home Assistant onto a SD card has become a nightmare of chasing shadows. I have to give up after 3 hours of stuffing around... What now is the question

@iglesias294
Copy link

Moving images inside the etcher package not working on Catalina Beta 8. Launching with SUDO does work. Log below:

Sandbox: balenaEtcher Hel(9055) System Policy: deny(1) file-read-data /dev/rdisk2
Violation: System Policy: deny(1) file-read-data /dev/rdisk2
Process: balenaEtcher Hel [9055]
Path: /Applications/balenaEtcher.app/Contents/Frameworks/balenaEtcher Helper.app/Contents/MacOS/balenaEtcher Helper
Load Address: 0x1098a9000
Identifier: io.balena.etcher.helper
Version: 1.5.56 (???)
Code Type: x86_64 (Native)
Parent Process: bash [9054]
Responsible: /System/Library/Frameworks/Security.framework/authtrampoline

@ghost
Copy link

ghost commented Sep 17, 2019

@cameroncooke thank you, launching with SUDO works for me

@kapong
Copy link

kapong commented Sep 18, 2019

@cameroncooke @kschembri thank you, sudo works for me too

@netyrk
Copy link

netyrk commented Sep 20, 2019

Above approaches didn't work for me, what did:

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

Hope this helps.

10.15 Beta (19A558d)

sudo solution works for me. Other potential solutions provided did not work.

@zaltal
Copy link

zaltal commented Sep 20, 2019

Workaround fixed it for me swell on OS X Catalina. Thanks nathfreder!

@Hansaplast
Copy link

I bumped into this "issue" while looking for a solution for my own application (ApplePi-Baker).
Since we're all here with the same goal in mind (writing SD cards for RaspberryPi), I thought I'd help out and post my fix.

Under Catalina one must add the application to the security exceptions:
Go to “System Preferences” -> “Security & Privacy” -> “Privacy“.
Add the application to the list of “Full Disk Access“ items, and you should be good to go.
No need to run as sudo.

@davidde67
Copy link

davidde67 commented Oct 31, 2020 via email

@GarethBlain
Copy link

Hi Gareth, Yeahhhhh that did not work for me. The only thing that worked is running Xubuntu on this Catalina iMac. Or running Etcher on my Mojave Macbook.

The solution I mentioned worked for me. I think it’s just the app isn’t asking for ENOUGH permission. It needs to ask for the ISO’s location as well

@lurch
Copy link
Contributor

lurch commented Nov 3, 2020

I think it’s just the app isn’t asking for ENOUGH permission. It needs to ask for the ISO’s location as well

I don't have a Mac myself (and I don't work on Etcher), but if this assumption is correct, it would also correlate with the other MacOS issues where people have said they were able to solve their Etcher problems by dragging their ISO inside their "Package Contents" folder e.g. #2835 (comment)

@jessieeeee
Copy link

jessieeeee commented Nov 10, 2020

I upgrade to 1.5.100 from 1.4 , It seems to be working well

@jwalton
Copy link

jwalton commented Nov 11, 2020

If you're still running into this: If you go to the Etcher page, and you have Noscript installed, and scroll down to the bottom and download a copy of Etcher, it'll get you 1.5.45, which is ancient. Enable javascript for the page and it'll update the links to the latest version.

@cbodonnell
Copy link

cbodonnell commented Nov 28, 2020

I was finally able to get this working with the latest version of Etcher (1.5.111) on MacOS Catalina (10.15.3).

I had to first run the application using: sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

Then I had to choose "Flash from URL" and provide the url of the hosted iso instead of flashing from a file.

@Bcdo
Copy link

Bcdo commented Nov 30, 2020

Workaround:
Moving your image inside balenaEtcher.app seems to do the trick.
You can do this by selecting "Show Package Contents" on balenaEtcher.app and dragging your image inside of it. Then you can select your image as usual from Finder and the flashing will go ahead. Make sure you select the image inside balenaEtcher.app

This, and then running the sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher did the trick for me, after trying what feels like everything on Catalina

@arashnh11
Copy link

This error is back on the latest version of Etcher 1.5.111 and the above solutions didn't work for Catalina 10.15.5
I reverted the version of Etcher to 1.5.52 and sudo trick worked!

@graemeblackwood
Copy link

This worked for me on Catalina with the latest version of Etcher (1.5.111 downloaded today)

It was the only thing that worked.

#2833 (comment)

@JDSWAN66
Copy link

JDSWAN66 commented Dec 2, 2020

I've tried everything - nothing is working - so frustrating!
Running macOS Big Sur V11.0.1
"Attention - Something went wrong - process ended unexpectedly."

Any help would be appreciated.

Also same issue on PC Win10.

I'm going to give up I think - 5 hours chasing shadows...

@lurch
Copy link
Contributor

lurch commented Dec 2, 2020

#3358 (comment) says that it works when you flash directly from URL (instead of a local file).

#3363 (comment) says that Etcher 1.5.109 works where 1.5.111 doesn't.

🤷‍♂️ 🤷‍♂️

@graemeblackwood
Copy link

I also found that I had to reformat the USB drive to the same file system as the OS I am on. In the case of MacOS, I had to reformat the USB to use Apple's file system, and also ensure the sub-partition was formatted. Only then would Etcher work @JDSWAN66

@ideologysec
Copy link

This worked for me on Catalina with the latest version of Etcher (1.5.111 downloaded today)

It was the only thing that worked.

#2833 (comment)

Still having to start the application via sudo, even after granting both Full Disk Access, and permitting Etcher to access removable volumes (Big Sur).

@lurch
Copy link
Contributor

lurch commented Dec 6, 2020

ping @shawaj

@shawaj
Copy link
Contributor

shawaj commented Dec 6, 2020

@ideologysec which version are you using? Does this still happen with the latest v1.5.112?

@tizzlerino
Copy link

Hey, I was having this same issue today.

I was able to get it to write by using the ISO link option instead of writing it from a local file. Hope this works for y'all too.

@shawaj
Copy link
Contributor

shawaj commented Dec 13, 2020

@tizzlerino have you tried updating to version 1.5.112?

@tizzlerino
Copy link

Actually, no! I just looked and I'm still using 1.5.111. Thanks for pointing that out, I'll update it and see if it resolves the issue for me.

@shawaj
Copy link
Contributor

shawaj commented Dec 13, 2020

Thanks @tizzlerino - it seems to have fixed this issue for most people including me! So definitely give it a go 😊

@zhuyingda
Copy link

@cameroncooke

Above approaches didn't work for me, what did:

sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher

Hope this helps.

This do solved the problem for me, but I got another EPERM error when I flash the image:

Mon Dec 21 2020 08:31:06 GMT+0800 (CST) Flash error ({"error":{"name":"Error","message":"EPERM: operation not permitted, open '/dev/rdisk2'","stack":"Error: EPERM: operation not permitted, open '/dev/rdisk2'","code":"EPERM","syscall":"open","errno":-1},"applicationSessionUuid":"bb23765a-e5e9-477a-8366-11e15d58f6c7","flashingWorkflowUuid":"80ed0b3c-fc65-4a2f-be04-4859feb3ba39","flashInstanceUuid":"2ddb47d5-0c08-4fd9-93b9-19829ce9333a","image":"/Applications/balenaEtcher.app/gladys-4.0.0.img","drives":[{"size":63864569856,"isVirtual":false,"enumerator":"DiskArbitration","logicalBlockSize":512,"raw":"/dev/rdisk2","error":null,"isReadOnly":false,"displayName":"/dev/disk2","blockSize":512,"isSCSI":false,"isRemovable":true,"device":"/dev/disk2","busVersion":null,"isSystem":false,"busType":"USB","isCard":false,"isUSB":true,"devicePath":"IODeviceTree:/PCI0@0/PEG1@1,1/UPSB@0/DSB2@2/XHC2@0","mountpoints":[{"path":"/Volumes/SANDISK64G","label":"SANDISK64G"}],"description":"SanDisk SDDR-B531 Media","isUAS":null}],"driveCount":1,"uuid":"2ddb47d5-0c08-4fd9-93b9-19829ce9333a","unmountOnSuccess":true,"validateWriteOnSuccess":true,"sample":0.1})

It seems that my sdcard writer plugged in with MacOS usb type-c is not permitted. Does anyone got this error before?

@shawaj
Copy link
Contributor

shawaj commented Dec 21, 2020

@zhuyingda what version of Etcher are you using?

Could you try updating to version 1.5.113 please

@zhuyingda
Copy link

zhuyingda commented Dec 21, 2020

@zhuyingda what version of Etcher are you using?

Could you try updating to version 1.5.113 please

MacOS Catalina 10.15.7
Etcher version: 1.5.45

I have opened another issue 3390 for problem of the permission error to /dev/disk2.

@zhuyingda
Copy link

zhuyingda commented Dec 21, 2020

@zhuyingda what version of Etcher are you using?

Could you try updating to version 1.5.113 please

How can I download the 1.5.113 version for MacOS? Our official website download option is 1.5.45
@shawaj

@shawaj
Copy link
Contributor

shawaj commented Dec 21, 2020

@zhuyingda it's because your have JavaScript turned off on your browser.

Either turn JavaScript on and try the page again or download from here https://github.com/balena-io/etcher/releases/tag/v1.5.113

@shawaj
Copy link
Contributor

shawaj commented Dec 21, 2020

Relates to #3387 and #3390

@zhuyingda
Copy link

@zhuyingda it's because your have JavaScript turned off on your browser.

Either turn JavaScript on and try the page again or download from here https://github.com/balena-io/etcher/releases/tag/v1.5.113

@shawaj Thanks, after updating etcher version to 1.5.113, all of my problem about permission have solved.

And also, the official website latest version is also 1.5.113, my case is because of the network error of the request for fetching latest version.

Anyway, thanks for your help. :) 😊

@shawaj
Copy link
Contributor

shawaj commented Dec 21, 2020

No problem at all. Glad everything is working now

@jacobkaufman
Copy link

You just have to enable access to "Files and Folders" in System Preferences>Security and Privacy by checking the box for etcher.

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