Alternative Download location doesn't work for Mac clients
I want to install Adobe InDesign on a computer. I have a .zip file which contains a .pkg .
My K1000 is a VM and version 5.5.90548
My K1000 clients are 5.5.30275
I have reproduced this on MacOS 10.7.3, 10.8.5, 10.9.3
- Install Adobe InDesign manually on test machine, then run inventory on it.
- Find newly discovered InDesign Software in Inventory - upload 0 byte "dummy" file to this item in the inventory.
- In Managed Installations, I make a new one and pick the newly discovered software with "dummy" file.
- I select Configure Manually and enter in the command : sudo unzip IndesignCS6.zip && sudo installer -pkg IndesignCS6.pkg -target /
- I select Use Alternate Download and enter in the path : \\server.domain.edu\Software\2014\ZippedPackages\IndesignCS6.zip
- On my test Mac client, I calculate the MD5 checksum of the .zip file on the network share and verify the credentials to be used will work.
- The rest are default options - Execute anytime, deploy order 10, Always deploy...etc.
The Managed Installation shows that I have 2 machines to deploy to (the ones I selected). I turn on debug logging on these clients, and force an inventory update on each. The Installation does not succeed.
kdeploy.log shows these four lines each time I try to inventory the system to trigger the installation of this zipped package:
[Tue Jun 17 15:01:07 2014] GetFilenameFromReplicationURL: postpended hash not found
[Tue Jun 17 15:01:08 2014] [CopyFile] Failed to open source file /tmp/mntPtbBwfWi/2014/ZippedPackages/IndesignCS6.zip, (No such file or directory)
[Tue Jun 17 15:01:08 2014] DownloadSMBFile: unable to copy file from: '/tmp/mntPtbBwfWi/2014/ZippedPackages/IndesignCS6.zip' to: '/Library/Application Support/Dell/KACE/data/downloads/547/IndesignCS6.zip' Error: No such file or directory
Sooo.... I've double checked my MD5 checksum; I am calculating the exact file that I am telling K1000 to install from a Mac per K1000 documentation. I double checked my credentials used for the SMB share, and verified that they allow me to connect to this SMB share from the client. I've double checked my path and case of each file/directory. Every machine I've tried this on gives me more or less the same error, only the /tmp/mnt232klkj32 is different each time. I have KACE support involved, but so far they seem to think that this should just work.
Has anyone out there got the Alternative Download location function to work with Managed Installs?
Answers (1)
See bknorr's step by step below.
- Install your package to a Mac and inventory that Mac. Find the new software in the inventory, and upload a 0 byte file that matches the filename EXACTLY which you want to have on an alternate download location. In my case, I made a file AdobePhotoshopCS6_Install.pkg.zip of 0 bytes and uploaded it.
- Make a new Managed Installation item in K1000 and use your newly inventoried software with its 0 byte file.
- Installation Command [configure manually]: sudo unzip AdobePhotoshopCS6_Install.pkg.zip && sudo installer -pkg AdobePhotoshopCS6_Install.pkg -target /
- At this point, I originally had a .zip file with spaces. I don't know how K1000 passes spaces with backslash escape characters, but it doesn't work as expected. Simplify your filenames as much as possible!
- Note that the manual script doesn't need full paths, at least in our case it doesn't. On a Mac, the managed installation directories will be in /Library/Application Support/Dell/KACE/data/downloads/123 (some number).
- Alternate Download Location: \\server.domain.edu\ZippedPackages\AdobePhotoshopCS6_Install.pkg.zip
- In my environment, my share ended up to be case sensitive when working with K1000 and Macs. YMMV.
- Alternate Checksum: 5f2bc320913f12beb4888990292e922e
- Calculate the MD5 on a Mac that has the same share mapped as you'll be using.
- Alternate User Password: Don't use a password with special characters- I did and ended up getting constant errors. In our case, numbers and letters are all we use...a lot of them.
Keyed in my AD creds without the domain and it worked. The problem I am having is with the install line, I am passing two commands:
1) untar - which works
2) the install, which does not appear to work. I have played around with using the full path and a relative path. Neither seem to work. Any suggestions?
sudo tar zxvf LabDistroNOUPdates.tar.gz && sudo installer /Library/Application Support/Dell/KACE/data/downloads/34313/LabDistroNOupdates/Build/LabDistroNOupdates_Install.pkg -target /
or
sudo tar zxvf LabDistroNOUPdates.tar.gz && sudo installer LabDistroNOupdates/Build/LabDistroNOupdates_Install.pkg -target / - Jbr32 10 years ago
unzip -o package.pkg.zip && installer -pkg package.pkg -target /
Before the 6.0 release I didn't have to use the -o flag on the unzip command to overwrite files, but now it's necessary, is there a similar flag for tar? Also, the AMPAgent and related processes (KDeploy, etc) run in the root context so there's no need to use sudo on the commands. - chucksteel 10 years ago