Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JamfPackageCleaner - Resource not found / Gateway Timeout issues #129

Open
AppsPackG opened this issue Aug 22, 2023 · 3 comments
Open

JamfPackageCleaner - Resource not found / Gateway Timeout issues #129

AppsPackG opened this issue Aug 22, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@AppsPackG
Copy link

Using the JamfPackageCleaner in our DEV environment works fine, however in out Pre-Prod environment the processor responds with the following with -vvvv logging enabled and looking at the Jamf Upload logs:

"504 gateway timeout" from the API response for three attempts and then on the 4th attempt it responds with "The server has not found anything matching the request URI". This continues for the remaining attempts before generating a response code 404.
The traceback references a few areas of the processor in particular:
JamfPackageCleaner.py", line 305, in main
self.delete_package(
JamfPackageCleaner.py", line 161, in delete_package
raise ProcessorError("ERROR: Package deletion failed "

Upon completion of the recipe run it appears that the package has actually been deleted looking in Jamf. The actual output from autopkgr displayed in the terminal is as follows:

JamfPackageCleaner: Deleting package...
JamfPackageCleaner: Package delete attempt 1
JamfPackageCleaner: UNKNOWN ERROR: Package '3259' deletion failed. Will try again.

If there was a way for the timeout to be managed better it would be helpful as at the moment it stops after attempting the first package deletion and doesn't attempt any other in scope that aren't defined in versions_to_keep variable. Therefore numerous runs would be required to complete this and scheduling something with launched seems a lot of work if this could be resolved.

@AppsPackG
Copy link
Author

After monitoring the progress of the attempts while looking at Jamf Pro, it appears to delete the package after 3 or 4 attempts but the autopkg run output still proceeds to attempt until 5 attempts fail.

This is seen with Jamf Cloud using AWS3.

@grahampugh
Copy link
Collaborator

grahampugh commented Sep 13, 2023

You mean you're using your own S3 bucket as cloud distribution point rather than Jamf's? That's not something I've been able to test, but I do remember anecdotally that one other user has "Sleep" processors in between other JamfUploader processors, to allow the S3 bucket to catch up (when adding packages, not when deleting). Possibly JamfPackageCleaner needs longer than other forms of DP to get useful feedback, or possibly it won't work at all because the S3 bucket is disconnected from the pkg metadata.

This also reminds me that JamfPackageCleaner is going to need to be updated for JCDS 2.0.

@AppsPackG
Copy link
Author

That's correct @grahampugh. We are using an S3 bucket as a cloud distribution point.

@grahampugh grahampugh added the help wanted Extra attention is needed label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants