Neo4j 密码壳没有反应

Neo4j 密码壳没有反应,neo4j,cypher,Neo4j,Cypher,我正在Ubuntu上运行Neo4J社区版3.1.1,openjdk版本为1.8.0131 直到几天前,还可以从命令行启动cypher查询,例如 > cat myscript.cql | /neo4j/neo4j-community-3.1.1/bin/cypher-shell -u > $neo4j_user -p $neo4j_pass --format verbose 这在很长一段时间内都运作良好。由于某种原因,我无法确定,因为几天前,CypherShell只是挂起,没有向标准

我正在Ubuntu上运行Neo4J社区版3.1.1,openjdk版本为1.8.0131

直到几天前,还可以从命令行启动cypher查询,例如

> cat myscript.cql | /neo4j/neo4j-community-3.1.1/bin/cypher-shell -u
> $neo4j_user -p $neo4j_pass --format verbose
这在很长一段时间内都运作良好。由于某种原因,我无法确定,因为几天前,CypherShell只是挂起,没有向标准输出返回任何消息

Java版本未更改

这是我在启动cypher shell时在日志文件中看到的错误:

> 2018-08-11 21:30:01.851+0000 WARN 
> [io.netty.channel.DefaultChannelPipeline] An exceptionCaught() event
> was fired, and it reached at the tail of the pipeline. It usually
> means the last handler in the pipeline did not handle the exception.
> java.lang.ExceptionInInitializerError
> io.netty.handler.codec.DecoderException:
> java.lang.ExceptionInInitializerError
>         at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442)
>         at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
> (...) Caused by: java.lang.IllegalArgumentException: Unsupported
> customized DH key size: 4096. The key size can only range from 1024 to
> 2048 (inclusive)
>         at sun.security.ssl.ServerHandshaker.<clinit>(ServerHandshaker.java:140)
> (...)
>2018-08-11 21:30:01.851+0000警告
>[io.netty.channel.DefaultChannelPipeline]一个exceptionCaught()事件
>被点燃了,它到达了管道的尾部。通常
>表示管道中的最后一个处理程序未处理异常。
>java.lang.ExceptionInInitializeError
>io.netty.handler.codec.DecoderException:
>java.lang.ExceptionInInitializeError
>位于io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442)
>位于io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
>(…)由以下原因引起:java.lang.IllegalArgumentException:不受支持
>定制DH密钥大小:4096。密钥大小只能在1024到1024之间
>2048年(含)
>位于sun.security.ssl.ServerHandshaker.(ServerHandshaker.java:140)
> (...)
完整日志在此

问题已解决

neo4j.conf中的配置错误:

# Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes.
# This is to protect the server from any potential passive eavesdropping.
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=4096
将其设置为可接受的值:

dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048

您是否更改了neo4j.conf中的DH密钥大小?现在您已经指出。。。我注意到有人换了它。这就是问题所在。将它设置回2048年,它就会工作。谢谢。