[问题/Issue] 章节8.4:连接neo4j数据库失败及解决方法
1. 遇到问题的章节 / Affected Chapter
Chapter8.4
2. 问题类型 / Issue Type
文档不清晰 / Unclear Documentation
3. 具体问题描述 / Problem Description
当开启代理或处在校园网环境时,依据文档所给的neo4j模板填写url可能会出现连接不上neo4j数据库的情况,需要讲url前缀改为neo4j+ssc://;此外,文档描述不清,env配置文件中对应的NEO4J_USERNAME和NEO4J_DATABASE均应该修改为实际数据库的id,而不是所给默认值。
4. 问题重现材料 / Reproduction Materials
“”“ 错误日志 ”“” [SSLCertVerificationError] Connection Failed. Please ensure that your database is listening on the correct host and port and that you have enabled encryption if required. Note that the default encryption setting has changed in Neo4j 4.0. See the docs for more information. Failed to establish encrypted connection. (code 1: Operation not permitted)
ERROR:hello_agents.memory.storage.neo4j_store:❌ Neo4j健康检查失败: {neo4j_code: Neo.ClientError.Database.DatabaseNotFound} {message: Unable to get a routing table for database'neo4j' because this database does not exist} {gql_status: 22000} {gql_status_description: error: data exception} WARNING:hello_agents.memory.types.semantic:⚠️ Neo4j连接异常,图搜索功能可能受限 INFO:hello_agents.memory.types.semantic: 数据库健康状态: Qdrant=✅, Neo4j=❌
5. 补充信息 / Additional Information
No response
确认事项 / Verification
- 我已阅读过相关章节的文档 / I have read the relevant chapter documentation
- 我已搜索过现有的Issues,确认此问题未被报告 / I have searched existing Issues and confirmed this hasn't been reported
- 我已尝试过基本的故障排除(如重启、重新安装依赖等) / I have tried basic troubleshooting (restart, reinstall dependencies, etc.)
Source: datawhalechina/hello-agents