Comments (2)
Hi Ben,
I've read in Macadmins Slack that many people are having problems uploading packages to Jamf Cloud at the moment (not a thing specific to this processor).
As an experiment, you can try uploading via Jamf Admin. Are your uploads always successful?
If yes, you can also experiment using my standalone jamf-pkg-upload.py
script. This is a bit more involved, but you would need to clone the following repository: https://github.com/grahampugh/jamf-upload
git clone https://github.com/grahampugh/jamf-upload
Then, run the script as follows:
/usr/local/autopkg/python ./jamf-pkg-upload.py --prefs /Users/YOURUSERNAME/Library/Preferences/com.github.autopkg.plist --pkg /path/to/Google_Drive_intel.pkg --replace_pkg
This uses the same upload method as the JamfPackageUploader
processor (it uses curl
). But, with this standalone you can try four different methods; nscurl
, requests
and "direct" (web-emulation):
/usr/local/autopkg/python ./jamf-pkg-upload.py --prefs /Users/YOURUSERNAME/Library/Preferences/com.github.autopkg.plist --pkg /path/to/Google_Drive_intel.pkg --replace_pkg --nscurl
/usr/local/autopkg/python ./jamf-pkg-upload.py --prefs /Users/YOURUSERNAME/Library/Preferences/com.github.autopkg.plist --pkg /path/to/Google_Drive_intel.pkg --replace_pkg --requests
/usr/local/autopkg/python ./jamf-pkg-upload.py --prefs /Users/YOURUSERNAME/Library/Preferences/com.github.autopkg.plist --pkg /path/to/Google_Drive_intel.pkg --replace_pkg --direct
Note that for the last two options, the python requests
module has to be installed, so if you don't already have JSSImporter installed, you'll have to install it using pip
(or pip3
most likely). This command would install it in your AutoPkg environment, but if you're testing this on another machine you might be using a different python. Adjust accordingly:
/Library/AutoPkg/Python3/Python.framework/Versions/3.7/bin/pip3 install requests --user
from jamf-upload.
Thanks for the quick reply @grahampugh. I think I found the issue. As it turns out, the pkg_name
parameter is actually looking for the value of pkg_path
and here I thought it was just a string for the package name on Jamf. Appending .pkg
to the end of the pkg_name
results in a successful upload using autopkg. Thanks!
from jamf-upload.
Related Issues (20)
- JCDS mode: upload working, but policy can't find package HOT 13
- Test mode for JamfPackageCleaner? HOT 2
- Jamf Uploader Feature request: Optionally disable XML escaping for template variable substitution HOT 8
- READMEs missing some input variables HOT 1
- Feature request: Alternative version string input for JamfPatchUploader HOT 1
- Feature Request: Allow Autopkg Processors to extend curl options HOT 7
- Feature Request: add option to JamfPackageCleaner to skip and report if package is in use
- JamfUploaderTeamsNotifier category is empty HOT 1
- ComputerProfileUploader fails with integer key values
- API Client authentication not working HOT 1
- /Volumes is being added to a DP path that is using file://
- JamfRecipeMaker throwing error
- Package metadata creation fails HOT 1
- Feature Request: JamfExtensionAttributeUploader skip_script_key_substitution option HOT 1
- JamfComputerProfileUploader fails when mobileconfigs contain an ampersand HOT 2
- Issues replacing an existing package in JCDS mode if there is a space in the name.
- Auth Token Error with JamfPackageCleaner HOT 1
- Can't seem to upload com.apple.mobiledevice.passwordpolicy config profiles
- Documentation: JCDS2 may required new permission for AutoPkg user... HOT 2
- `aws s3 sync` issues warning for files that are excluded HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jamf-upload.