Casper Admin Losing Packages

aaronbwcollins
New Contributor III

Maybe I am crazy, however, it seems that when I upload anything to my JDS using Casper Admin (version 9.81) the package shows up in the JSS but the corresponding policies fail. Once Casper Admin is closed then reopened it shows the pkg as missing. This issue only recently popped up, has anyone else seen similar issues or have a fix?

Error: the package (blahblah.pkg) could not be found.

Thanks!

1 ACCEPTED SOLUTION

lkrasno
Contributor II

there is a database utility and

https://jamfnation.jamfsoftware.com/article.html?id=175

View solution in original post

15 REPLIES 15

lkrasno
Contributor II

I have a similar ticket, JDS 9.62, running on Ubutu, hosted internally

Do you have backups (JSS) scheduled? or run one recently ?

Only happening intermittently for us, still waiting on a root cause / fix

You're not crazy, go ahead and open a case

tron_jones
Release Candidate Programs Tester

Seeing the same thing. Since upgrade to 9.8 packages are missing from Admin, have to re-upload them. Running on a all JDS DP's.

bpavlov
Honored Contributor

Is this a problem specifically with JDS or is it also affecting regular AFP/SMB JSS DPs?

lkrasno
Contributor II

Do you have backups running ?

Have a look at the JSS Information > JSS summary, run one for Database, checking all boxes

Whats the size of downloadable_file_chunk_data ?

We're also running a HTTPs/SMB share, as a work around I've set the packages to download from there in their policies for the packages affected.

kwsenger
Contributor

Call your JAMF rep. They may give you directions like the ones below.
This worked great for us.

STEP One
Open Terminal

Your_JDSMacServer:~ localadmin$ ls -al /Library/JDS/shares/
RESULTS
total 8
drwxr-xr-x 6 root wheel 204 Sep 15 08:09 .
drwxr-xr-x 6 root wheel 204 Sep 8 11:21 ..
-rw-r--r-- 1 root wheel 115 Sep 15 08:08 .DAVlogin
drwxr-xr-x+ 212 _www wheel 7208 Sep 15 08:08 CasperShare
drwxr-xr-x 2 root wheel 68 Sep 8 11:21 eBooks
drwxr-xr-x 2 root wheel 68 Sep 8 11:21 mobileDeviceApps

STEP TWO

(This command renames .DAVlogin to .DAVloginold)
(After you rename the accounts Your_JDSMacServer:~ localadmin$ sudo mv /Library/JDS/shares/.DAVlogin /Library/JDS/shares/.DAVloginold

Verify the change
Your_JDSMacServer:~ localadmin$ ls -al /Library/JDS/shares/
RESULTS
total 8
drwxr-xr-x 6 root wheel 204 Sep 15 08:09 .
drwxr-xr-x 6 root wheel 204 Sep 8 11:21 ..
-rw-r--r-- 1 root wheel 115 Sep 15 08:08 .DAVlogin
drwxr-xr-x+ 212 _www wheel 7208 Sep 15 08:08 CasperShare
drwxr-xr-x 2 root wheel 68 Sep 8 11:21 eBooks
drwxr-xr-x 2 root wheel 68 Sep 8 11:21 mobileDeviceApps

STEP THREE
Edit the JSS/JDS/Distribution/UserName Accounts Added a 1 to the end of the webDavReadUsername and webDavWriteUsername.

STEP FOUR
Your_JDSMacServer:~ localadmin$ sudo jamfds enroll
JDS Hostname:Your_JDSMacServer.yourdomain.com
JSS Username: yourAdminUser
JSS Password: yourAdminPassword

Hope this leads you in the right direction.
Karl Senger
School District of Milton

Look
Valued Contributor III

One way I have found of "losing" packages.
Change the package filename
Quit Casper Admin without saving
The filename will change immediately, but the database won't update until you manually save.
Something along these lines is not happening?

jkuo
Contributor

Does running sudo jamfds inventory help?

The other thing to try is the make sure the permissions on all your packages are set to 755, by running chmod 755 package_name for your JDS packages.

aaronbwcollins
New Contributor III

@lkrasno Table Row Count: 0 Table size: 5.6GB
@tron_jones If I wait 10 minutes the package works, seems that even through the JSS and JDS say it's fully uploaded there is some back end check that needs to finish. { NOTE: This is after the checksum is already calculated, file uploaded is very small! } If I try to index the index fails and notifies me of the missing file.
@bpavlov I am only using JDS on a Mac
@kwsenger I will look into this and get back.
@jkuo I tried this and will get back.

Thanks for the help, I also reached out to my rep. Will update once a solution is found!

lkrasno
Contributor II

Are you saying the package appears after 10 minutes? or is disappearing ?

Have you tried uploading through the jss webui? Computer Management > Packages

I would also recommend running a backup to clear out the FileChunk

aaronbwcollins
New Contributor III

@lkrasno Sorry for the misinformation. I have only used Casper Admin, and after 10 minutes it will start working. I haven't throughly tested if that is always the case, I will also see what the results of using the JSS to upload.

lkrasno
Contributor II

JSS and JDS on separate boxes ?

Not too familiar on MYSQL on OS X, or what hardware you're running, but I probably wouldn't be too concerned if all is well after 10 minutes.

aaronbwcollins
New Contributor III

@lkrasno JDS is running on a separate box then our JSS. I am also not super familiar with MYSQL for OS X as well. I was just banging my head against a wall yesterday...haha

Best way to backup? Do I do it through MYSQL or does jamf provide a binary command?

Thanks again!

lkrasno
Contributor II

there is a database utility and

https://jamfnation.jamfsoftware.com/article.html?id=175

BCPeteo
Contributor III

Why does this post above, that has nothing to do with the original question, marked as Solved?
This issue is not solved and it continues to happen to me when uploading a package.

lkrasno
Contributor II

@ostrowsp Have you read the complete thread? Maybe reach out to your TAM ?