Comments (6)
Typically external disks are mounted with owners OFF, so any operation that affects owner, group, or mode is likely to give unexpected results.
Sent from my iPhone
On Sep 26, 2013, at 11:36 PM, Hannes Juutilainen [email protected] wrote:
Now this might just be some oversight on my part but I can't get the FlashPlayerRepackage recipes to work if my CACHE_DIR points to a folder on an external disk.
I've set the CACHE_DIR in autopkg preferences to "/Volumes/external-disk/temp/autopkg-cache" and if I run the recipe with the defaults, I get:
$ autopkg run -v AdobeFlashPlayerRepackage.pkg.recipe
Processing AdobeFlashPlayerRepackage.pkg.recipe...
AdobeFlashURLProvider
AdobeFlashURLProvider: Found URL http://fpdownload.macromedia.com/get/flashplayer/pdc/11.8.800.168/install_flash_player_osx.dmg
URLDownloader
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Volumes/external-disk/temp/autopkg-cache/com.github.autopkg.pkg.FlashPlayerRepackage/downloads/AdobeFlashPlayer.dmg
EndOfCheckPhase
AdobeFlashDmgUnpacker
AdobeFlashDmgUnpacker: Mounted disk image /Volumes/external-disk/temp/autopkg-cache/com.github.autopkg.pkg.FlashPlayerRepackage/downloads/AdobeFlashPlayer.dmg
PkgCreator
PkgCreator: Connecting
PkgCreator: Sending packaging request
PkgCreator: Disconnecting
/Volumes/external-disk/temp/autopkg-cache/com.github.autopkg.pkg.FlashPlayerRepackage/FlashPlayerPkg isn't owned by
Failed.
Receipt written to /Volumes/external-disk/temp/autopkg-cache/com.github.autopkg.pkg.FlashPlayerRepackage/receipts/AdobeFlashPlayerRepackage.pkg-receipt-20130927-092147.plistThe following recipes failed:
AdobeFlashPlayerRepackage.pkg.recipe
Error in com.github.autopkg.pkg.FlashPlayerRepackage: Processor: PkgCreator: Error: /Volumes/external-disk/temp/autopkg-cache/com.github.autopkg.pkg.FlashPlayerRepackage/FlashPlayerPkg isn't owned byNothing downloaded, packaged or imported.
The directory in question is owned by me. However, if I override the CACHE_DIR setting and set it to default, everything works perfectly:$ autopkg run -v -k CACHE_DIR=~/Library/AutoPkg/Cache AdobeFlashPlayerRepackage.pkg.recipe
Processing AdobeFlashPlayerRepackage.pkg.recipe...
AdobeFlashURLProvider
AdobeFlashURLProvider: Found URL http://fpdownload.macromedia.com/get/flashplayer/pdc/11.8.800.168/install_flash_player_osx.dmg
URLDownloader
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users//Library/AutoPkg/Cache/com.github.autopkg.pkg.FlashPlayerRepackage/downloads/AdobeFlashPlayer.dmg
EndOfCheckPhase
AdobeFlashDmgUnpacker
AdobeFlashDmgUnpacker: Mounted disk image /Users//Library/AutoPkg/Cache/com.github.autopkg.pkg.FlashPlayerRepackage/downloads/AdobeFlashPlayer.dmg
PkgCreator
PkgCreator: Connecting
PkgCreator: Sending packaging request
PkgCreator: Disconnecting
Receipt written to /Users//Library/AutoPkg/Cache/com.github.autopkg.pkg.FlashPlayerRepackage/receipts/AdobeFlashPlayerRepackage.pkg-receipt-20130927-092552.plistThe following packages were built:
Identifier Version Pkg path
---------- ------- --------
com.adobe.pkg.FlashPlayer 11.8.800.168 /Users//Library/AutoPkg/Cache/com.github.autopkg.pkg.FlashPlayerRepackage/AdobeFlashPlayer-11.8.800.168.pkg
Let me know if I'm doing something stupid here... :)Hannes
—
Reply to this email directly or view it on GitHub.
from autopkg.
Thanks for catching this. I was bitten by this a while ago and didn't correlate that I'd also had an external volume as a CACHE_DIR.
We should detect this and give a warning. Once you know the volume on which the path resides, it's possible to find out whether permissions are enabled for a volume using: diskutil info -plist /path/to/volume
and checking the GlobalPermissionsEnabled
key. If that's true, then ownerships are not being ignored and PkgCreator steps should run fine.
from autopkg.
I had owners enabled on that drive but had done it with "sudo diskutil enableOwnership ...". Apparently I needed a reboot and a trashing of the cache directory in question. Weird stuff but solved for now.
from autopkg.
A check with a more useful warning was added in to address this in 0.3.1-0.3.2.
from autopkg.
I'm running into this issue again with an external drive and the PkgCreator processor. Running the Texmaker.pkg.recipe with the CACHE_DIR pointed to /Volumes/USB/AutoPkg/Cache, I get the error that the ditto "Operation not permitted". I've ensured the drive has Ignore Ownership disabled and deleted the cache dir before restarting. After a restart the error still occurs. The recipe works when the CACHE_DIR is pointed to the internal drive.
from autopkg.
@rustymyers can you please file a new issue with a repro case, including all the output requested in the github issue template?
from autopkg.
Related Issues (20)
- FR: Add python boto3 module for use with Jamf Pro HOT 1
- Archive vmule-recipes repository HOT 3
- Autopkg takes up to 70 min. to process recipe, no diagnostic output provided for majority of processing time HOT 8
- Error incorrect when "Ignore ownership on this volume" set on an APFS Volume
- Recipe Map doesn't locate items in `~/Library/AutoPkg/Recipes` HOT 2
- Feature Request: In versions 3.0+, make search for recipes case-insensitive again (or selectable by user?) HOT 4
- SparkleUpdateInfoProvider crashes with "AttributeError: 'str' object has no attribute 'decode'" HOT 9
- Fork jc0b-recipes HOT 5
- audit verb with plist output includes standard output
- Expose on-disk GitHub token as a variable for use in processors
- Add members to recipe repo team HOT 1
- Re-implement recipe chain trust verification
- Generating the Recipe Map for the first time is very slow
- GitHubReleasesInfoProvider additional functionality - raise a warning if a repo has been archived or disabled. HOT 2
- Add repo pandemicus-recipes HOT 1
- FR: Mark certain fields as non-logging/debug only. HOT 4
- Offering a new recipe list HOT 4
- Repo add bryanheinz-recipes HOT 2
- Add repo ccaviness-recipes HOT 3
- Trouble adding new recipes 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 autopkg.