amogCS / falcon-intune-mac-deployment

Configuration Profiles and Script for deploying CrowdStrike Falcon with Micosoft Intune
7 stars 1 forks source link

installer: Error - the package path specified was invalid: '/tmp/FalconSensorMacOS.pkg'. #2

Open JDLouie opened 2 years ago

JDLouie commented 2 years ago

I'm receiving the following error.

installer: Error - the package path specified was invalid: '/tmp/FalconSensorMacOS.pkg'.

I manually downloaded the macOS .PKG from the Sensor download page and found the name was FalconSensorMacOS.MaverickGyr.pkg so I updated the shell script, but I then receive the same error for the new filename.

installer: Error - the package path specified was invalid: '/tmp/FalconSensorMacOS.MaverickGyr.pkg'.

djpadz commented 2 years ago

@JDLouie I'm not sure if you're still having this issue, but you might want to look at the PR that I filed (#1). It should resolve that issue for you (as well as a lot of other ones).

https://github.com/amogCS/falcon-intune-mac-deployment/blob/3159a7be1644fdc11777ed6b2d62fe67271997b5/CSFalconInstall.sh

RobSheppard1976 commented 1 year ago

I was running into a similar thing. The .pkg file that was coming down was only 230kb. So I renamed the extension to .json on a hunch and opened it.

This is what was in the .json file:

{ "meta": { "query_time": 9.4e-8, "powered_by": "crowdstrike-api-gateway", "trace_id": "<GUID Obscured>" }, "errors": [ { "code": 401, "message": "access denied, invalid bearer token" } ] }

JDLouie commented 1 year ago

@JDLouie I'm not sure if you're still having this issue, but you might want to look at the PR that I filed (#1). It should resolve that issue for you (as well as a lot of other ones).

https://github.com/amogCS/falcon-intune-mac-deployment/blob/3159a7be1644fdc11777ed6b2d62fe67271997b5/CSFalconInstall.sh

It's been a while since I got my deployment working, so I will have to go back and take a look.

I was running into a similar thing. The .pkg file that was coming down was only 230kb. So I renamed the extension to .json on a hunch and opened it.

This is what was in the .json file:

{ "meta": { "query_time": 9.4e-8, "powered_by": "crowdstrike-api-gateway", "trace_id": "<GUID Obscured>" }, "errors": [ { "code": 401, "message": "access denied, invalid bearer token" } ] }

I will check the history of working on this deployment and see if it was an access issue.

RobSheppard1976 commented 1 year ago

@JDLouie I got past it in the end. I'm not sure what I did, I think I commented out a bunch of lines to figure where it was breaking, and just ended up starting from scratch and got it to work this time around.

RS99999 commented 1 year ago

Hi. I am facing this exact error:- installer: Error - the package path specified was invalid: '/tmp/FalconSensorMacOS.MaverickGyr.pkg'.

@JDLouie i have tried your updated script and get the same issue. Can anyone help please? My shell scripting knowledge is very limited.
Thanks in advance