Skip to main content
Question

Error Occurred While Running Policy "Update Inventory" on Computer "xxx"

  • July 7, 2022
  • 7 replies
  • 41 views

BookMac
Forum|alt.badge.img+9

Hi folks,

for a few weeks now we've been getting messages that the inventory has failed. The log looks like this:

An error occurred while running the policy "Update Inventory" on the computer "xxx". Actions from policy log: Executing Policy Update Inventory Running Recon... Retrieving inventory preferences from https://xxx.jamfcloud.com/... Locating accounts... Locating package receipts... Searching path: /System/Applications Locating software updates... Locating plugins... Locating printers... Searching path: /Applications Locating hardware information (macOS 12.2.1)... Software update timed out after 300 seconds. The complete policy log is available in the JSS at: https://xxx.jamfcloud.com/policies.html?id=1&o=l Computer Info: ID: xxx IP Address: xxx Serial Number: xxx

 Can someone tell me what's going wrong? The inventory there for too long and then he breaks it off?

Regards

7 replies

Forum|alt.badge.img+7
  • Contributor
  • 38 replies
  • July 7, 2022

We've also been seeing this behaviour for the last couple of weeks - I was wondering if it was something related to our infrastructure but clearly it's a wider issue


Forum|alt.badge.img+11
  • Contributor
  • 225 replies
  • July 7, 2022

You may want to check the policy itself.... Looks like you have softwareupdates running with the inventory update, and it's timing out on the software update


Forum|alt.badge.img+12
  • Valued Contributor
  • 359 replies
  • July 7, 2022

Looks as if the softwareupated got stuck and needs to be kicked with  "sudo /bin/launchctl kickstart -k system/com.apple.softwareupdated".


BookMac
Forum|alt.badge.img+9
  • Author
  • Jamf Heroes
  • 92 replies
  • July 12, 2022

It looks like the solution is the one posted by @gachowski  at https://community.jamf.com/t5/jamf-pro/recon-error-software-update-timed-out-after-300-seconds/m-p/269056#M24603

I adjusted the update inventory policy and added sudo launchctl kickstart -k system/com.apple.softwareupdated under Files and Processes


Forum|alt.badge.img+8
  • Contributor
  • 29 replies
  • December 20, 2022

It looks like the solution is the one posted by @gachowski  at https://community.jamf.com/t5/jamf-pro/recon-error-software-update-timed-out-after-300-seconds/m-p/269056#M24603

I adjusted the update inventory policy and added sudo launchctl kickstart -k system/com.apple.softwareupdated under Files and Processes


No need for sudo though?


Forum|alt.badge.img+12
  • Valued Contributor
  • 359 replies
  • January 11, 2023

No need for sudo though?


No sudo needed when run from the MDM, but needed when run by user from command-line.

 


Forum|alt.badge.img+8
  • Contributor
  • 29 replies
  • January 11, 2023

No sudo needed when run from the MDM, but needed when run by user from command-line.

 


Exactly, that's what I was saying. the OP has sudo in their policy, and I was asking why.