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

logmein-hamachi: System extension cannot be viewed #25335

Closed
wadewilliams opened this issue Oct 9, 2016 · 2 comments
Closed

logmein-hamachi: System extension cannot be viewed #25335

wadewilliams opened this issue Oct 9, 2016 · 2 comments

Comments

@wadewilliams
Copy link

Thanks for your time. Trying to be helpful here & I'm happy to contribute fixes.

Description of issue

  • Attempting to install logmein-hamachi on OSX 10.11.6
  • Everything appears to to go well until I get this error:
    screenshot_10_8_16__11_48_pm
  • I noticed this output during the brew cask install logmein-hamachi:
==> Can't open CFBundle for /Library/Extensions/ham.kext.
==> Can't create /Library/Extensions/ham.kext.
==> + kextunload /Library/Extensions/ham.kext
==> Can't open CFBundle for /Library/Extensions/ham.kext.
==> Can't create /Library/Extensions/ham.kext.
  • I can open hamachi but it crashes after interacting with the application.
  • I have been using hamachi on my system, and re-installed it via cask today while trying to learn more about the homebrew/caskroom ecosystem - I probably broke something, somehow :)
  • I understand the output of my brew doctor - I was planning to hack on homebrew for the next month or so before updating to macos/xcode8, hoping that the brew doctor output is not critical ATM.

Output of brew cask install logmein-hamachi

