Skip to main content
Solved

scripts automatically cached


Forum|alt.badge.img+3

Hey guys,

I'm facing a problem where it seems, that some scripts are cached somehow. When I look at the policy Logs everything is fine, my Script is downloaded. But i changed the script recently and the old version is executed. When I download the script file manually, I get the new Version. At the moment, this occurs on a script run by the LoginHook trigger, but I'm sure, that I seen this behavior also on a normal policy some time ago.

Renaming the script gets the new version executed, but this is obviously not a solution for every script.

Is there a known caching directory used by the jamf binary? If I look at the /Library/Application Support/JAMF/ directory, there is no cached script, not even in a renamed version. Problems caused by multiple Distribution Pionts can be excluded, as we only have one.

Any hints?

Thank you!

Oliver Kett

Best answer by stevewood

Silly question, but are you saving your changes in Casper Admin and shutting down Casper Admin before trying to run the policy? I've seen instances where CA doesn't fully apply the change until the app is shut down.

View original
Did this topic help you find an answer to your question?

10 replies

Forum|alt.badge.img+10
  • Contributor
  • 194 replies
  • May 21, 2014

Are you behind a load balancer for your JSS?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 5 replies
  • May 21, 2014

no, there is a direct connection between the Clients and Servers. I should mention, that this only occurs after changing the script multiple times.


Forum|alt.badge.img+12
  • Contributor
  • 417 replies
  • May 21, 2014

is casper admin prompting you to replace the script when you upload it? Are you changing the name once you upload to Admin (not the script name, the name in casper admin)?

How are you deploying the script - remote, policy?

What do the logs in the JSS say?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 5 replies
  • May 21, 2014

Yes, Casper Admin promts me to replace the script. I never changed the name in Admin, I deleted it from Admin and the uploaded it with a new name.

It is deployed via a policy, which is run at LoginHook trigger. The Logs look quite normal:

Executing Policy LoginHook: RRZE Laufwerke...
Creating directory structure for /Library/Application Support/JAMF/Downloads/
Downloading https://csshare.rrze.uni-erlangen.de/Scripts/mountShares.sh...
Running script mountShares.sh...
Script result: [...]

Is the checksum of the script shown by Admin checked by the Client to verfiy if there is a new version of the file to download?


stevewood
Forum|alt.badge.img+35
  • Employee
  • 1797 replies
  • Answer
  • May 21, 2014

Silly question, but are you saving your changes in Casper Admin and shutting down Casper Admin before trying to run the policy? I've seen instances where CA doesn't fully apply the change until the app is shut down.


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • 4331 replies
  • May 21, 2014

If you manually connect to the casper share, if the correct version there?

Also, is the policy set to be cached?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 5 replies
  • May 22, 2014

I save my changes in CA but most of the time not close it (but will give it a try). Whats driving me crazy is, that if I ssh into my Distribution Point, the changes are there. There must be a caching algorithm somewhere...


Forum|alt.badge.img+10
  • Contributor
  • 194 replies
  • May 23, 2014

@stevewood, I've seen funkiness also.

We were uploading scripts to CA then deleting them out of CA before saving and quitting. Turns out CA would delete the script on the local machine as well!

I've found the best practice (especially with more than one admin) is to just use CA for uploading, then save and quit. Then go in through the JSS web interface to make the changes.


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • 4331 replies
  • May 26, 2014

Sounds like we either need: https://jamfnation.jamfsoftware.com/featureRequest.html?id=704

Or to move to JDS shares & use the Casper Admin interface in the JSS.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 5 replies
  • February 17, 2015

Just FYI: this might be the cache folder I was searching for:

/var/root/Library/Caches/jamf/fsCachedData


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings