jamJAR??

Treger
Contributor

Hi Guys,

Anyone out there using jamJAR yet? I am trying to get it working but running into a annoying little issue...

I keep getting an error that says LocalOnlyManifest not declared, however, I have checked the locations of Managed Installs folder and ManagedInstalls.plist and they are definitely present, if I run the munki command managedsoftwareupdate --installonly it works but the script from the JSS just says the above error. The naming convention of everything seems to match whats in the script.

Might be the wrong place to be asking this but I figured since its trying to be run from a JSS...

1 ACCEPTED SOLUTION

bentoms
Release Candidate Programs Tester

@Treger Sign up link is: http://macadmins.org

Your ManagedInstalls.plist is missing the LocalOnlyManifest key, should be something like:

    <key>LocalOnlyManifest</key>
    <string>jamjar.plist</string>

View solution in original post

7 REPLIES 7

bentoms
Release Candidate Programs Tester

@Treger Hi! There is a channel on the macadmins.org Slack for #jamjar.

But, this issue sounds like there is nothing set for the "LocalOnlyManifest" key in the ManagedInstalls.plist.. can you post a redacted copy of said plist?

Treger
Contributor

Hi @bentoms I have tried to join the macadmins channel before and it says invite only... :(

Here is a copy of the managed installs.plist from the machine:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>AppleSoftwareUpdatesOnly</key> <false/> <key>ClientIdentifier</key> <string>test_munki_client</string> <key>FollowHTTPRedirects</key> <string>none</string> <key>InstallAppleSoftwareUpdates</key> <false/> <key>LastCheckDate</key> <date>2017-05-10T15:49:09Z</date> <key>LastCheckResult</key> <integer>1</integer> <key>LogFile</key> <string>/Library/Managed Installs/Logs/ManagedSoftwareUpdate.log</string> <key>LogToSyslog</key> <false/> <key>LoggingLevel</key> <integer>1</integer> <key>ManagedInstallDir</key> <string>/Library/Managed Installs</string> <key>PackageVerificationMode</key> <string>hash</string> <key>PendingUpdateCount</key> <integer>0</integer> <key>SoftwareRepoURL</key> <string>http://.../Test/</string> <key>UseClientCertificate</key> <false/> </dict> </plist>

Although I have added Google Chrome as the next test app to install with jamJAR it doesn't see to be showing the client_manifest.plist:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>catalogs</key> <array> <string>testing</string> </array> <key>included_manifests</key> <array> </array> <key>managed_installs</key> <array> <string>Firefox</string> </array> <key>managed_uninstalls</key> <array> </array> </dict> </plist>

bentoms
Release Candidate Programs Tester

@Treger Sign up link is: http://macadmins.org

Your ManagedInstalls.plist is missing the LocalOnlyManifest key, should be something like:

    <key>LocalOnlyManifest</key>
    <string>jamjar.plist</string>

Treger
Contributor

Thanks @bentoms trying that now... and I got into. Macadmins too! Legend!

Treger
Contributor

Awesome, thanks!

Couple of Q's

I am running this on a test machine, deleted the apps and tried to do a double install with parameter 4, is this able to accept multiple entries in parameter 4 or not?

Now that I have deleted the apps, the script is running but doesn't seem to be detecting that the 2 apps now need to be installed again I get this with script exit code 0 - Script result: Firefox not in uninstalls (Removed the 2 apps now just trying to re-deploy the one app)

Thanks again!

bentoms
Release Candidate Programs Tester

@Treger Single entries please!

Treger
Contributor

My bad! sorry @bentoms