Anyone run into the "unpack failed, unknown file type" error when pushing custom Mac apps in SM?
-I tried 2 different .pkgs wrapped in .dmg and hosted externally with a shareable link
-Logs show it downloads successfully, and curl returns 0. Then it fails during unpacking
@sshort Is this running on the new beta of software distribution? I have a personal preference of installing from pkg files so I do not have a lot of experience here. Anyhow, I know DMGs mount on the users desktop and you usually drag the item to the application folder. I don't think Meraki knows this by default so you have to use an install command to do so. Hopefully, this helps:
*I am assuming that Meraki does the mounting and unmounting of that volume so don't worry about that command. The third one down it what you need (copying the app to /Applications).
Upon further investigation, no command should be needed to install from a DMG. I tested it by creating a dmg with just an app inside and pushing it, installed just fine. I would check to make sure that the DMG is just the app, nothing else, upload it to the Meraki cloud and push. Why would you need to wrap the pkgs into DMGs? This may be your issue. A DMG should just contain a .app file.
I tested uploading just a .pkg (hosted externally and directly with Meraki) and I'm getting the same error. I opened a ticket with Meraki...
Here's the log from what I just tried using a .pkg without a .dmg wrapper:
2018-03-01 13:36:20.125187 [0x700007965000]: TunClient::handle_request [pcc120.meraki.com]: request
2018-03-01 13:36:20.526504 [0x700007aee000]: fetch_to_file(): curl returned 0 for download url https://bvoice-my.sharepoint.com/:u:/g/personal/helpdesk_bazaarvoice_com/EU9RC2xf0HFOiORa3P6cMn4BmYQ...
2018-03-01 13:36:20.529928 [0x700007aee000]: Download : Download complete: /tmp/B423F67D-60DD-EE7F-099F-0F7F9CBD6E1C/download/EU9RC2xf0HFOiORa3P6cMn4BmYQeW-UI49cI8dwt0Xu0rg
2018-03-01 13:36:20.530010 [0x700007aee000]: Unpack : Unpack started: /tmp/B423F67D-60DD-EE7F-099F-0F7F9CBD6E1C/download/EU9RC2xf0HFOiORa3P6cMn4BmYQeW-UI49cI8dwt0Xu0rg
2018-03-01 13:36:20.530038 [0x700007aee000]: Unpack : Unpack failed, unknown file type.
If you go to the Apps section, does it look like this? Can you upgrade to the newest version (beta)? With the beta you can deploy DMGs and PKGs. If not, send a message to @Melissa and she can get you into the beta.
@sshort You may be looking at some older documentation. I am scoping out a .pkg and it works fine. Have you verified that the package works?
Can you provide me a link to that documentation you are looking at.
@jared_f I did a sanity check, and the package installs successfully if I run it locally on my test machine with macOS 10.13.3. It's just the Nomad .pkg available here: https://nomad.menu/download/NoMAD.pkg
The documentation I'm referencing is here: https://documentation.meraki.com/SM/Apps_and_Software/Installing_Custom_Apps_on_Windows_and_Mac_Devi...
I have an update for anyone interested...
I'm still working with support, but my issue is partially resolved by uploading an app to the Meraki cloud vs. hosting with an external link. The app does eventually install on the target Mac, however Systems Manager will give a "failed" message, and the app will appear in the "missing" category.
M_agent logs on the target Mac will give an "install complete" message in the log, but will fail to ECHO "success" or "failure."
Not only you @sshort. I am seeing similar things with the software deployment update. Usually, it installs after about 10 minutes. Recommendation - make the name of the package the same as the app name so it bounces back at "installed"... only took me 3 weeks to figure that one out.
how did you manage to make it work?
I have a big pkg (3GB from Adobe). If I try to upload it (meraki or extern like Google drive), it is referred as zip and won't unpack/install.
I made a dmg of it and put it on Google drive. But I doesn't seem to really download. it can't take 1 second ! (look at timestamps below). Any idea? either on uploading pkg that doesn't show as Zip omg through dmg?
2018-05-17 09:19:42.662654 [0x70000fff1000]: Download : Download started: /tmp/1F9BAD5E-579E-8360-1D82-D53AD2C25BAC/download/uc
2018-05-17 09:19:43.197888 [0x70000fff1000]: fetch_to_file(): curl returned 0 for download url https://drive.google.com/uc?export=download&id=1kxi4Rk3LBTB5vD04ewD4RcDEOtkCs9mq
2018-05-17 09:19:43.199641 [0x70000fff1000]: Download : Download complete: /tmp/1F9BAD5E-579E-8360-1D82-D53AD2C25BAC/download/uc
2018-05-17 09:19:43.199667 [0x70000fff1000]: Unpack : Unpack started: /tmp/1F9BAD5E-579E-8360-1D82-D53AD2C25BAC/download/uc
2018-05-17 09:19:43.199689 [0x70000fff1000]: Unpack : Unpack failed, unknown file type.
@Salem_kommun I haven't had too much time for additional testing, but I would at least open a support ticket so this issue is on Meraki's radar (and hopefully, they can update their documentation on this issue).
a couple of things i've noticed:
1- I can never get this to work from an external source (even double-checking that the Google/OneDrive/Box link is publicly accessible). i see the same unpack error you get
2- Starting in High Sierra Apple is checking for both a pkg identifier *AND* a "Product ID," which I've had to manually add to some existing packages. Check out this link for more info, and an example.
I solved partly the problem.
It wouldn't unpack because it s not really a direct link. Google Drive asks for confirmation if big files. Using Dropbox or 1fichier.com made it possible to download and unpack.
But another problem still won't let it work. And I don't understand why. The same pkg-file installs fine if I copy it manually and double-click it
2018-05-17 22:32:37.992815 [0x70000d0ed000]: fetch_to_file(): curl returned 0 for download url https://www.dropbox.com/s/qjue96kqudojx8x/dreamw2_Install.pkg?dl=1
2018-05-17 22:32:38.5951 [0x70000d0ed000]: Download : Download complete: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.5990 [0x70000d0ed000]: Unpack : Unpack started: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.6003 [0x70000d0ed000]: Unpack : Unpack complete: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.6010 [0x70000d0ed000]: Install : Install started: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.6021 [0x70000d0ed000]: Install : executing in (/tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D): /usr/sbin/installer -pkg '/tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg' -target / && echo "SUCCESS" || echo "FAILURE"
2018-05-17 22:32:38.480957 [0x70000d0ed000]: Install : Install failed for /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg: installer: Error the package path specified was invalid: '/tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg'.
Yup, we're seeing exactly the same here with M Agent v1.0.95 - both packages and disk images are failing to install across all of our Macs (10.11 to 10.13).
Apparently, heard elsewhere, v1.0.96 supposedly solves this bug but i'm assuming that this is a beta version as i can't find a download for this.