Installation fails for rpi on macOS

I’m trying to install for rpi on macOS but getting failures. I don’t see any issue in logfile.
Any thoughts what may have happened here?

Fri Aug 13 21:24:44 2021 OSMC Installer running on Mac OS X
Fri Aug 13 21:24:44 2021 Detected locale as en_IL
Fri Aug 13 21:24:44 2021 Attempting to load translation for locale en_IL
Fri Aug 13 21:24:44 2021 Could not load translation!
Fri Aug 13 21:24:44 2021 Resolving a mirror
Fri Aug 13 21:24:44 2021 Resolved mirror to Triple - Mirrors
Fri Aug 13 21:24:44 2021 Enumerating supported devices
Fri Aug 13 21:24:44 2021 Added the following devices
Fri Aug 13 21:24:44 2021 Vero 4K / 4K+
Fri Aug 13 21:24:44 2021 Vero 2
Fri Aug 13 21:24:44 2021 Vero
Fri Aug 13 21:24:44 2021 Raspberry Pi 1 / Zero
Fri Aug 13 21:24:44 2021 Raspberry Pi 2 / 3
Fri Aug 13 21:24:44 2021 Apple TV
Fri Aug 13 21:24:44 2021 Checking for updates
Fri Aug 13 21:24:44 2021 Checking for updates by downloading http://osmc.mirror.wearetriple.com/osmc/download//installers/latest_mac
Fri Aug 13 21:24:45 2021 Acquired mirror file
Fri Aug 13 21:24:45 2021 No new update is available
Fri Aug 13 21:24:50 2021 The user has selected English as their language
Fri Aug 13 21:24:50 2021 The user has selected Raspberry Pi 2 / 3 as their device
Fri Aug 13 21:24:50 2021 Attempting to download device versions file http://osmc.mirror.wearetriple.com/osmc/download/installers/versions_RBP2
Fri Aug 13 21:24:50 2021 Found a build called 2021.08-1
Fri Aug 13 21:24:50 2021 Found a build called 2020.11-1
Fri Aug 13 21:24:50 2021 Found a build called 2020.10-1
Fri Aug 13 21:24:50 2021 Found a build called 2020.06-1
Fri Aug 13 21:24:50 2021 Found a build called 2020.03-1
Fri Aug 13 21:24:50 2021 Found a build called 2020.01-1
Fri Aug 13 21:24:50 2021 Found a build called 2019.11-1
Fri Aug 13 21:24:50 2021 Found a build called 2019.10-1
Fri Aug 13 21:24:50 2021 Found a build called 2019.07-1
Fri Aug 13 21:24:50 2021 Found a build called 2019.06-1
Fri Aug 13 21:24:50 2021 Found a build called 2019.05-1
Fri Aug 13 21:24:50 2021 Found a build called 2019.04-1
Fri Aug 13 21:24:50 2021 Found a build called 2018.12-1
Fri Aug 13 21:24:50 2021 Found a build called 2018.10-1
Fri Aug 13 21:24:50 2021 Found a build called 2018.08-1
Fri Aug 13 21:24:50 2021 Found a build called 2018.07-1
Fri Aug 13 21:25:03 2021 The user has selected a local image for Raspberry Pi 2 / 3 with file location: file:///Users/offir.gonen/OSMC_TGT_rbp2_20210808.img.gz
Fri Aug 13 21:25:03 2021 Disabling internal install for device Raspberry Pi 2 / 3 as it does not support it
Fri Aug 13 21:25:05 2021 SD installation selected
Fri Aug 13 21:25:07 2021 Enumerating imageable devices for OSX
Fri Aug 13 21:25:07 2021 New disk device entry created with entry point /dev/rdisk0, 500.3 GB free space and label
Fri Aug 13 21:25:07 2021 =================================================
Fri Aug 13 21:25:07 2021 Starting to parse /dev/rdisk0 for additional info

Fri Aug 13 21:25:07 2021 MediaName-Line: Device / Media Name: APPLE SSD AP0512M
Fri Aug 13 21:25:07 2021 Protocol-Line: Protocol: PCI-Express
Fri Aug 13 21:25:07 2021 Determined PCI-Express as protocol for /dev/rdisk0
Fri Aug 13 21:25:07 2021 Decided to be a DMG: no
Fri Aug 13 21:25:07 2021 Ejectable-Line: Removable Media: Fixed
Fri Aug 13 21:25:07 2021 Determined Fixed as ejactableProperty for /dev/rdisk0
Fri Aug 13 21:25:07 2021 Decided that /dev/rdisk0 is not writable to us
Fri Aug 13 21:25:07 2021 Parsed device as NON-writable. NOT Appending.
Fri Aug 13 21:25:07 2021

Fri Aug 13 21:25:07 2021 Finished parsing additional info for /dev/rdisk0
Fri Aug 13 21:25:07 2021 =================================================

