【发布时间】:2014-07-29 15:07:36
【问题描述】:
我有 neo4j 2.1.1 在无头 linux 机器 (RHEL 6.4) 上运行。我验证了服务器正在运行。我验证了端口 7474 上有一个侦听器。我验证了 conf/neo4j-server.properties 中的行未注释以允许从任何机器访问 Web 界面。
curl http://localhost:7474 返回 503 错误,浏览到机器:7474 也是如此
我确定我缺少一些非常基本的东西,并感谢任何帮助。这以前有效,但机器最近重新启动,现在它不起作用。我隐约记得用 iptables 做了一些事情,但找不到我之前用过的教程。
卷曲的输出:
curl http://localhost:7474/webadmin
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 503 </title>
</head>
<body>
<h2>HTTP ERROR: 503</h2>
<p>Problem accessing /webadmin. Reason:
<pre> Service Unavailable</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
>netstat -anp |grep 7474
tcp 0 0 :::7474 :::* LISTEN 475/java
>service neo4j-service status
Neo4j Server is running at pid 475
【问题讨论】:
-
您能否检查 data/log/* 和 data/graph.db/messages.log 中的日志文件是否有任何错误消息?也许先试试
curl http://localhost:7474/ -
curl localhost:7474 具有相同的结果。 console.log 有一个由 jetty 引起的 java 错误:10:56:05.374 [main] WARN o.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext@7e94c035{/browser,jar:file:/home/neo4j -community-2.1.1/system/lib/neo4j-browser-2.1.1.jar!/browser,null} java.lang.IllegalArgumentException:错误的临时目录:/tmp/JettyContext7389732742567105888 at org.eclipse.jetty.webapp.WebAppContext .setTempDirectory(WebAppContext.java:1211) ~[jetty-webapp-9.0.5.v20130815.jar:9.0.5.v20130815]
-
更多信息:我停止并重新启动了服务,但仍然没有乐趣。我也尝试通过 REST 接口访问数据库,并得到相同的 503 错误,服务不可用。
-
我检查了,/tmp 是世界可读/可写的,所以这应该不是问题。
标签: neo4j remote-access