简体   繁体   English

Neo4J:不适用:WebSocket连接失败。

[英]Neo4J: N/A: WebSocket connection failure.

G'day. 天儿真好。 Installed neo4j (v3.0.5 according to the browser) on AWS (ubuntu). 在AWS(ubuntu)上安装了neo4j(根据浏览器为v3.0.5)。 No matter what i try, when i connect to the db i get this error: 无论我尝试什么,当我连接到数据库时都会收到此错误:

"WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket readyState is: 3" “ WebSocket连接失败。由于您的Web浏览器中的安全约束,此Neo4j驱动程序不知道失败的原因。请使用您的浏览器开发控制台来确定失败的根本原因。常见原因包括数据库不可用,使用错误的连接URL或临时网络问题。如果启用了加密,请确保将浏览器配置为信任Neo4j配置为使用的证书。WebSocket readyState为:3“

Tried making sure the relevant connections to bolt etc are open... but problem persists. 尝试确保与螺栓等的相关连接打开...但是问题仍然存在。 Anyone got any idea? 有人知道吗?

After a day of searching, it turns out that the default security policy from EC2 in AWS doesn't include the port for bolt (7687). 经过一天的搜索,事实证明,AWS中EC2的默认安全策略不包括螺栓端口(7687)。 Had to add this manually to the security policy rules (inbound) for this EC2 instance. 必须手动将此添加到此EC2实例的安全策略规则(入站)中。

Also, since this may come up in future searches for someone, the default password for Neo4J in AWS is the name of the instance ID. 另外,由于在以后的搜索中可能会出现这种情况,因此AWS中Neo4J的默认密码是实例ID的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM