启动时Neo4j ERROR - 无效的日期字符串

时间:2016-08-27 05:03:34

标签: neo4j

我正在尝试在我的Linux Mint 17.xx上安装neo4j unix版本。我按照下载页面中的说明进行操作。将内容解压缩到本地文件夹后,我尝试运行neo4j控制台。这是它无法从以下消息开始的地方:

rvnath@rvnath-pc /usr/local/neo4j-community-3.0.4/bin $ ./neo4j console
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
२०१६-०८-२७ ०४:५४:०१.२३०+0000 INFO  No SSL certificate found, generating a self-signed certificate..
२०१६-०८-२७ ०४:५४:०१.५६२+0000 ERROR Failed to start Neo4j on address is a hostname and port invalid date string: Unparseable date: "gkfnhnfjkjfgGMT+00:00"
java.lang.IllegalArgumentException: invalid date string: Unparseable date: "gkfnhnfjkjfgGMT+00:00"
    at org.bouncycastle.asn1.ASN1UTCTime.<init>(Unknown Source)
    at org.bouncycastle.asn1.DERUTCTime.<init>(Unknown Source)
    at org.bouncycastle.asn1.x509.Time.<init>(Unknown Source)
    at org.bouncycastle.cert.X509v3CertificateBuilder.<init>(Unknown Source)
    at org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder.<init>(Unknown Source)
    at org.neo4j.bolt.security.ssl.Certificates.createSelfSignedCertificate(Certificates.java:101)
    at org.neo4j.server.AbstractNeoServer.createKeyStore(AbstractNeoServer.java:389)
    at org.neo4j.server.AbstractNeoServer.init(AbstractNeoServer.java:173)
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:186)
    at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
    at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:67)
    at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
rvnath@rvnath-pc /usr/local/neo4j-community-3.0.4/bin $ 
  • 由于日期无法解析,它说它失败了。
  • 是否失败,因为我的语言环境不是英语(印度语/印度语)?因此,它无法正确解析日期字符串?
  • 我该如何解决?

1 个答案:

答案 0 :(得分:0)

BouncyCastle可能存在一个错误,因为code in Neo4j似乎没有在参数中传递日期字符串。它可能试图使用硬编码的语言环境来解析日期,而不是使用当前的语言环境来解析日期

  

gkfnhnfjkjfgGMT + 00:00

而不是日志中可以看到的内容:

  

2016-08-27 04:54:01.562 + 0000

您可以尝试通过为其执行设置LC_ALL环境变量来强制Neo4j的语言环境:

LC_ALL=en_US ./neo4j.sh console

LC_ALL=C ./neo4j.sh console

或者,在启动脚本之前导出变量:

export LC_ALL=en_US # Or "C"
./neo4j.sh console