我正在运行本地Kubernets集群,该集群中有一个包含PostgreSQL应用程序和chainlink应用程序的ArgoCD。所有应用程序均已部署,没有错误,但我无法连接到Chainlink节点UI(http://localhost:6688)
复制它的存储库:https://github.com/Edu-BS/chainlink-node
当我转发端口时,我得到这个异常:
Forwarding from 127.0.0.1:6688 -> 6688
Forwarding from [::1]:6688 -> 6688
Handling connection for 6688
E1221 14:25:12.674894 30948 portforward.go:406] an error occurred forwarding 6688 -> 6688: error forwarding port 6688 to pod 9bde87d646ad9fd105e117fe0b74f4dff71aa04111cebaa16a3f1261ff14198d, uid : failed to execute portforward in network namespace "/var/run/netns/cni-bdb94098-7250-c6c7-d6f3-18a9399c05e9": failed to connect to localhost:6688 inside namespace "9bde87d646ad9fd105e117fe0b74f4dff71aa04111cebaa16a3f1261ff14198d", IPv4: dial tcp4 127.0.0.1:6688: connect: connection refused IPv6 dial tcp6 [::1]:6688: connect: connection refused
E1221 14:25:12.680796 30948 portforward.go:234] lost connection to pod
Handling connection for 6688
当我进入pod运行chainlink命令时,会遇到以下异常:
chainlink@chainlink-8ff64f5c9-gqx6d:~$ chainlink chains evm list
Get "http://localhost:6688/v2/chains/evm": dial tcp [::1]:6688: connect: connection refused
链节点正在运行:
chainlink@chainlink-8ff64f5c9-gqx6d:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
chainli+ 1 0.5 0.5 2010636 42444 ? Ssl 12:54 0:10 chainlink local n -p /home/chainlink/.password
chainli+ 14 0.0 0.0 4248 3004 pts/0 Ss 12:54 0:00 /bin/bash
chainli+ 64 0.0 0.0 4248 2848 pts/1 Ss+ 12:58 0:00 /bin/bash
chainli+ 380 0.0 0.0 5900 2772 pts/0 R+ 13:27 0:00 ps aux
1条答案
按热度按时间xlpyo6sf1#
快速查看错误消息:第一个月
看起来好像它在集群中的名称空间内寻找端口6688...但实际上您不是在尝试将主机localhost与pod的端口6688连接吗?
只是一个想法!