Neo4J:不适用:WebSocket连接失败. [英] Neo4J: N/A: WebSocket connection failure.

查看:679
本文介绍了Neo4J:不适用:WebSocket连接失败.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

G'day. 在AWS(ubuntu)上安装了neo4j(根据浏览器为v3.0.5).无论我尝试什么,当我连接到数据库时,都会收到此错误:

G'day. Installed neo4j (v3.0.5 according to the browser) on AWS (ubuntu). No matter what i try, when i connect to the db i get this error:

"WebSocket连接失败.由于您的Web浏览器中的安全限制,此Neo4j驱动程序不知道失败的原因.请使用您的浏览器开发控制台来确定失败的根本原因.常见原因包括数据库不可用,使用错误的连接URL或临时网络问题.如果启用了加密,请确保将浏览器配置为信任Neo4j配置为使用的证书.WebSocketreadyState为:3"

"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"

试图确保与螺栓等的相关连接打开...但是问题仍然存在. 有人知道吗?

Tried making sure the relevant connections to bolt etc are open... but problem persists. Anyone got any idea?

推荐答案

经过一天的搜索,事实证明,AWS中EC2的默认安全策略不包含螺栓端口(7687).必须将其手动添加到该EC2实例的安全策略规则(入站)中.

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). Had to add this manually to the security policy rules (inbound) for this EC2 instance.

此外,由于在以后的搜索中可能会出现这种情况,因此AWS中Neo4J的默认密码是实例ID的名称.

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.

这篇关于Neo4J:不适用:WebSocket连接失败.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