macOS error when creating pkg using CyberArkEPMInstaller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

macOS error when creating pkg using CyberArkEPMInstaller

L1 Bithead

Hi Guys,

 

Seeing an error when creating a pkg for EPM. Error reads:

 

Failed to create installer package: ProcessError(terminationStatus: 1, output: Optional("productbuild: error: directory \"" does not exist for writing \".pkg\"."), readerError: nil, writerError: nil)

 

Any Ideas?

8 REPLIES 8

L5 Sessionator

Hi @Yemi Badru​ ,

 

Can you please share what command did you use to create it ?

 

Thanks.

L1 Bithead

Hi @Arik Rabi​ ,

 

I use this command: sudo ./CyberArkEPMInstaller -createInstallerPackage -installationKey -configuration 'CyberArkEPMAgentSetupMacos_25.9.0.316.config' -adminUser -adminPassword

L5 Sessionator

We have it packaged without issue in jamf here and manually installed it too using the official instructions from the cyberark website for 25.9. tested and deployed without issue. - https://docs.cyberark.com/epm/latest/en/content/installation/macos-installagents.htm#tabset-1-tab-1

 

sudo ./CyberArkEPMInstaller -createInstallerPackage -installationKey <your-key> -configuration 'CyberArkEPMAgentSetupMacos_25.9.0.316.config' -adminUser <user> -adminPassword <password> -output /Users/yourname/Desktop/CyberArkEPM.pkg 

 

https://cyberark.wistia.com/medias/8lab1u53rf demonstration on packaging it

 

https://community.cyberark.com/s/article/EPM-MacOS-Prepare-Activation-Command may not be applicable

 

 

macOS Blogs

 Deploying EPM Agents on macOS with Jamf Pro

 In this article, we cover the challenges with manual agent deployment and how to deploy the EPM agent to macOS workstations using Jamf Pro, Apple Mobile Device Management (MDM).

 Useful Knowledge Articles

 How to deploy agent via JAMF - EPM - How to configure JAMF for EPM Agent distribution 

 How to collect Agent logs - EPM MacOS Agent - How to take Agent Logs? 

 FAQs for account _cyberarkepm - FAQ for account _cyberarkepm created in EPM MacOS 

L4 Transporter

We have it packaged without issue in jamf here and manually installed it too using the official instructions from the cyberark website for 25.9. tested and deployed without issue. - https://docs.cyberark.com/epm/latest/en/content/installation/macos-installagents.htm#tabset-1-tab-1

 

sudo ./CyberArkEPMInstaller -createInstallerPackage -installationKey <your-key> -configuration 'CyberArkEPMAgentSetupMacos_25.9.0.316.config' -adminUser <user> -adminPassword <password> -output /Users/yourname/Desktop/CyberArkEPM.pkg 

 

https://cyberark.wistia.com/medias/8lab1u53rf demonstration on packaging it

 

https://community.cyberark.com/s/article/EPM-MacOS-Prepare-Activation-Command may not be applicable

 

 

macOS Blogs

 Deploying EPM Agents on macOS with Jamf Pro

 In this article, we cover the challenges with manual agent deployment and how to deploy the EPM agent to macOS workstations using Jamf Pro, Apple Mobile Device Management (MDM).

 Useful Knowledge Articles

 How to deploy agent via JAMF - EPM - How to configure JAMF for EPM Agent distribution 

 How to collect Agent logs - EPM MacOS Agent - How to take Agent Logs? 

 FAQs for account _cyberarkepm - FAQ for account _cyberarkepm created in EPM MacOS 

L5 Sessionator

Thanks @Yemi Badru​ ,

 

This error may indicate that the installer could not write the pkg to the disk.

Any chance you tried running it from a protected location or location with no writing permissions ?

 

 

Thanks,

Arik

L1 Bithead

Thanks for the response all. I'm running the exact same command as last week and now seeing an error that states 'Missing Configuration File'. Definitely including the path to the downloaded configuration file in the script.

 

Just to be sure I've given everyone access to the extracted Cyberark folder & it's contents.

L1 Bithead

Disregard my previous comment that error was due to a typo in my script.

 

Still getting the same error output: Failed to create installer package: ProcessError(terminationStatus: 1, output: Optional("productbuild: error: directory \"" does not exist for writing \".pkg\"."), readerError: nil, writerError: nil)

 

@Arik Rabi​  I definitely have permissions for the directory.

L0 Member

Hi @Arik Rabi​  Just want to let you know I'm having the same error like what @Yemi Badru​ getting right now. I removed the com.apple.quarantine on the zip file before unzip it. I have the full permission to the folder, downloaded multiple times from console but still getting the same problem.

  • 107 Views
  • 8 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!