Monterey install failed

All your general support questions for OpenZFS on OS X.

Monterey install failed

Postby umbongo » Sun Nov 26, 2023 1:51 pm

Hello, I'm having difficulty installing OpenZFS on my M2 MacBook Air running macOS 12.7.1 Monterey.

I have tried both
Code: Select all
brew install --cask openzfs
and also via the GUI package OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg. In both instances the installation fails.

With respect to homebrew, I get the message:

Code: Select all
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg”.)


With respect to the GUI package, I get "The Installation failed." and this in install.log, amongst others:

Code: Select all
3-11-26 21:32:29+00 M2 Installer[14194]: User picked Standard Install
2023-11-26 21:32:29+00 M2 Installer[14194]: Choices selected for installation:
2023-11-26 21:32:29+00 M2 Installer[14194]:    Install: ""
2023-11-26 21:32:29+00 M2 Installer[14194]:    Install: "(null)"
2023-11-26 21:32:29+00 M2 Installer[14194]:       OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg : org.openzfsonosx.zfs : 2.2.0
2023-11-26 21:32:29+00 M2 Installer[14194]: ================================================================================
2023-11-26 21:32:29+00 M2 Installer[14194]: It took 0.00 seconds to summarize the package selections.
2023-11-26 21:32:30+00 M2 Installer[14194]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2023-11-26 21:32:30+00 M2 Installer[14194]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/<username>/Downloads/OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg
2023-11-26 21:32:30+00 M2 Installer[14194]: Set authorization level to root for session
2023-11-26 21:32:30+00 M2 Installer[14194]: Authorization is being checked, waiting until authorization arrives.
2023-11-26 21:32:32+00 M2 Installer[14194]: Administrator authorization granted.
2023-11-26 21:32:32+00 M2 Installer[14194]: Packages have been authorized for installation.
2023-11-26 21:32:32+00 M2 Installer[14194]: Will use PK session
2023-11-26 21:32:32+00 M2 Installer[14194]: Using authorization level of root for IFPKInstallElement
2023-11-26 21:32:32+00 M2 Installer[14194]: Starting installation:
2023-11-26 21:32:32+00 M2 Installer[14194]: Configuring volume "Macintosh HD"
2023-11-26 21:32:32+00 M2 Installer[14194]: Preparing disk for local booted install.
2023-11-26 21:32:32+00 M2 Installer[14194]: Free space on "Macintosh HD": 99.11 GB (99114135552 bytes).
2023-11-26 21:32:32+00 M2 Installer[14194]: Create temporary directory "/var/folders/gh/xt87hndn0tq1ryjq6xxvsqxc0000gn/T//Install.14194vXHDEj"
2023-11-26 21:32:32+00 M2 Installer[14194]: IFPKInstallElement (1 packages)
2023-11-26 21:32:32+00 M2 Installer[14194]: Current Path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: Adding client PKInstallDaemonClient pid=14194, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2023-11-26 21:32:32+00 M2 Installer[14194]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: Set reponsibility for install to 14194
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: ----- Begin install -----
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: packages=(
       "PKLeopardPackage <id=org.openzfsonosx.zfs, version=2.2.0, url=file:///Users/<username>/Downloads/OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg>"
   )
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: Extracting file:///Users/<username>/Downloads/OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/EE7C65B9-9976-4003-87E6-57BF7EBC2DC6.activeSandbox/Root, uid=0)
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: Moving directory /Library/InstallerSandboxes/.PKInstallSandboxManager/EE7C65B9-9976-4003-87E6-57BF7EBC2DC6.activeSandbox/Root/etc to /Library/InstallerSandboxes/.PKInstallSandboxManager/EE7C65B9-9976-4003-87E6-57BF7EBC2DC6.activeSandbox/Root/private/etc in sandbox to account for symlink
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: prevent user idle system sleep
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit: suspending backupd
2023-11-26 21:32:32+00 M2 installd[1835]: PackageKit (package_script_service): Preparing to execute script "./preinstall" in /private/tmp/PKInstallSandbox.cHSDAv/Scripts/org.openzfsonosx.zfs.IjSnZE
2023-11-26 21:32:32+00 M2 package_script_service[11379]: PackageKit: Executing script "preinstall" in /tmp/PKInstallSandbox.cHSDAv/Scripts/org.openzfsonosx.zfs.IjSnZE
2023-11-26 21:32:32+00 M2 package_script_service[11379]: Set responsibility to pid: 14194, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2023-11-26 21:32:32+00 M2 install_monitor[14238]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2023-11-26 21:32:32+00 M2 root[14241]: Running Install Scripts . . .
2023-11-26 21:32:32+00 M2 root[14243]: Begin script: 0uninstall
2023-11-26 21:32:32+00 M2 root[14445]: End script: 0uninstall
2023-11-26 21:32:32+00 M2 root[14446]: Begin script: lookforzpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for /dev/zfs
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Found /dev/zfs
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /usr/local/zfs/bin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /Library/OpenZFSonOSX/ZFSUserland/usr/local/sbin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /Library/OpenZFSonOSX/ZFSCommandLineTools/usr/sbin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /usr/sbin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /usr/local/sbin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /sbin
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /usr/local/bin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /usr/bin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at /bin/zpool
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Checking for zpool command at zpool
2023-11-26 21:32:32+00 M2 root[14450]: End script: lookforzpool
2023-11-26 21:32:32+00 M2 root[14451]: Begin script: patch
2023-11-26 21:32:32+00 M2 package_script_service[11379]: ./preinstall: Died at /tmp/PKInstallSandbox.cHSDAv/Scripts/org.openzfsonosx.zfs.IjSnZE/preinstall line 43.
2023-11-26 21:32:32+00 M2 package_script_service[11379]: Responsibility set back to self.
2023-11-26 21:32:32+00 M2 install_monitor[14238]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: releasing backupd
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: allow user idle system sleep
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg”." UserInfo={NSFilePath=./preinstall, NSURL=file:///Users/<username>/Downloads/OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg, PKInstallPackageIdentifier=org.openzfsonosx.zfs, NSLocalizedDescription=An error occurred while running scripts from the package “OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg”.} {
       NSFilePath = "./preinstall";
       NSLocalizedDescription = "An error occurred while running scripts from the package \U201cOpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg\U201d.";
       NSURL = "file:///Users/<username>/Downloads/OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg";
       PKInstallPackageIdentifier = "org.openzfsonosx.zfs";
   }
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: Cleared responsibility for install from 14194.
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: Cleared permissions on Installer.app
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: Running idle tasks
2023-11-26 21:32:33+00 M2 Installer[14194]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg”." UserInfo={NSFilePath=./preinstall, NSURL=file:///Users/<username>/Downloads/OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg#my_package.pkg, PKInstallPackageIdentifier=org.openzfsonosx.zfs, NSLocalizedDescription=An error occurred while running scripts from the package “OpenZFSonOsX-2.2.0-Monterey-12-arm64.pkg”.}
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: Removing client PKInstallDaemonClient pid=14194, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2023-11-26 21:32:33+00 M2 installd[1835]: PackageKit: Done with sandbox removals
2023-11-26 21:32:34+00 M2 Installer[14194]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
2023-11-26 21:32:34+00 M2 Installer[14194]: IFDInstallController 5DFF20 state = 8
2023-11-26 21:32:34+00 M2 Installer[14194]: Displaying 'Install Failed' UI.
2023-11-26 21:32:34+00 M2 Installer[14194]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.



Can anyone please help? Thank you.
umbongo
 
Posts: 1
Joined: Sun Nov 26, 2023 1:39 pm

Re: Monterey install failed

Postby jawbroken » Mon Nov 27, 2023 5:33 am

Did you do all the steps to allow you to install kernel extensions? See here or similar.
jawbroken
 
Posts: 64
Joined: Wed Apr 01, 2015 4:46 am

Re: Monterey install failed

Postby lundman » Tue Nov 28, 2023 5:10 pm

https://github.com/openzfsonosx/openzfs ... nstall#L43

It's running something called "patch".
https://github.com/openzfsonosx/openzfs ... ll_actions

which shouldn't be there. Did I leave some crap in the build area? I will need to check.
User avatar
lundman
 
Posts: 1337
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to General Help

Who is online

Users browsing this forum: No registered users and 125 guests