Giter VIP home page Giter VIP logo

Comments (29)

defunkt avatar defunkt commented on May 30, 2024

Can you check the Console.app program? Errors and whatnot should show up in there.

Did you install using rake install?

from dotjs.

macgyver avatar macgyver commented on May 30, 2024

Yep, I used rake install to install it, there's some stuff related to chrome in Console.app but I'm not sure it's relevant:
console output

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

Can you paste the output of this command:

launchctl list | grep github

from dotjs.

macgyver avatar macgyver commented on May 30, 2024

nothin:

[jon@local:~] $ launchctl list | grep github
[jon@local:~] $ 

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

D'oh.

How about this: ls -l /usr/local/bin/djsd

Also: rake install:daemon && rake install:agent then try launchctl list | grep github again.

from dotjs.

macgyver avatar macgyver commented on May 30, 2024

hot damn!

Not sure what it all means but that stuff did the trick, also great respect for properly apostrophizing "d'oh".

from dotjs.

littke avatar littke commented on May 30, 2024

I have the exact same problem. Running the commands with install:daemon and install:agent didn't help.

I'm installing using sudo. I also get this issue even though I uninstalled and reinstalled using sudo: #11

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

Can you please paste the output of launchctl list | grep github and ls -l /usr/local/bin/djsd

from dotjs.

littke avatar littke commented on May 30, 2024

[email protected]:$ launchctl list | grep github
[email protected]:
$ ls -l /usr/local/bin/djsd
-rwxr-xr-x 1 littke staff 918 Apr 12 10:22 /usr/local/bin/djsd

from dotjs.

aehlke avatar aehlke commented on May 30, 2024

+1'ing littke's experience.

ae% sudo rake install:daemon && sudo rake install:agent
(in /Users/jehlke/workspace/sandbox/dotjs)
cp -p bin/djsd /usr/local/bin
(in /Users/jehlke/workspace/sandbox/dotjs)
cp com.github.dotjs.plist /Users/jehlke/Library/LaunchAgents/com.github.dotjs.plist
chmod 644 /Users/jehlke/Library/LaunchAgents/com.github.dotjs.plist
starting djdb...
launchctl load -w /Users/jehlke/Library/LaunchAgents/com.github.dotjs.plist
com.github.dotjs: Already loaded
ae% launchctl list | grep github                       
ae% ls -l /usr/local/bin/djsd                          
-rwxr-xr-x 1 jehlke 918 May  2 13:51 /usr/local/bin/djsd*

When I first tried installing, I forgot to use sudo, so it failed. Maybe it didn't fail cleanly?

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

Can you check Console.app for any errors?

Also try running this manually and let us know the output: /usr/local/bin/djsd

from dotjs.

arvindsv avatar arvindsv commented on May 30, 2024

I've just submitted a pull request to fix this issue (#24). The issue seems to be that the HOME environment variable is not available (possibly because the daemon is launched using sudo). You can see if this is the problem in your case by visiting (for example, if you have ~/.js/github.com.js): http://localhost:3131/github.com.js

Also, in this case

launchctl list | grep github
does not show anything. You need to do a
sudo launchctl list | grep github

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

Looks like @arvindsv nailed it. I don't install with sudo so I don't have this problem:

$ launchctl list | grep github
185 -   com.github.dotjs

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

@aehlke @littke Please try again using the latest. If it works, thank @arvindsv!

from dotjs.

honza avatar honza commented on May 30, 2024
$ launchctl list | grep github
12228   -   com.github.dotjs

Webkit inspector shows the call to http://localhost:3131/github.com.js but returns a 204 - no content. I tried all of above with no luck. I installed dotjs manually and without sudo.

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

204 means the server is running but no file was found: http://github.com/defunkt/dotjs/blob/master/bin/djsd#L25

You have ~/.js/github.com.js?

from dotjs.

honza avatar honza commented on May 30, 2024

You have ~/.js/github.com.js?

Yes.

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

Shady!

Does cat ~/Library/LaunchAgents/com.github.dotjs.plist have the expected value for WorkingDirectory?

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

Expected value being <string>/Users/chris/.js</string> where chris is your username.

from dotjs.

honza avatar honza commented on May 30, 2024

Yes, it does. I appreciate your help.

from dotjs.

arnav avatar arnav commented on May 30, 2024

I had the same problem. I uninstalled dotjs and installed it again (both using sudo), and it worked... strange.

from dotjs.

honza avatar honza commented on May 30, 2024

Reinstalling solved the problem. Weird. Thanks for the help guys.

from dotjs.

defunkt avatar defunkt commented on May 30, 2024

My guess is dotjs didn't cleanly shut down and used the wrong working directory, but I'm not 100% sure.

Thanks for updating us!

from dotjs.

cobracmder avatar cobracmder commented on May 30, 2024

@defunkt, I had the same problem as @honza and @arnav. What it is is that djsd is running using /.js and /.js is not created at the time of installation. To remedy this, I created ~/.js and launchctl stop com.github.dotjs and poof all is well.

I suggest creating the ~/.js dir during installation prior to loading the dotjs.plist

Check pull request #34

from dotjs.

geetarista avatar geetarista commented on May 30, 2024

Having the same issue. Tried installing/reinstalling several times. It seems to work for a little bit after installing, but then can't find the server even though I see /usr/local/bin/djsd running. Using Lion and Chrome 13.0.782.107 beta.

from dotjs.

brycethornton avatar brycethornton commented on May 30, 2024

I fixed this via the suggestion @cobracmder posted. Just restarted the service using launchctl and it started working.

from dotjs.

bionicpill avatar bionicpill commented on May 30, 2024

I had a similar issue and dotjs was running fine. The problem was that Chrome had lost the SSL cert so I just had to visit https://localhost:3131 and revalidate it again.

from dotjs.

trey avatar trey commented on May 30, 2024

@cobracmder's solution (launchctl stop com.github.dotjs) worked for me. ๐Ÿ‘

from dotjs.

etozzato avatar etozzato commented on May 30, 2024

๐Ÿ‘ @bionicpill that solved the isse! :)

from dotjs.

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.