2016-06-25 3 views
1

을 시작하지 나는 사제를 통해 neo4j을 설치,하지만 난 사제 neo4j

$ neo4j start

을 입력하여 서버를 시작하려고 할 때 나는 다음과 같은 얻을 :

Started neo4j (pid 8480). By default, it is available at http://localhost:7474/ 
    There may be a short delay until the server is ready. 
    See /usr/local/Cellar/neo4j/3.0.3/libexec/logs/neo4j.log for current status. 

를 로그 파일의 내용 아래에 추가됩니다. (레이아웃에 대해 사과드립니다.) [* 1]

나는 neo4j 버전 3.0.0-M02을 사용하고 있으며 java v ㅇ jdk1.8.0_20 (정보는 .bash_profile에 포함되어 있음). 내 Mac에서 neo4j를 실행해야합니다 (OS X 10.11.5). 나는 또한 neo4js webiste에서 .dmg 파일을 다운로드하여 설치를 시도했지만이 다시 운은 (나는 이것에 어떤 도움이 많이 주시면 감사하겠습니다

Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 

오류를 얻을.

[* 1] neo4j.log 파일의 내용은 :

2016-06-25 10:27:34.675+0000 INFO Starting... 
2016-06-25 10:27:35.146+0000 INFO Bolt enabled on localhost:7687. 
2016-06-25 10:27:35.449+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component   '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
      at   org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) 
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:217) 
    at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:87) 
    at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:66) 
    at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28) 
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component '[email protected]' was successfully initialized, but failed to start. Please see attached cause exception. 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444) 
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) 
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:189) 
    ... 3 more 
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /usr/local/Cellar/neo4j/3.0.3/libexec/data/databases/graph.db 
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144) 
    at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:40) 
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108) 
    at org.neo4j.server.CommunityNeoServer.lambda$static$31(CommunityNeoServer.java:55) 
    at org.neo4j.server.CommunityNeoServer$$Lambda$43/1286783232.newGraphDatabase(Unknown Source) 
    at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89) 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434) 
    ... 5 more 
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component '[email protected]' failed to initialize. Please see attached cause exception. 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:416) 
    at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62) 
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98) 
    at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:503) 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434) 
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) 
    at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:99) 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434) 
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) 
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140) 
    ... 11 more 
Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.core.WhitespaceAnalyzer: method <init>()V not found 
    at org.neo4j.index.impl.lucene.legacy.LuceneDataSource.<clinit>(LuceneDataSource.java:105) 
    at org.neo4j.index.impl.lucene.legacy.LuceneIndexImplementation.init(LuceneIndexImplementation.java:76) 
    at org.neo4j.kernel.lifecycle.Lifecycles$1.init(Lifecycles.java:37) 
    at org.neo4j.kernel.lifecycle.Lifecycle$Delegate.init(Lifecycle.java:63) 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406) 
    ... 20 more 
+0

귀하의 서버가 이미 시작된 것 같습니다. 브라우저에서'http : // localhost : 7474 /'페이지를 열면됩니다. –

+0

블라드, 귀하의 회신에 감사드립니다. 하지만 아쉽게도 내 서버가 실행되고 있지 않습니다. 브라우저에서'http : // localhost : 7474 /'를 열면'Safari가 서버에 연결할 수 없습니다 '라는 메시지가 나타납니다. – dliv

+0

확인. 오류 메시지는 꽤 일반적입니다. 나는 다음을 점검함으로써 시작할 것입니다. neo4j는 데이터베이스 폴더가 설정된 곳에 쓰기 권한이 있습니까?7474 포트는 무료입니까? –

답변

0

그래서, Neo4j Page$NEO4J_HOME/bin/neo4j console를 실행 말한다 또한. 나는 su 또는 sudo를 사용하여 root로 실행한다. neo4j 폴더의 쓰기 권한도 확인하십시오. 해당 포트 7474는 자유롭게 사용할 수 있습니다.

일반적으로 Neo4j는 설치 스크립트를 제공합니다. 나는 당신의 버전이 난 그냥 내 Mac에서 neo4j 3.0.3을 설치하려고 bin/neo4j-shared.sh

+0

블라드, 도와 줘서 고마워.하지만 지금까지 아무 일도 없었어. 나는'$ NEO4J_HOME/bin/neo4j console'을 실행했지만 다시 운이 없었습니다. 오류 로그는 여전히 동일합니다. – dliv

+0

그걸 듣고 유감스럽게도 –

+0

아 네, 그리고'neo4j-shared.sh'는 내 컴퓨터에서 아무 것도하지 않습니다. – dliv

-1

이 원활 일이라고 생각 :

neo4j-javascript-driver mh$ brew upgrade neo4j 

==> Upgrading 1 outdated package, with result: 
neo4j 3.0.3 
==> Upgrading neo4j 
==> Downloading http://dist.neo4j.org/neo4j-community-3.0.3-unix.tar.gz 
######################################################################## 100,0% 
    /usr/local/Cellar/neo4j/3.0.3: 91 files, 65.1M, built in 38 seconds 
Ich:neo4j-javascript-driver mh$ export JAVA_HOME=`java_home -v 1.8` 
Ich:neo4j-javascript-driver mh$ killall java 
No matching processes belonging to you were found 
Ich:neo4j-javascript-driver mh$ neo4j start 
Starting Neo4j. 
Started neo4j (pid 75890). By default, it is available at http://localhost:7474/ 
There may be a short delay until the server is ready. 
See /usr/local/Cellar/neo4j/3.0.3/libexec/logs/neo4j.log for current status. 
Ich:neo4j-javascript-driver mh$ less /usr/local/Cellar/neo4j/3.0.3/libexec/logs/neo4j.log 
Ich:neo4j-javascript-driver mh$ less /usr/local/Cellar/neo4j/3.0.3/libexec/logs/debug.log 
Ich:neo4j-javascript-driver mh$ neo4j console 
Neo4j is already running (pid 75890). 
Ich:neo4j-javascript-driver mh$ neo4j stop 
Stopping Neo4j.. stopped 
Ich:neo4j-javascript-driver mh$ neo4j console 
Starting Neo4j. 
2016-06-25 16:25:16.926+0000 INFO Starting... 
2016-06-25 16:25:17.723+0000 INFO Bolt enabled on localhost:7687. 
2016-06-25 16:25:20.667+0000 INFO Started. 
2016-06-25 16:25:22.280+0000 INFO Remote interface available at http://localhost:7474/ 
0

스택 트레이스는 매우 분명하다하는 루씬 라이브러리 클래스 경로 충돌이있다. NoSuchMethodError는 classpath에 다른 lucene 라이브러리를 설치하고 표시 할 것을 제안합니다. 이렇게하면 클래스 로더가 Neo4J에서 필요로하는 라이브러리와 다른 버전을로드하게됩니다.

Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.core.WhitespaceAnalyzer: method <init>()V not found 
    at org.neo4j.index.impl.lucene.legacy.LuceneDataSource.<clinit>(LuceneDataSource.java:105) 
    at org.neo4j.index.impl.lucene.legacy.LuceneIndexImplementation.init(LuceneIndexImplementation.java:76) 
    at org.neo4j.kernel.lifecycle.Lifecycles$1.init(Lifecycles.java:37) 
    at org.neo4j.kernel.lifecycle.Lifecycle$Delegate.init(Lifecycle.java:63) 
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406) 
    ... 20 more 

몇 가지 확인 : 당신이 루씬이 너무

  • 설치되어 있습니까?
  • jdk의 승인 된 폴더에 lucene 라이브러리가 있습니까?
  • lucene 라이브러리를 포함한 CLASSPATH 변수가 있습니까?
  • homebrew에서 neo4j 버전을 두 개 이상 설치 했습니까? (어쩌면이 오래된 라이브러리가 설치되어있을 것입니다)
  • jvm args neo4j가 수정을 시도하고 -verbose:class을 추가하여 해당 클래스가로드 된 곳을 확인하십시오.
+0

더 많은 것들이 내 컴퓨터에서 괜찮은 것 같지 않고 다른 컴퓨터에서 시도해 보니 빵은 다 잘 작동합니다. 어쨌든 도와 주셔서 감사합니다, 아우 구스토. – dliv