OS X task deployment problem

(imported topic written by gub1291)

Hi all,

I’m working on deploying a .pkg file to our mac clients but am getting stuck.

I go through the creation wizard and am able to upload the file that I need. I then take action and am deploying it on a test machine. As far as the console sees it, it’s a success. However, the software is not installed on the client.

The client’s console displays an error from BESAgent stating:

“installer: Error the package path specified was invalid: ‘__Download/packagename.pkg’.”

There are 2 pertinent lines in /var/log/install.log:

PFPkg: No file found at path: /Librarby/Application Support/BigFix/BES Agent/__BESData/…pkg

and

PFPackage::packageWithURL - can’t instantiate package: /Librarby/Application Support/BigFix/BES Agent/__BESData/…pkg

My actionscript looks like this:

download http://servername:52311/Uploads/29a83fd7c8c6481016023ae7431e7c41daea6e68/package.pkg.tmp

continue if {(size of it = 16310277 AND sha1 of it = “29a83fd7c8c6481016023ae7431e7c41daea6e68”) of file “package.pkg.tmp” of folder “__Download”}

extract package.pkg.tmp

wait sudo installer -pkg “__Download/package.pkg” -target /Applications

Could someone help and point me in the right direction? I’m not sure why this file isn’t being created or stored properly.

(imported comment written by MattBoyd)

Is there any possibility that this is related to the issue that doubleminus posted in this thread: http://forum.bigfix.com/viewtopic.php?pid=25858#p25858 ?

(imported comment written by gub1291)

boyd,

I’ve used the windows installer method and it’s gotten me further but now it’s stuck at the point of actually running the installer script.

I keep seeing errors that say: “installer: Error the package path specified was invalid” and no matter what I do or what I type, it seems that BES client can’t see the file to install it.

I thought maybe it could be a permissions issue so I’ve added a chmod command to the script. I can see that the file gets the new permissions but it still doesn’t run.

Here’s my current actionscript:

download http://server:52311/Uploads/29a83fd7c8c6481016023ae7431e7c41daea6e68/idf36.2.0r003.tmp
continue if {(size of it = 16310277 AND sha1 of it = "29a83fd7c8c6481016023ae7431e7c41daea6e68") of file "long name.tmp" of folder "__Download"}
 
extract long name.tmp
 
wait cp __Download/really really long name.pkg __Download/new.pkg
wait sudo chmod 777 __Download/new.pkg
wait sudo installer -pkg __Download/new.pkg -target /Applications

The file gets downloaded, extracted, copied, and chmodded, but the installer cries foul.

Does anyone have ideas on how to resolve this?

Thanks,

Nick

(imported comment written by gub1291)

Boyd,

I’m tracking down the problem. Seems like the pkg file is getting corrupted when I upload it using the BES console.

(imported comment written by MattBoyd)

Hey Nick,

I’m coming to that conclusion as well. Have you found a workaround yet?

(imported comment written by SystemAdmin)

Use Disk Utility (on any mac in /Applications/Utilities ) to create a disk image file containing the pkg. This ensures the pkg is a single file instead of a directory (pkg). This avoids confusion when moving the pkg from Mac > Windows and back.

  • Aaron

(imported comment written by gub1291)

@boyd,

Thanks to @amelgares, it seems to have worked! What a PITA this has been!