Jamf quickadd symlinks /usr/local/bin causing install problems for other apps

obing
New Contributor III

When JAMF quickadd is run, its script symlinks /usr/local/bin -> /usr/local/jamf/bin/jamf

This causes an issue when installing popular scripts such as brew (homebrew) which appears to rely on usr/local/bin being a directory, not a symlinked path. ie you get the following error:

mkdir: /usr/local/bin: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/bin

since bin is symlinked to bin@ -> /usr/local/jamf/bin/jamf

(btw, yes, PATH doesn't follow symlinks)

17 REPLIES 17

andrew_nicholas
Valued Contributor

This is a known bug as of 10.4 (PI-005852).

TCBIW
New Contributor III

Dealing with the same issue right now with version 10.4.1.
Lots of dev tools (e.g. docker, aws, git) rely on /usr/local/bin, so this is a big issue for me.

This is a good link for more discussion on this issue:
https://www.jamf.com/jamf-nation/discussions/28097/jamf-pro-10-4-and-quick-add-package-bug

I'm implementing the enrollment script from this post: https://www.jamf.com/jamf-nation/discussions/28097/jamf-pro-10-4-and-quick-add-package-bug#responseC...

obing
New Contributor III

Any way we can ping JAMF to address this in next patch fix? Can only imagine every developer and engineer w/quickadd is reeling in agony trying to fix this w/out knowing there's a script you have to run to fix JAMF's issue. Already filed a support ticket but no ETA on fix.

donmontalvo
Esteemed Contributor II

obing
New Contributor III

Im happy to report it appears to be fixed in 10.6.0. It also appears that as of today it didn't make the release notes but I can confirm the missing mkdir line has been added to recon in 10.6.0 so new quickadds will have it. I've also pinged support to hopefully update 10.6.0's release notes page accordingly so we can see the end of PI-005852

obing
New Contributor III

and the release notes have now been updated to reflect the change. yay! http://docs.jamf.com/10.6.0/jamf-pro/release-notes/Bug_Fixes_and_Enhancements.html

kricotta
Contributor II
Contributor II

What would the workaround be for machines that we have already used 10.5 QuickAdd to enroll? I have a lot of machines that are now reporting the symlink issue but I'm not sure what to do to remedy them. Any help is greatly appreciated!

Sincerely,

Kevin Ricotta
Jamf Technical Support

bpavlov
Honored Contributor

@kricotta Upgrade to Jamf Pro 10.6 it sounds like!

kricotta
Contributor II
Contributor II

@bpavlov I upgraded my client software to 10.6 but since I am cloud I don't know if I just need to wait for my instance to update to 10.6 or what is needed. I apologize if this sounds weird, I'm new to Jamf and literally just finished enrolling a bunch of devices.

Sincerely,

Kevin Ricotta
Jamf Technical Support

obing
New Contributor III

@kricotta the fix is in the 10.6 of Recon so you'll need to rebuild your quickadd pkgs. I asked same question about machines in field here that had old quickadd/sym link issues and they said to run the fix script on all machines. I haven't rolled that out yet but it appears pretty simple.

Curious how others are tracking which machines have fix and who doesn't, maybe its a moot issue if you just apply to all.

kricotta
Contributor II
Contributor II

I've tried the fix script as well. I can't push it via Jamf as, well it is broken and won't check in. However, I did manually run it on a machine having the issue and still no love. I'm calling support now.

Sincerely,

Kevin Ricotta
Jamf Technical Support

obing
New Contributor III

@kricotta interesting. report back and let us know

kricotta
Contributor II
Contributor II

Support is upgrading me to 10.6 cloud instance (apparently I was not scheduled until August 4th for the update). So I will report back if the 10.6 upgrade and new QuickAdd package fixes the issue.

Sincerely,

Kevin Ricotta
Jamf Technical Support

kricotta
Contributor II
Contributor II

Ok, I have been upgraded on the backend to 10.6. However, it doesn't appear to have done anything. The Fix Script didn't work either. I created a new 10.6 QuickAdd and also, no improvement. I then tried manually removing anything Jamf off the machine, profiles etc. The magic combination seems to be the following (nothing else needed to be removed).

Run these commands on affected machine:

sudo rm -rf /usr/local/jamf/bin/jamf sudo rm -rf /usr/local/jamf/bin/jamfAgent

Then run Recon - Remote Enrollment to install package and re-link. NOTE: I am swearing off using QuickAdd packages now in favor of remote push where possible.

Sincerely,

Kevin Ricotta
Jamf Technical Support

kricotta
Contributor II
Contributor II

So to follow-up again. This apparently isn't fixed and it's back to the drawing board.

Sincerely,

Kevin Ricotta
Jamf Technical Support

obing
New Contributor III

<removed>

drhoten
Contributor II

Hello @kricotta, sorry to hear you are still having problems with this workflow. If you are still having issues with it, could you reach out to and work with support so we can learn more about why it's not working in your case?

Thanks!