Installer command hangs

Hi,

I got my "installer" command hangs.

I have a self-built pkg and I'd like to install it via command line:

sudo installer -pkg XXXX.pkg -verbose -target /

 

But the above command hangs for 10+ mins. Here's the ps aux | grep installer output:

root              4013   0.0  0.4  4341956  15700 s000  S+    3:02AM   0:00.73 installer -pkg XXXX.pkg -verbose -target /

 

I found some logs related to the installer command in /var/log/install.log

2022-01-14 03:02:10-08 cats-Mac-4 installer[4013]: Product archive /Users/test/Downloads/client/XXXX.pkg trustLevel=350
2022-01-14 03:02:11-08 cats-Mac-4 installer[4013]: External component packages (2) trustLevel=350
2022-01-14 03:02:11-08 cats-Mac-4 installer[4013]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2022-01-14 03:02:11-08 cats-Mac-4 installer[4013]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/test/Downloads/client/XXXX.pkg#YYYY.pkg
2022-01-14 03:02:11-08 cats-Mac-4 installer[4013]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/test/Downloads/client/XXXX.pkg#YYYY.pkg
2022-01-14 03:02:11-08 cats-Mac-4 installer[4013]: Set authorization level to root for session
2022-01-14 03:02:11-08 cats-Mac-4 installer[4013]: Administrator authorization granted.

 

The self-built pkg has been signed / notarized correctly. How to dig out what cause the command hangs?

Thank you!

sudo installer -pkg XXXX.pkg -verbose -target /

Did you run that command from within a Terminal window? Or via some other mechanism, for example, SSHing into the machine?

If you try this on a fresh machine, do you see the same hang? I usually do this sort of testing in a VM, so I can repeatedly test the process, restoring the VM to a snapshot that’s never seen my app between each test.

If you install a package from some other source — my preferred test package for this sort of thing is the SF Symbols app — does it hang in the same way?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Eskimo, thank you for your kind reply!

--

Did you run that command from within a Terminal window? Or via some other mechanism, for example, SSHing into the machine?

I run a python3 script in Terminal.app. The script will fork process to run installer -pkg ... command.

--

If you try this on a fresh machine, do you see the same hang?

The issue is not always reproduce. When the installer -pkg ... command is stucked like the ps aux | grep installer result in my first post, I can run another installer -pkg ... command and this time it will be successfully done and the app will be installed correctly.

My test environment is vmware VMs.

I've tested it on 10.15, 10.15.7, 11.6.1, 11.6.2, 12.0.1, 12.1.

This issue occurs only on 11.6.1, 11.6.2, 12.0.1, and 12.1.

Thanks for the answers so far.

Based on the above I’ve no idea what’s going on )-: Please reproduce the problem, then run sample against the stuck process, and post that here (as a file attachment, that is, click the paperclip icon and then choose Add File).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Installer command hangs
 
 
Q