Code Monkey home page Code Monkey logo

Comments (6)

gregneagle avatar gregneagle commented on June 29, 2024

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.plist

The 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 by

Nothing 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.plist

The 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.

timsutton avatar timsutton commented on June 29, 2024

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.

hjuutilainen avatar hjuutilainen commented on June 29, 2024

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.

timsutton avatar timsutton commented on June 29, 2024

A check with a more useful warning was added in to address this in 0.3.1-0.3.2.

from autopkg.

rustymyers avatar rustymyers commented on June 29, 2024

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.

nmcspadden avatar nmcspadden commented on June 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.