==> Downloading https://secure.logmein.com/LogMeInHamachi.zip
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.6-53-gf71e4a7 (Macintosh; Intel macOS 10.11.6) curl/7.43.0 https://secure.logmein.com/LogMeInHamachi.zip -C 0 -o /Users/wwilliams/Library/Caches/Homebrew/Cask/logmein-hamachi--latest.zip.incomplete --silent
==> No checksum defined for Cask logmein-hamachi, skipping verification
==> Running installer script LogMeInHamachiInstaller.app/Contents/MacOS/Lili
==> 2016-10-08 23:51:53.488 Lili[5101:49283] MessageMap.load: /usr/local/Caskroom/logmein-hamachi/latest/LogMeInHamachiInstaller.app/Contents/Resources/messages.bin
==> + echo 'Starting preflight'
==> + echo 'Stopping user MenuBars'
==> ++ sw_vers -productVersion
==> + pv=10.11.6
==> + echo 'Stopping root MenuBar (if exists)'
==> + launchctl unload /Library/LaunchAgents/com.logmein.hamachimb.plist
==> /Library/LaunchAgents/com.logmein.hamachimb.plist: No such file or directory
==> + SaveIFS='     
==> '
==> + IFS='\n'
==> ++ ps axo 'user pid command'
==> ++ grep -v grep
==> ++ grep loginwindow
==> ++ tr -s ' '
==> ++ cut -f 1-2 '-d '
==> + for uisession in '`ps axo "user pid command" | grep -v grep | grep loginwindow | tr -s '\'' '\'' | cut -f 1-2 -d'\'' '\''`'
==> ++ echo 'wwilliams 97'
==> ++ cut -f 1 '-d '
==> + uiusername=wwilliams
==> ++ echo 'wwilliams 97'
==> ++ cut -f 2 '-d '
==> + uipid=97
==> + '[' xroot '!=' xwwilliams ']'
==> + launchctl bsexec 97 sudo -u wwilliams launchctl unload /Library/LaunchAgents/com.logmein.hamachimb.plist
==> task_for_pid(): 0x5
==> + sudo -u wwilliams launchctl unload /Library/LaunchAgents/com.logmein.hamachimb.plist
==> /Library/LaunchAgents/com.logmein.hamachimb.plist: No such file or directory
==> + IFS='     
==> '
==> + sleep 2
==> + echo 'Stopping Engine'
==> + launchctl unload /Library/LaunchDaemons/com.logmein.hamachi.plist
==> /Library/LaunchDaemons/com.logmein.hamachi.plist: No such file or directory
==> + '/Applications/LogMeIn Hamachi/LogMeIn Hamachi.app/Contents/Resources/hamachidaemonctl' stop
==> /usr/local/Caskroom/logmein-hamachi/latest/LogMeInHamachiInstaller.app/Contents/Resources/preflight.sh: line 30: /Applications/LogMeIn Hamachi/LogMeIn Hamachi.app/Contents/Resources/hamachidaemonctl: No such file or directory
==> + echo 'Stopping user Hamachi apps'
==> + case $pv in
==> ++ ps axo 'user pid command'
==> ++ grep loginwindow
==> ++ cut -s '-d ' -f 1
==> + for uiusername in '`ps axo "user pid command" | grep loginwindow | cut -s -d'\'' '\'' -f 1`'
==> + echo wwilliams
==> + sudo -u wwilliams killall 'LogMeIn Hamachi.app'
==> No matching processes belonging to you were found
==> + for uiusername in '`ps axo "user pid command" | grep loginwindow | cut -s -d'\'' '\'' -f 1`'
==> + echo root
==> + sudo -u root killall 'LogMeIn Hamachi.app'
==> No matching processes were found
==> + echo 'Stopping root Hamachi apps (if exists)'
==> + killall 'LogMeIn Hamachi'
==> No matching processes were found
==> + echo 'Unloading kext'
==> + kextunload /Library/Extensions/ham.kext
==> Can't open CFBundle for /Library/Extensions/ham.kext.
==> Can't create /Library/Extensions/ham.kext.
==> + kextunload /Library/Extensions/ham.kext
==> Can't open CFBundle for /Library/Extensions/ham.kext.
==> Can't create /Library/Extensions/ham.kext.
==> + echo 'End preflight'
==> + exit 0
==> No matching processes were found
==> ln: /usr/bin/hamachi: Operation not permitted
==> /usr/local/Caskroom/logmein-hamachi/latest/LogMeInHamachiInstaller.app/Contents/Resources/postflight.sh: line 22: /usr/sbin/bin/chown: No such file or directory
==> /usr/local/Caskroom/logmein-hamachi/latest/LogMeInHamachiInstaller.app/Contents/Resources/postflight.sh: line 23: /usr/sbin/bin/chown: No such file or directory
==> mv: rename /Library/Extensions/hamns.kext to /System/Library/Extensions/hamns.kext: Directory not empty
==> /usr/local/Caskroom/logmein-hamachi/latest/LogMeInHamachiInstaller.app/Contents/Resources/postflight.sh: line 27: /usr/sbin/bin/chown: No such file or directory
==> /usr/local/Caskroom/logmein-hamachi/latest/LogMeInHamachiInstaller.app/Contents/Resources/postflight.sh: line 28: /usr/sbin/bin/chown: No such file or directory
==> cat: /tmp/hamachi_deploy_id: No such file or directory
==> rm: /tmp/hamachi_deploy_id: No such file or directory
==> rm: /tmp/hamachi_deploy_id.bak: No such file or directory
==> task_for_pid(): 0x5
==> /Library/LaunchAgents/com.logmein.hamachimb.plist: Path had bad ownership/permissions
🍺  logmein-hamachi was successfully installed!

Output of brew doctor

Warning: The filesystem on / appears to be case-sensitive.
The default macOS filesystem is case-insensitive. Please report any apparent problems.

Warning: Your Xcode (7.3.1) is outdated.
Please update to Xcode 8.0 (or delete it).
Xcode can be updated from the App Store.

Output of brew cask doctor

==> macOS Release:
10.11.6
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p648
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
Homebrew 1.0.6-53-gf71e4a7
Homebrew/homebrew-core (git revision d91e; last commit 2016-10-08)
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local/Homebrew
==> Homebrew Origin:
https://github.com/Homebrew/brew
==> Homebrew-Cask Version:
Homebrew-Cask 1.0.6-53-gf71e4a7
caskroom/homebrew-cask (git revision a5af4; last commit 2016-10-09)
==> Homebrew-Cask Install Location:
<NONE>
==> Homebrew-Cask Staging Location:
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads:
/Users/wwilliams/Library/Caches/Homebrew/Cask
1 files, 5.3M (warning: run "brew cask cleanup")
==> Homebrew-Cask Default Tap Path:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask
==> Homebrew-Cask Alternate Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-fonts
==> Homebrew-Cask Default Tap Cask Count:
3374
==> Contents of $LOAD_PATH:
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/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="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/cmd:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/cmd:/usr/local/Homebrew/Library/Homebrew/cask/cmd:/usr/local/Homebrew/Library/Homebrew/shims/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/bash"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
==> Running As Privileged User:
No
@adidalal
Copy link
Contributor

adidalal commented Oct 9, 2016

Thanks for the complete bug report.

Looks like it's a confirmed bug: #24786

Closing as duplicate, but the original bug report issue will stay open.

@adidalal adidalal closed this as completed Oct 9, 2016
@PeterCbkk
Copy link

I'm getting the same issue as well. I've been having this problem for at least the 3 day after i updated to sierra. I tried updating to sierra again i reinstalled hamachi it worked for a while until i restarted my computer, There was a new update that i couldn't install because of some error, I used hamachi in the past many times before with no errors or bugs until sierra.

@lock lock bot locked as resolved 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

3 participants