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

issue about passing neo4j location on command-line #80

Closed
ekremkaraca opened this issue Feb 1, 2013 · 4 comments
Closed

issue about passing neo4j location on command-line #80

ekremkaraca opened this issue Feb 1, 2013 · 4 comments

Comments

@ekremkaraca
Copy link

I have neo4j -version 1.8.1- installed on Ubuntu 12.10 from official deb repository. I wanted to give a try neography, first I passed "rake neo4j:install" because it's already installed but next I couldn't run "rake neo4j:start" beacuse it couldn't find location of neo4j. I couldn't find the command that I could pass location of it like:
"rake neo4j:install --dir=/path/to/neo4j"

@henry74
Copy link

henry74 commented Feb 2, 2013

If you installed neo4j through the deb repository, it should already be running as a service. Try typing:

ps aux|grep neo4j

If you do not see anything, try typing:

sudo service neo4j-service start

@ekremkaraca
Copy link
Author

Here are outputs of command Henry described -Thanks him for his directions-:

~$: ps aux|grep neo4j
neo4j     3306 16.8  5.2 802920 102128 ?       Sl   09:38   0:06 /usr/bin/java -cp /var/lib/neo4j/lib/geronimo-jta_1.1_spec-1.1.1.jar:/var/lib/neo4j/lib/lucene-core-3.5.0.jar:/var/lib/neo4j/lib/neo4j-cypher-1.8.1.jar:/var/lib/neo4j/lib/neo4j-graph-algo-1.8.1.jar:/var/lib/neo4j/lib/neo4j-graph-matching-1.8.1.jar:/var/lib/neo4j/lib/neo4j-jmx-1.8.1.jar:/var/lib/neo4j/lib/neo4j-kernel-1.8.1.jar:/var/lib/neo4j/lib/neo4j-lucene-index-1.8.1.jar:/var/lib/neo4j/lib/neo4j-shell-1.8.1.jar:/var/lib/neo4j/lib/neo4j-udc-1.8.1.jar:/var/lib/neo4j/lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar:/var/lib/neo4j/lib/scala-library-2.9.1-1.jar:/var/lib/neo4j/lib/server-api-1.8.1.jar:/var/lib/neo4j/system/lib/antlr-2.7.7.jar:/var/lib/neo4j/system/lib/asm-3.1.jar:/var/lib/neo4j/system/lib/asm-analysis-3.2.jar:/var/lib/neo4j/system/lib/asm-commons-3.2.jar:/var/lib/neo4j/system/lib/asm-tree-3.2.jar:/var/lib/neo4j/system/lib/asm-util-3.2.jar:/var/lib/neo4j/system/lib/bcprov-jdk16-140.jar:/var/lib/neo4j/system/lib/blueprints-core-1.2.jar:/var/lib/neo4j/system/lib/blueprints-neo4j-graph-1.2.jar:/var/lib/neo4j/system/lib/commons-beanutils-1.8.0.jar:/var/lib/neo4j/system/lib/commons-beanutils-core-1.8.0.jar:/var/lib/neo4j/system/lib/commons-collections-3.2.1.jar:/var/lib/neo4j/system/lib/commons-configuration-1.6.jar:/var/lib/neo4j/system/lib/commons-digester-1.8.1.jar:/var/lib/neo4j/system/lib/commons-io-1.4.jar:/var/lib/neo4j/system/lib/commons-lang-2.4.jar:/var/lib/neo4j/system/lib/commons-logging-1.1.1.jar:/var/lib/neo4j/system/lib/concurrentlinkedhashmap-lru-1.3.1.jar:/var/lib/neo4j/system/lib/gremlin-groovy-1.5.jar:/var/lib/neo4j/system/lib/gremlin-java-1.5.jar:/var/lib/neo4j/system/lib/groovy-1.8.5.jar:/var/lib/neo4j/system/lib/jackson-core-asl-1.9.7.jar:/var/lib/neo4j/system/lib/jackson-jaxrs-1.9.7.jar:/var/lib/neo4j/system/lib/jackson-mapper-asl-1.9.7.jar:/var/lib/neo4j/system/lib/janino-2.5.10.jar:/var/lib/neo4j/system/lib/jansi-1.5.jar:/var/lib/neo4j/system/lib/jcl-over-slf4j-1.6.1.jar:/var/lib/neo4j/system/lib/jersey-core-1.9.jar:/var/lib/neo4j/system/lib/jersey-multipart-1.9.jar:/var/lib/neo4j/system/lib/jersey-server-1.9.jar:/var/lib/neo4j/system/lib/jettison-1.3.jar:/var/lib/neo4j/system/lib/jetty-6.1.25.jar:/var/lib/neo4j/system/lib/jetty-util-6.1.25.jar:/var/lib/neo4j/system/lib/jsr311-api-1.1.2.r612.jar:/var/lib/neo4j/system/lib/logback-access-0.9.30.jar:/var/lib/neo4j/system/lib/logback-classic-0.9.30.jar:/var/lib/neo4j/system/lib/logback-core-0.9.30.jar:/var/lib/neo4j/system/lib/mimepull-1.6.jar:/var/lib/neo4j/system/lib/neo4j-cypher-plugin-1.8.1.jar:/var/lib/neo4j/system/lib/neo4j-gremlin-plugin-1.8.1.jar:/var/lib/neo4j/system/lib/neo4j-server-1.8.1-static-web.jar:/var/lib/neo4j/system/lib/neo4j-server-1.8.1.jar:/var/lib/neo4j/system/lib/pipes-1.0.jar:/var/lib/neo4j/system/lib/rrd4j-2.0.7.jar:/var/lib/neo4j/system/lib/servlet-api-2.5-20081211.jar:/var/lib/neo4j/system/lib/slf4j-api-1.6.2.jar:/var/lib/neo4j/system/lib/stax-api-1.0.1.jar -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:conf/log4j.properties -Dorg.neo4j.server.properties=/var/lib/neo4j/conf/neo4j-server.properties -Djava.util.logging.config.file=/var/lib/neo4j/conf/logging.properties -Dneo4j.home=/var/lib/neo4j -Dneo4j.instance=/var/lib/neo4j -Dfile.encoding=UTF-8 org.neo4j.server.Bootstrapper ekrem     5296  0.0  0.0   4392   836 pts/3    S+   09:39   0:00 grep --color=auto neo4j

