ArgumentError: parent directory is world writable but not sticky


(Kenny Bambridge) #1

Does anyone else have issues install atlassian-cli?
brew install atlassian-cli -v

if I run ls -al /private/tmp:

rwxrwxrwt  11 root   wheel   352 Sep 22 09:01 .

So the sticky bit is set. brew doctor is clear as well. Any idea what could be going wrong?

this is my command output:

usr/bin/sandbox-exec -f /private/tmp/homebrew20180922-61726-1j6rovt.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ruby-macho-2.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/plist-3.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/backports-3.11.4/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/activesupport-5.2.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/tzinfo-1.2.5/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/thread_safe-0.3.6/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/minitest-5.11.3/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/i18n-1.1.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/atlassian-cli.rb --verbose
==> Downloading https://bobswift.atlassian.net/wiki/download/attachments/16285777/atlassian-cli-8.0.0-distribution.zip
==> Downloading from https://api.media.atlassian.com/file/382b5b89-4988-4c1d-89f2-fa7a9746e89a/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxYzZjOWRlMy05NDAyLTQwZjItYTM1YS0zYmM3MzVjOGQzNWMiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxlOjM4MmI1Yjg5LTQ5ODgtNGMxZC04OWYyLWZhN2E5NzQ2ZTg5YSI6WyJyZWFkIl19LCJleHAiOjE1Mzc2MjQwODAsIm5iZiI6MTUzNzYyMTAyMH0.mqw9ANzD-OO_TQsyIqkilZ0gX97WfsLSwInMgvAE7Rs&client=1c6c9de3-9402-40f2-a35a-3bc735c8d35c&name=atlassian-cli-8.0.0-distribution.zip
/usr/bin/curl -q --show-error --user-agent Homebrew/1.7.6\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.13.6\)\ curl/7.54.0 --fail --location --remote-time --continue-at 0 --output /Users/kenny/Library/Caches/Homebrew/downloads/ea225576eb32454b139b5a7da4e231c2cab091600774448c21cadb46a1a02066--name=atlassian-cli-8.0.0-distribution.zip.incomplete https://api.media.atlassian.com/file/382b5b89-4988-4c1d-89f2-fa7a9746e89a/binary\?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxYzZjOWRlMy05NDAyLTQwZjItYTM1YS0zYmM3MzVjOGQzNWMiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxlOjM4MmI1Yjg5LTQ5ODgtNGMxZC04OWYyLWZhN2E5NzQ2ZTg5YSI6WyJyZWFkIl19LCJleHAiOjE1Mzc2MjQwODAsIm5iZiI6MTUzNzYyMTAyMH0.mqw9ANzD-OO_TQsyIqkilZ0gX97WfsLSwInMgvAE7Rs\&client=1c6c9de3-9402-40f2-a35a-3bc735c8d35c\&name=atlassian-cli-8.0.0-distribution.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5886k  100 5886k    0     0   426k      0  0:00:13  0:00:13 --:--:--  732k
==> Verifying ea225576eb32454b139b5a7da4e231c2cab091600774448c21cadb46a1a02066--name=atlassian-cli-8.0.0-distribution.zip checksum
unzip /Users/kenny/Library/Caches/Homebrew/downloads/ea225576eb32454b139b5a7da4e231c2cab091600774448c21cadb46a1a02066--name=atlassian-cli-8.0.0-distribution.zip -d /private/tmp/d20180922-61728-rwuw1g
cp -pR /private/tmp/d20180922-61728-rwuw1g/atlassian-cli-8.0.0/. /private/tmp/atlassian-cli-20180922-61728-1bpvx8a/atlassian-cli-8.0.0
Error: An exception occured within a child process:
  ArgumentError: parent directory is world writable but not sticky

Parent directory is world writable but not sticky
(Julien Nicouleaud) #2

Hi, same issue here. The sticky bit is set on /private/tmp, and brew doctor is clear.
I have this issue for atlassian-cli as well, but haven’t encountered it with other packages.


(Steve Moss) #3

I’m having the same issue, but with the ruby-build package:

$ brew upgrade -vvv
Updating Homebrew...
==> Upgrading 1 outdated package, with result:
ruby-build 20180618 -> 20180822
==> Upgrading ruby-build
rm /home/linuxbrew/.linuxbrew/bin/rbenv-install
rm /home/linuxbrew/.linuxbrew/bin/rbenv-uninstall
rm /home/linuxbrew/.linuxbrew/bin/ruby-build
rm /home/linuxbrew/.linuxbrew/share/ruby-build
==> Downloading https://github.com/rbenv/ruby-build/archive/v20180822.tar.gz
Already downloaded: /home/steve/.cache/Homebrew/downloads/ebc9b050967b7d8c5ecbd8b059624f88abb8a6441f51b34533e4e5750853b86b--ruby-build-20180822.tar.gz
==> Verifying ebc9b050967b7d8c5ecbd8b059624f88abb8a6441f51b34533e4e5750853b86b--ruby-build-20180822.tar.gz checksum
tar xf /home/steve/.cache/Homebrew/downloads/ebc9b050967b7d8c5ecbd8b059624f88abb8a6441f51b34533e4e5750853b86b--ruby-build-20180822.tar.gz -C /tmp/d20181004-14301-199wfzz
cp -pR /tmp/d20181004-14301-199wfzz/ruby-build-20180822/. /tmp/ruby-build-20181004-14301-p4xw0i/ruby-build-20180822
==> ./install.sh
ln -s ../Cellar/ruby-build/20180618/bin/rbenv-install rbenv-install
ln -s ../Cellar/ruby-build/20180618/bin/rbenv-uninstall rbenv-uninstall
ln -s ../Cellar/ruby-build/20180618/bin/ruby-build ruby-build
ln -s ../Cellar/ruby-build/20180618/share/ruby-build ruby-build
Error: An exception occured within a child process:
  ArgumentError: parent directory is world writable but not sticky

brew doctor is clean:

$ brew doctor
Your system is ready to brew.

and /tmp has the sticky bit set:

$ ls -ld /tmp
drwxrwxrwt 1 root root 512 Oct  4 10:56 /tmp

(Chukka) #4

Hi @kbambridge @juliennicouleaud

I’m facing same issue .Did we find any fix or workaround on this

My logs here :
cp -pR /private/tmp/d20181114-23401-e6588c/atlassian-cli-8.0.0/. /private/tmp/atlassian-cli-20181114-23401-wgbzj1/atlassian-cli-8.0.0

/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise’

ArgumentError: parent directory is world writable but not sticky

  1. raise

  2. ignore

  3. backtrace

  4. irb

  5. shell

Choose an action: