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

Can't uninstall Crashplan #16038

Closed
fuzzy76 opened this issue Dec 22, 2015 · 6 comments
Closed

Can't uninstall Crashplan #16038

fuzzy76 opened this issue Dec 22, 2015 · 6 comments

Comments

@fuzzy76
Copy link
Contributor

fuzzy76 commented Dec 22, 2015

[fuzzy76@nst-hpmba:~] brew cask uninstall --verbose crashplan
==> Running uninstall process for crashplan; your password may be necessary
Password:
==> /opt/homebrew-cask/Caskroom/crashplan/4.4.1/Uninstall.app/Contents/Resources/uninstall.sh: line 89: //Library/Application Support/CrashPlan/install.vars: No such file or directory
Error: Command failed to execute!

==> Failed command:
["/usr/bin/sudo", "-E", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/crashplan/4.4.1/Uninstall.app/Contents/Resources/uninstall.sh>"]

==> Output of failed command:


==> Exit status of failed command:
#<Process::Status: pid 22272 exit 1>
Error: Kernel.exit
[fuzzy76@nst-hpmba:~] brew cask doctor
==> OS X Release:
10.11
==> OS X Release with Patchlevel:
10.11.2
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p645
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
Homebrew 0.9.5 (git revision 239dcd; last commit 2015-12-22)
==> 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.git
==> Homebrew-cask Version:
0.60.0 (git revision 67650; last commit 2 hours ago)
==> Homebrew-cask Install Location:
<NONE>
==> Homebrew-cask Staging Location:
/opt/homebrew-cask/Caskroom
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
2 files (warning: run "brew cask cleanup")
128.55 megs (warning: run "brew cask cleanup")
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:
<NONE>
==> Homebrew-cask Default Tap Cask Count:
2928
==> Contents of $LOAD_PATH:
/usr/local/Library/Taps/caskroom/homebrew-cask/lib
/usr/local/Library/Homebrew
/Library/Ruby/Gems/2.0.0/gems/psych-2.0.6/lib
/Library/Ruby/Gems/2.0.0/extensions/universal-darwin-15/2.0.0/psych-2.0.6
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin15
/Library/Ruby/Site/2.0.0/universal-darwin15
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin15
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15
==> 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/fuzzy76/.rbenv/shims:/Users/fuzzy76/repos/dotfiles/bin:/Users/fuzzy76/bin:/Users/fuzzy76/.composer/vendor/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/Library/Taps/caskroom/homebrew-cask/cmd:/usr/local/Library/ENV/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/bash"
==> Contents of Locale Environment Variables:
LC_CTYPE="UTF-8"
==> Running As Privileged User:
No
@vitorgalvao
Copy link
Member

Please always follow the reporting bugs guide. To do so, edit the top post and then comment after this one so I can check back.

Closing in the meantime, because a number of people never report back and it’s useless to keep the issue open in that case and without all the required information.

@fuzzy76
Copy link
Contributor Author

fuzzy76 commented Dec 22, 2015

Updated post. I am also seeing this exact same problem on a different Mac. If you want the brew cask doctor output from that one as well, let me know.

@vitorgalvao vitorgalvao reopened this Dec 22, 2015
@vitorgalvao
Copy link
Member

I’m guessing the uninstall script may no longer exist. Try file '/opt/homebrew-cask/Caskroom/crashplan/4.4.1/Uninstall.app/Contents/Resources/uninstall.sh' to see if it does.

@adidalal
Copy link
Contributor

Updated CrashPlan to 4.5.0, and the uninstall script is here if you need it.

@vitorgalvao The script is in the same location (Uninstall.app/Contents/Resources/uninstall.sh)

The problem comes because it's looking for $appSupportDir/install.vars -> /Library/Application Support/CrashPlan/install.vars and it doesn't find it, I think.

@adidalal adidalal changed the title Crashplan can't uninstall Can't uninstall Crashplan Dec 22, 2015
@adidalal adidalal added bug Issue describing a reproducible bug. cask labels Dec 22, 2015
@vitorgalvao
Copy link
Member

The problem comes because it's looking for $appSupportDir/install.vars -> /Library/Application Support/CrashPlan/install.vars and it doesn't find it, I think.

@adityadalal924 Looks like you’re right.

Going through the gist you posted and working back from that variable, we eventually get to the problem: they have an hardcoded path.

Added to #12858, which falls under changes for #13201.

@fuzzy76 For now, to fix this, please edit /opt/homebrew-cask/Caskroom/crashplan/4.4.1/Uninstall.app/Contents/Resources/uninstall.sh and change that line to appDir="/opt/homebrew-cask/Caskroom/crashplan/4.4.1/Uninstall.app".

@fuzzy76
Copy link
Contributor Author

fuzzy76 commented Jan 1, 2016

Thanks :)

@miccal miccal removed bug Issue describing a reproducible bug. cask labels 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

No branches or pull requests

4 participants