Fri Aug 13 21:25:07 2021 New disk device entry created with entry point /dev/rd, Container Scheme free space and label
Fri Aug 13 21:25:07 2021 =================================================
Fri Aug 13 21:25:07 2021 Starting to parse /dev/rd for additional info

Fri Aug 13 21:25:08 2021 Decided that /dev/rd is not writable to us
Fri Aug 13 21:25:08 2021 Parsed device as NON-writable. NOT Appending.
Fri Aug 13 21:25:08 2021

Fri Aug 13 21:25:08 2021 Finished parsing additional info for /dev/rd
Fri Aug 13 21:25:08 2021 =================================================

Fri Aug 13 21:25:08 2021 New disk device entry created with entry point /dev/rdisk2, 31.9 GB free space and label
Fri Aug 13 21:25:08 2021 =================================================
Fri Aug 13 21:25:08 2021 Starting to parse /dev/rdisk2 for additional info

Fri Aug 13 21:25:08 2021 MediaName-Line: Device / Media Name: Storage Device
Fri Aug 13 21:25:08 2021 Protocol-Line: Protocol: USB
Fri Aug 13 21:25:08 2021 Determined USB as protocol for /dev/rdisk2
Fri Aug 13 21:25:08 2021 Decided to be a DMG: no
Fri Aug 13 21:25:08 2021 Ejectable-Line: Removable Media: Removable
Fri Aug 13 21:25:08 2021 Determined Removable as ejactableProperty for /dev/rdisk2
Fri Aug 13 21:25:08 2021 isEjectable: yes; isDmg: no; isReadOnly: no
Fri Aug 13 21:25:08 2021 Parsed device as writable. Appending.
Fri Aug 13 21:25:08 2021

Fri Aug 13 21:25:08 2021 Finished parsing additional info for /dev/rdisk2
Fri Aug 13 21:25:08 2021 =================================================

Fri Aug 13 21:25:10 2021 Device selected: 2 /dev/rdisk2 31.9 GB Storage Device
Fri Aug 13 21:25:13 2021 EULA has been accepted
Fri Aug 13 21:25:13 2021 Extracting /Users/offir.gonen/OSMC_TGT_rbp2_20210808.img.gz

Just making a wild guess here because I have very limited macOS experience, but the installer also fails sometimes on a windows machine if the image that the installer is trying to download/write on the SD card was already present before. I don’t know much about the folder structure in macOS but on Windows the issue is usually “solved” by navigating into the %userprofile% directory and deleting the “osmc_installer_log.txt” file and the downloaded image, then restarting the installer and the installation process. Maybe it works the same on macOS, but I think I remember @sam_nazarko answering to someone else with a similar problem “the installer is broken on macOS”. But I suggest you give it a try.

Thanks @Ainsley .
I tried what you’ve suggested and something did. change and now I’m getting another failure:

Fri Aug 13 22:18:17 2021 User confirmed
Fri Aug 13 22:18:17 2021 going to start osa
Fri Aug 13 22:18:17 2021 pasting admin script to process do shell script “dd if=/Users/offir.gonen/Desktop/OSMC/OSMC_TGT_rbp2_20210808.img of=/dev/rdisk2 bs=1m conv=sync && sync” with administrator privileges
Fri Aug 13 22:18:17 2021 waiting for finish
Fri Aug 13 22:18:20 2021 osa claims to be done…collect output and verify
Fri Aug 13 22:18:20 2021 Imaging failed!
Fri Aug 13 22:18:20 2021 Messages are:
Fri Aug 13 22:18:20 2021 stdout:
Fri Aug 13 22:18:20 2021 stderr: 0:151: execution error: dd: /Users/offir.gonen/Desktop/OSMC/OSMC_TGT_rbp2_20210808.img: Operation not permitted (1)

Any idea about this one?

No sorry, my answer was just a suggestion. Maybe @sam_nazarko can help.

Hi,

Looks like the installer is falling to escalating, there is probably been change to MacOS; since the installer was last updated. This will need to be looked in to.

In the mean time, runing the app as the admin or with sudo, it should all be good. A quick google search hit this:

Thanks Tom.

Thank you very much Tom for your help.
I tried running as root but then got the following:
Sun Aug 15 00:14:06 2021" “\t stderr: 0:151: execution error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted\rjob-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted\rdd: /Users/offir.gonen/Desktop/OSMC/OSMC_TGT_rbp2_20210808.img: Operation not permitted (1)\n”

Hi,

Have you tried with sudo?

Thanks Tom.

Hey @Tom_Doyle yes I did.

Eventually solved it the following way:

  1. Enabled Full Disk Access for Terminal in macos (System Preferences → Security & Privacy → Privacy 0 → Full Disk Access)
  2. Opened Terminal
  3. CD to file location
  4. Run the DD command from the log

All is good now

1 Like