[英]Running a Chainlink Node - Connecting local Docker/DB to Docker/Node issue in MacOS/OSX
Running the Chainlink Node with local docker/postgres in OSX Catalina is quite cumbersome due to failed ORM connection or any others.由于 ORM 连接或任何其他连接失败,在 OSX Catalina 中使用本地 docker/postgres 运行 Chainlink 节点非常麻烦。
Doc used: https://docs.chain.link/docs/running-a-chainlink-node使用的文档: https://docs.chain.link/docs/running-a-chainlink-node
To check if my local db is indeed working ok.检查我的本地数据库是否确实工作正常。 I've ran these commands with successful results:
我已经成功运行了这些命令:
psql postgresql://suchain:docker@127.0.0.1:5432/chainlink
psql -h localhost -U suchain -d chainlink
What have been tried so far到目前为止已经尝试过什么
--network host
haven't resolve the connection issue--network host
没有解决连接问题Error Message: Incorrect Usage. flag provided but not defined: -network
错误消息:
Incorrect Usage. flag provided but not defined: -network
Incorrect Usage. flag provided but not defined: -network
Note: Tried with --network=host
- same result注意:尝试使用
--network=host
- 结果相同
Error Message: dial error (dial tcp 127.0.0.1:5432: connect: connection refused)
错误消息:
dial error (dial tcp 127.0.0.1:5432: connect: connection refused)
pg-docker
)pg-docker
docker ) Error Message: hostname resolving error (lookup pg-docker on 192.168.65.1:53: no such host)
错误消息:
hostname resolving error (lookup pg-docker on 192.168.65.1:53: no such host)
Which other options can be used?还可以使用哪些其他选项?
Much thanks in advance非常感谢提前
What pages have been checked before filing this one:在提交此之前检查了哪些页面:
Thanks to Patrick.感谢帕特里克。 The root cause is the same as in this link
根本原因与此链接中的相同
Replacing the db link from localhost/127.0.0.1 to the private/local IP(192.168.0.x) fixed the issue.将 db 链接从 localhost/127.0.0.1 替换为私有/本地 IP(192.168.0.x) 解决了该问题。
FYI: in mac os to find your IP is ifconfig
.仅供参考:在 mac os 中找到你的 IP 是
ifconfig
。 You'll need to find the en0
你需要找到
en0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.