~#: service neo4j-service start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime. Please use JDK 6.
Another server-process is running with [3306], cannot start a new one. Exiting.

On the other hand, in my ruby app which is located at "~/Desktop/neo4japp":

~/Desktop/neo4japp$ rake neo4j:start
Starting Neo4j...
rake aborted!
No such file or directory - neo4j/bin/neo4j start
/home/ekrem/.rvm/gems/ruby-1.9.3-p374/gems/neography-1.0.6/lib/neography/tasks.rb:64:in ``'
/home/ekrem/.rvm/gems/ruby-1.9.3-p374/gems/neography-1.0.6/lib/neography/tasks.rb:64:in `block (2 levels) in <top (required)>'
/home/ekrem/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
/home/ekrem/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'

In my opinion, at last command, it was looking for a location which is relative and its binaries should be under the app I created. So, I should enter exact location at command-line to make it work.

    In addition;
  • neo4j-shell works at port 1337
  • neo4j-service works at port 7474

@henry74
Copy link

henry74 commented Feb 2, 2013

You don't need to run the rake neo4j:start command. It's already running.

@ekremkaraca
Copy link
Author

sorry about delaying, it really works and does not need to run install&start commands. thank you Henry:)

willkessler pushed a commit to willkessler/neography that referenced this issue Apr 21, 2014
Updated koality.yml to parse Gemfile for CrunchBase dependencies and clo...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants