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

Unpack failed with custom mac app

Building a reputation

Unpack failed with custom mac app

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

15 REPLIES 15
Kind of a big deal

Re: Unpack failed with custom mac app

@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).

Screen Shot 2018-02-28 at 5.56.22 PM.png

Find this helpful? Click the kudos button. Thanks!
Kind of a big deal

Re: Unpack failed with custom mac app

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.

Find this helpful? Click the kudos button. Thanks!
Building a reputation

Re: Unpack failed with custom mac app

@jared_f Hmmm, I'll test uploading a straight .pkg later today, maybe something changed if you're on the SM agent beta. I went through the steps to wrap my installer in a .dmg because of this documentation:

 

Screen Shot 2018-03-01 at 9.04.12 AM.png

 

 

Building a reputation

Re: Unpack failed with custom mac app

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 [630503948031915178]: Download complete: /tmp/B423F67D-60DD-EE7F-099F-0F7F9CBD6E1C/download/EU9RC2xf0HFOiORa3P6cMn4BmYQeW-UI49cI8dwt0Xu0rg
2018-03-01 13:36:20.530010 [0x700007aee000]: Unpack [630503948031915178]: Unpack started: /tmp/B423F67D-60DD-EE7F-099F-0F7F9CBD6E1C/download/EU9RC2xf0HFOiORa3P6cMn4BmYQeW-UI49cI8dwt0Xu0rg
2018-03-01 13:36:20.530038 [0x700007aee000]: Unpack [630503948031915178]: Unpack failed, unknown file type.

Kind of a big deal

Re: Unpack failed with custom mac app

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.

 

Screen Shot 2018-03-01 at 3.01.27 PM.png

Find this helpful? Click the kudos button. Thanks!
Building a reputation

Re: Unpack failed with custom mac app

Yep, my apps dashboard is the new version like your screenshot.

 

poor me 😞

Kind of a big deal

Re: Unpack failed with custom mac app

@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.

Find this helpful? Click the kudos button. Thanks!
Building a reputation

Re: Unpack failed with custom mac app

@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...

 

Thanks!

Building a reputation

Re: Unpack failed with custom mac app

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."

Kind of a big deal

Re: Unpack failed with custom mac app

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.

Find this helpful? Click the kudos button. Thanks!
Conversationalist

Re: Unpack failed with custom mac app

Hi, 

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 [647392446757773597]: 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 [647392446757773597]: Download complete: /tmp/1F9BAD5E-579E-8360-1D82-D53AD2C25BAC/download/uc
2018-05-17 09:19:43.199667 [0x70000fff1000]: Unpack [647392446757773597]: Unpack started: /tmp/1F9BAD5E-579E-8360-1D82-D53AD2C25BAC/download/uc
2018-05-17 09:19:43.199689 [0x70000fff1000]: Unpack [647392446757773597]: Unpack failed, unknown file type.

Building a reputation

Re: Unpack failed with custom mac app

@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.

Conversationalist

Re: Unpack failed with custom mac app

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 [647392446758159662]: Download complete: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.5990 [0x70000d0ed000]: Unpack [647392446758159662]: Unpack started: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.6003 [0x70000d0ed000]: Unpack [647392446758159662]: Unpack complete: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.6010 [0x70000d0ed000]: Install [647392446758159662]: Install started: /tmp/0EDAEC23-DDE6-3A19-6C50-3D6750146B9D/download/dreamw2_Install.pkg
2018-05-17 22:32:38.6021 [0x70000d0ed000]: Install [647392446758159662]: 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 [647392446758159662]: 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'.
FAILURE 

Conversationalist

Re: Unpack failed with custom mac app

Has this been resolved? I have the same issue regarding Adobe pkg. Thank you.
New here

Re: Unpack failed with custom mac app

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.

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels