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

Pkg installation fails with "component pkg is missing or corrupt" #8

Open
mberardinelli opened this issue Jun 10, 2022 · 0 comments
Open

Comments

@mberardinelli
Copy link

Hello!

I have run into a very strange issue while attempting to create new installation pkgs for agent version 2.9.3. Any pkg I now create will fail to install on client computers (remote installation via JAMF) with this error:

Installation failed. The installer reported: installer: Package name is OCS Inventory Pkg Setup
installer: Upgrading at base path /
installer: The upgrade 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 “OCS Inventory Pkg Setup.pkg”.)

The package still seems to install perfectly fine if I run it locally/by hand on a machine and click through the gui installer prompts.

However, when analyzing my created packages with SuspiciousPackage, I see the error there:
suspkg error

When I manually look at the contents of my created package though, it looks as if the component pkg is fine:
contents

Examining the original downloaded installer pkg with SuspiciousPackage, I see the same error:
original pkg

So far, I have tried all of the following to troubleshoot:

  • Creating the pkgs wtih version 2.0 and version 1.0 of the Mac Packager
  • Using http in the Packager settings with only Debug mode enabled
  • Using https with cacert.pem included, both with and without Download option enabled in the Packager settings
  • Using agent 2.9.3, 2.9.2, and 2.9.1 source packages
  • Copying the component pkg out from the contents of the source pkg, and using that to create new packages. This will not even generate a pkg, and instead throws a permission error that it fails to copy the preinstall script
  • Have tried everything as both a standard user and an admin user

All have yielded the same error. Just a couple of weeks ago, I was able to generate new install packages for the 2.9.1 agent with zero issues.

I'm wondering if this may be related to the MacOS Monterey 12.4.0 update? That installed on my machine recently and that is the only change I can think of.

Thanks in advance for any help you can provide!

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

1 participant