Open rstacruz opened 10 years ago
Adding some more debugging info.
netstats show nothing:
$ netstat -an | egrep "(31000|13375)"
# no results
Plist seems to be in place.
$ ls /Library/LaunchDaemons/katon.firewall.plist
katon start
as a regular user doesn't work.
$ katon start
Starting katon daemon
Could not open job overrides database at: /private/var/db/launchd.db/com.apple.launchd/overrides.plist: 13: Permission denied
launch_msg(): Socket is not connected
Done
sometimes it says this:
$ katon start
Starting katon daemon
Error: EACCES, permission denied '/Users/rsc/Library/LaunchAgents/katon.plist'
at Object.fs.openSync (fs.js:438:18)
at Object.fs.writeFileSync (fs.js:977:15)
at module.exports (/usr/local/lib/node_modules/katon/src/cli/utils/render.js:14:6)
Okay, I got this. I got 2 problems:
/private/var/db/launchd.db/com.apple.launchd/overrides.plist
was not accessible for my user. I remedied this by temporarily doing chmod a+rw
on the file.launchctl load
doesn't work in Tmux. This makes katon start
fail when invoked inside Tmux. (http://apple.stackexchange.com/questions/41412/using-tmux-and-pbpaste-pbcopy-and-launchctl)I recommend adding a check for start
and status
commands to look at process.env.TMUX
. If the variable exists, exit and let the user know that katon should be invoked outside a tmux session.
The workaround is to use reattach-to-user-namespace
to run katon: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
That is:
$ reattach-to-user-namespace katon start
$ sudo reattach-to-user-namespace katon install
I installed it:
Typing
katon status
says that it's not installed: (trying this twice produces the same resultI tried installing it again:
Any tips on how to debug this? Katon 0.6.5, Node 0.10.32, OSX 10.9.5.