-
|
数据库连接失败: [Errno -3] Temporary failure in name resolution bettafish都正常启动了,应该说 .env 配置是对的,为啥MindSpider又连不上呢? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
这个报错
排查建议:
如果还有问题,可以贴一下你的 .env 和 docker-compose.yml 相关配置,方便进一步定位。详细排查思路参考。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
我猜测如果你在docker部署的话,应该使用DB这种docker内部域名替代ip,而不是直接使用IP。否则因为容器在不同网络而无法连接。 |
Beta Was this translation helpful? Give feedback.
-
|
INFO | main:check_config:49 - 检查基础配置... 终于连上数据库了,可这俩个数据库表 daily_news & daily_topics 又是咋回事呢,要手动先创建好的吗? |
Beta Was this translation helpful? Give feedback.
手动创建了 daily_news & daily_topics 这两个空表,然后数据库检查终于正常了。
但是,试运行 python main.py --broad-topic 时又出现报错:
sqlalchemy.exc.OperationalError: (psycopg.OperationalError) failed to resolve host 'bettafish-db': [Errno -3] Temporary failure in name resolution (Background on this error at: https://sqlalche.me/e/20/e3q8)
这和 libicu74 安装失败有关系吗?