Coder Social home page Coder Social logo

Comments (3)

rstacruz avatar rstacruz commented on May 26, 2024

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)

from katon.

rstacruz avatar rstacruz commented on May 26, 2024

Okay, I got this. I got 2 problems:

  1. /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.
  2. 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.

from katon.

rstacruz avatar rstacruz commented on May 26, 2024

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

from katon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.