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

Installation of zooom fails #4802

Closed
alebcay opened this issue Jun 10, 2014 · 9 comments · Fixed by #7915
Closed

Installation of zooom fails #4802

alebcay opened this issue Jun 10, 2014 · 9 comments · Fixed by #7915

Comments

@alebcay
Copy link
Member

alebcay commented Jun 10, 2014

Here is the output of brew cask install --debug zooom:

❯ cask install --debug zooom
==> Initializing Taps
==> Creating directories
==> Installing Cask zooom
==> Loading Cask definitions
==> Translating 'zooom' into a valid Cask source
==> Testing source class Cask::Source::URI
==> Testing source class Cask::Source::PathSlashRequired
==> Testing source class Cask::Source::TappedQualified
==> Testing source class Cask::Source::UntappedQualified
==> Testing source class Cask::Source::Tapped
==> Success! Using source class Cask::Source::Tapped
==> Resolved Cask URI or file source to '/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/zooom.rb'
==> Cask instance dumps in YAML:
==> Cask instance toplevel:
--- !ruby/object:Zooom
title: zooom
==> Cask instance method 'homepage':
--- http://coderage-software.com/zooom
==> Cask instance method 'url':
--- !ruby/object:Cask::URL
cookies:
data:
referer:
revision:
trust_cert:
uri: !ruby/object:URI::HTTP
  fragment:
  host: software.coderage-software.com
  opaque:
  password:
  path: /zooom/Zooom_2.5.0.dmg
  port: 80
  query:
  registry:
  scheme: http
  user:
user_agent:
using:
==> Cask instance method 'appcast':

---
==> Cask instance method 'version':
--- 2.5.0
==> Cask instance method 'sums':

---
- !ruby/object:Checksum
  hash_type: :sha2
  hexdigest: 944d8c6f0869963ea0c0b11491d05eaa4357953072c43519f674fa81216e9e34
==> Cask instance method 'artifacts':

---
:install: !ruby/object:Set
  hash:
    ?
      - Zooom2.pkg
    : true

==> Cask instance method 'caveats':

---
- !ruby/object:Cask::Caveats
  block: !ruby/object:Proc {}

==> Cask instance method 'depends_on_formula':
--- []

==> Cask instance method 'container_type':

---
==> Cask::Installer.install
Error: Cask for zooom is already installed. Use `--force` to install anyways.
/usr/local/Cellar/brew-cask/0.36.0/rubylib/cask/installer.rb:28:in `install'
/usr/local/Cellar/brew-cask/0.36.0/rubylib/cask/cli/install.rb:10:in `run'
/usr/local/Cellar/brew-cask/0.36.0/rubylib/cask/cli/install.rb:6:in `each'
/usr/local/Cellar/brew-cask/0.36.0/rubylib/cask/cli/install.rb:6:in `run'
/usr/local/Cellar/brew-cask/0.36.0/rubylib/cask/cli.rb:57:in `run_command'
/usr/local/Cellar/brew-cask/0.36.0/rubylib/cask/cli.rb:72:in `process'
/usr/local/bin/brew-cask.rb:42
/usr/local/Library/brew.rb:65:in `require'
/usr/local/Library/brew.rb:65:in `require?'
/usr/local/Library/brew.rb:112
caleb@alebcay:~
❯ cask rm zooom
caleb@alebcay:~
❯ cask install --debug zooom
==> Initializing Taps
==> Creating directories
==> Installing Cask zooom
==> Loading Cask definitions
==> Translating 'zooom' into a valid Cask source
==> Testing source class Cask::Source::URI
==> Testing source class Cask::Source::PathSlashRequired
==> Testing source class Cask::Source::TappedQualified
==> Testing source class Cask::Source::UntappedQualified
==> Testing source class Cask::Source::Tapped
==> Success! Using source class Cask::Source::Tapped
==> Resolved Cask URI or file source to '/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/zooom.rb'
==> Cask instance dumps in YAML:
==> Cask instance toplevel:
--- !ruby/object:Zooom
title: zooom
==> Cask instance method 'homepage':
--- http://coderage-software.com/zooom
==> Cask instance method 'url':
--- !ruby/object:Cask::URL
cookies:
data:
referer:
revision:
trust_cert:
uri: !ruby/object:URI::HTTP
  fragment:
  host: software.coderage-software.com
  opaque:
  password:
  path: /zooom/Zooom_2.5.0.dmg
  port: 80
  query:
  registry:
  scheme: http
  user:
user_agent:
using:
==> Cask instance method 'appcast':

---
==> Cask instance method 'version':
--- 2.5.0
==> Cask instance method 'sums':

---
- !ruby/object:Checksum
  hash_type: :sha2
  hexdigest: 944d8c6f0869963ea0c0b11491d05eaa4357953072c43519f674fa81216e9e34
==> Cask instance method 'artifacts':

---
:install: !ruby/object:Set
  hash:
    ?
      - Zooom2.pkg
    : true

==> Cask instance method 'caveats':

---
- !ruby/object:Cask::Caveats
  block: !ruby/object:Proc {}

==> Cask instance method 'depends_on_formula':
--- []

==> Cask instance method 'container_type':

---
==> Cask::Installer.install
==> Printing caveats
==> Caveats
==> Downloading
==> Downloading http://software.coderage-software.com/zooom/Zooom_2.5.0.dmg
Already downloaded: /Library/Caches/Homebrew/zooom-2.5.0.dmg
==> Checksums match
==> Downloaded to -> /Library/Caches/Homebrew/zooom-2.5.0.dmg
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Cask::Container::Air
==> Checking container class Cask::Container::Cab
==> Executing: ["/usr/bin/file", "-Izb", "--", #<Pathname:/Library/Caches/Homebrew/zooom-2.5.0.dmg>]
==> Checking container class Cask::Container::Dmg
==> Executing: ["/usr/bin/hdiutil", "imageinfo", #<Pathname:/Library/Caches/Homebrew/zooom-2.5.0.dmg>]
==> Using container class Cask::Container::Dmg for /Library/Caches/Homebrew/zooom-2.5.0.dmg
==> Executing: ["/usr/bin/hdiutil", "mount", "-plist", "-nobrowse", "-readonly", "-noidme", "-mountrandom", "/tmp", #<Pathname:/Library/Caches/Homebrew/zooom-2.5.0.dmg>]
==> Executing: ["/usr/bin/ditto", "--", "/private/tmp/dmg.gAq6j2", #<Pathname:/opt/homebrew-cask/Caskroom/zooom/2.5.0>]
==> Executing: ["/usr/bin/hdiutil", "eject", #<Pathname:/private/tmp/dmg.gAq6j2>]
==> Installing artifacts
==> Determining which artifacts are present in Cask zooom
==> Checking for artifact class Cask::Artifact::BeforeBlock
==> Checking for artifact class Cask::Artifact::NestedContainer
==> Checking for artifact class Cask::Artifact::App
==> Checking for artifact class Cask::Artifact::Colorpicker
==> Checking for artifact class Cask::Artifact::Pkg
==> Checking for artifact class Cask::Artifact::Prefpane
==> Checking for artifact class Cask::Artifact::Qlplugin
==> Checking for artifact class Cask::Artifact::Font
==> Checking for artifact class Cask::Artifact::Widget
==> Checking for artifact class Cask::Artifact::Service
==> Checking for artifact class Cask::Artifact::CaskroomOnly
==> Checking for artifact class Cask::Artifact::Binary
==> Checking for artifact class Cask::Artifact::InputMethod
==> Checking for artifact class Cask::Artifact::ScreenSaver
==> Checking for artifact class Cask::Artifact::AfterBlock
==> 1 artifact/s defined
Cask::Artifact::Pkg
==> Installing artifact of class Cask::Artifact::Pkg
==> Running installer for zooom; your password may be necessary.
==> Executing: ["/usr/bin/sudo", "-E", "--", "/usr/sbin/installer", "-pkg", #<Pathname:/opt/homebrew-cask/Caskroom/zooom/2.5.0/Zooom2.pkg>, "-target", "/"]
==> installer: Package name is Zooom/2
==> installer: Installing at base path /
==> installer: The install failed (The Installer encountered an error that cause
==> Executing: ["/usr/bin/find", #<Pathname:/opt/homebrew-cask/Caskroom/zooom/2.5.0>, "-type", "f", "!", "-name", ".DS_Store"]
==> Executing: ["/usr/bin/du", "-hs", "--", "/opt/homebrew-cask/Caskroom/zooom/2.5.0"]
🍺  zooom installed to '/opt/homebrew-cask/Caskroom/zooom/2.5.0' (60 files, 2.6M

and here is the output of brew cask doctor:

❯ cask doctor
==> OS X Version:
10.8.4
==> Hardware Architecture:
intel-64
==> Ruby Version:
1.8.7-p358
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew
==> Homebrew-cask Version:
0.36.0
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
/usr/local/Library/Taps/caskroom/homebrew-unofficial
/usr/local/Library/Taps/caskroom/homebrew-versions
==> Homebrew-cask Default Tap Cask Count:
1594
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.36.0/rubylib
/usr/local/Library/Homebrew
/Library/Ruby/Site/1.8
/Library/Ruby/Site/1.8/powerpc-darwin12.0
/Library/Ruby/Site/1.8/universal-darwin12.0
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby/1.8/universal-darwin12.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin12.0
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0
.
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="/Users/caleb/.rvm/gems/ruby-2.1.0@global/bin:/Users/caleb/.rvm/rubies/ruby-2.1.0/bin:/usr/local/sbin:/usr/local/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/caleb/.rvm/bin:/usr/local/Library/Contributions/cmd"
==> Contents of $SHELL Environment Variable:
SHELL="/usr/local/bin/bash"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
==> Running As Privileged User:
No

I verified the issue as the bundle IDs in the system were not found in my package receipts.

@rolandwalker
Copy link
Contributor

Once again here, the error message from installer was somewhat truncated.

@alebcay
Copy link
Member Author

alebcay commented Jun 10, 2014

Such helpful errors coming from pkginstaller...

caleb@alebcay:/opt/homebrew-cask/Caskroom/zooom/2.5.0
❯ ls
Desktop DB  Desktop DF  Zooom2.pkg/
caleb@alebcay:/opt/homebrew-cask/Caskroom/zooom/2.5.0
❯ /usr/sbin/installer -pkg ./Zooom2.pkg -target /
installer: Must be run as root to install this package.
caleb@alebcay:/opt/homebrew-cask/Caskroom/zooom/2.5.0
❯ sudo /usr/sbin/installer -pkg ./Zooom2.pkg -target /
Password:
installer: Package name is Zooom/2
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

@rolandwalker
Copy link
Contributor

I forgot, installer also has a -verbose and -dumplog flags.

@alebcay
Copy link
Member Author

alebcay commented Jun 10, 2014

❯ sudo /usr/sbin/installer -verbose -pkg ./Zooom2.pkg -target /
installer: Package name is Zooom/2
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing Zooom/2….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

@rolandwalker
Copy link
Contributor

Same symptoms here. By using -dumplog I was able to see that the problem occurs when running the preflight/postflight scripts within the pkg, but I didn't dig any deeper.

So, the upstream binary is broken. What should we do in this situation? Perhaps we could change it to caskroom_only and print out a caveat. It seems shortsighted to delete the Cask outright. It's also possible that it is working on OS versions earlier than Mavericks. By leaving the Cask up in some form, there's a chance that someone else will add that knowledge.

@alebcay
Copy link
Member Author

alebcay commented Jun 11, 2014

It's also possible that it is working on OS versions earlier than Mavericks.

Make that "versions earlier than Mountain Lion", since that's what I'm on.

@vitorgalvao
Copy link
Member

Are you still on Mountain Lion, @alebcay? There’s a 2.5.1 download for it, so maybe that works.

Using the latest version (stable for Mavericks and beta for Yosemite) on Yosemite fails for me as well. However, installing it manually does work, so we could add a caveat to the effect of “If installation fails, please run the installer manually”.

@alebcay
Copy link
Member Author

alebcay commented Nov 17, 2014

I haven't checked 2.5.1 yet, @vitorgalvao, so I'll try to get around to trying it in the next few days. Is there a particular reason you closed #7357?

@vitorgalvao
Copy link
Member

Closed it by mistake (deleted the branch erroneously). Thank you for noticing, fixed it.

@miccal miccal removed the upstream Issue which needs to be resolved by the upstream project. label Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants