2015-07-01 56 views
3

我一直在使用neo4j最近在Debian 7.8上安裝。這很棒!Neo4j服務無法在Debian上導入數據庫開始

今天我使用neo4j-import工具導入了大約100000個節點和150000個關係。我停止了Neo4j的服務和複製導入的數據庫/var/lib/neo4j/data/graph.db - 但現在Neo4j的服務將無法啓動

Starting Neo4j Server...WARNING: not changing user 
process [4963]... waiting for server to be ready....... Failed to start within 120 seconds. 
Neo4j Server may have failed to start, please check the logs. 

這是奇怪的,因爲它沒有等待120秒開始 - 最多5個。生成的唯一日誌是/ var/log/neo4j中的console.log

2015-07-01 00:10:24.363+0000 INFO [API] Setting startup timeout to: 120000ms based on 120000 
2015-07-01 00:10:26.501+0000 INFO [API] Successfully shutdown Neo4j Server. 

這不是很有用。當我刪除數據庫時,neo4j能夠啓動。我將graph.db複製到了我的Windows安裝中,並且它運行良好,我可以搜索節點等,這可能與我的Debian上的配置有關。我添加了一行在/etc/neo4j/neo4j-server.properties

org.neo4j.server.startup_timeout=0 

但是這什麼都沒有改變,服務啓動仍然超時幾秒鐘後。有任何想法嗎?

這裏的graph.db messages.log - 沒有獲取附加當我嘗試啓動該服務

2015-07-01 01:58:12.142+0000 INFO [org.neo4j]: Import starting 
2015-07-01 01:58:12.282+0000 INFO [org.neo4j]: Creating new db @ /var/www/ddl/scripts/./graph.db/neostore 
2015-07-01 01:58:13.238+0000 INFO [org.neo4j]: Missing counts store, rebuilding it. 
2015-07-01 01:58:13.607+0000 INFO [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild. 
2015-07-01 01:58:13.663+0000 INFO [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild. 
2015-07-01 01:58:13.952+0000 INFO [org.neo4j]: Rebuilding lucene scan store, this may take a while 
2015-07-01 01:58:13.955+0000 INFO [org.neo4j]: Lucene scan store rebuilt (roughly -1 nodes) 
2015-07-01 01:58:30.337+0000 INFO [org.neo4j]: IMPORT DONE in 18s 182ms. Imported: 
    95941 nodes 
    158227 relationships 
    369482 properties 
2015-07-01 01:58:30.341+0000 INFO [org.neo4j]: About to rotate counts store at transaction 1 to [/var/www/ddl/scripts/./graph.db/neostore.counts.db.b], from [/var/www/ddl/scripts/./graph.db/neostore.counts.db.a]. 
2015-07-01 01:58:30.344+0000 INFO [org.neo4j]: Successfully rotated counts store at transaction 1 to [/var/www/ddl/scripts/./graph.db/neostore.counts.db.b], from [/var/www/ddl/scripts/./graph.db/neostore.counts.db.a]. 
+0

屬於上dba.stackexchange.com – zero323

+0

Neo4j的文檔建議您讓這裏http://neo4j.com/docs/stable/community-support.html –

+0

請仔細閱讀[我可以問什麼議題有關這裏?](http://stackoverflow.com/help/on-topic),並將它與[關於dba.stackexchange.com上的主題部分]進行比較(http://dba.stackexchange.com/help/on-topic )。 – zero323

回答

1

事實證明,我需要做的就是確保我的權限是正確的。 我用它來修復它

chown -r Neo4j:adm graph.db 

和一切似乎現在正常工作。我認爲如果Neo4j無法訪問graph.db,它應該會產生某種警告。現在,它只是退出沒有任何日誌

+0

救生員! +1更好的錯誤日誌消息傳遞int neo4j consol.log – Ray

+0

如果可以,你應該標記你的答案正確 – Ray

+0

是的,我可以在一個小時內做到這一點:)並同意,neo4j岩石,但消息吸,在一般。我在github上提出了一個問題,希望他們能夠加強他們的伐木遊戲。 –