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

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

问题描述

今天.在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 连接失败.由于您的浏览器的安全限制,此 Neo4j 驱动程序无法找到失败的原因.请使用您的浏览器开发控制台来确定失败的根本原因.常见原因包括数据库不可用,使用错误的连接 URL 或临时网络问题.如果您启用了加密,请确保您的浏览器配置为信任 Neo4j 配置使用的证书.WebSocket readyState 为: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 的默认安全策略不包含 Bolt (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天全站免登陆