New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node failed to negotiate security protocol and can't connect to any node. #8120
Comments
|
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
|
I have little data on this issue, other than 4 other people on 0.8.0 have experienced this in the past day or so, or similar (I don't):
Edit: Added SO question that fits the timeframe of the other users. |
|
Oh by the way I can connect to this node from another one (running $ ipfs swarm connect /ip4/192.168.1.79/udp/4001/quic/p2p/12D3<redacted>C16AKgEL
connect 12D3<redacted>C16AKgEL success |
|
Ok so apparently my own node didn't solve the problem however by adding this node Very strange. I guess I'll leave this issue open because the security protocol negotiation issue is still pretty weird. |
|
if needed, here is the DNS cached response from my resolver: ; <<>> DiG 9.16.12 <<>> @192.168.1.17 _dnsaddr.bootstrap.libp2p.io TXT
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51593
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;_dnsaddr.bootstrap.libp2p.io. IN TXT
;; ANSWER SECTION:
_dnsaddr.bootstrap.libp2p.io. 18 IN TXT "dnsaddr=/dnsaddr/sjc-2.bootstrap.libp2p.io/p2p/QmZa1sAxajnQjVM8WjWXoMbmPd7NsWhfKsPkErzpm9wGkp"
_dnsaddr.bootstrap.libp2p.io. 18 IN TXT "dnsaddr=/dnsaddr/ams-2.bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb"
_dnsaddr.bootstrap.libp2p.io. 18 IN TXT "dnsaddr=/dnsaddr/ewr-1.bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa"
_dnsaddr.bootstrap.libp2p.io. 18 IN TXT "dnsaddr=/dnsaddr/nrt-1.bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt"
_dnsaddr.bootstrap.libp2p.io. 18 IN TXT "dnsaddr=/dnsaddr/sjc-1.bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN"
;; Query time: 0 msec
;; SERVER: 192.168.1.17#53(192.168.1.17)
;; WHEN: lun. mai 10 20:06:39 CEST 2021
;; MSG SIZE rcvd: 587I got nothing back for |
|
Looks like you've got a lot of
One of the default bootstrappers uses a static IP instead of a dnsaddr one and it was down recently so if you were having DNS issues then your node wouldn't have anyone to bootstrap from (which is incidentally why connecting to another DHT server node will make your node spring to life again).
Are these nodes both go-ipfs v0.8.0? Can you post the config files Two big ways the security protocol can fail are 1) if you have mismatched security protocols 2) If you have the wrong PeerID associated with the IP + port |
|
The two nodes are running go-ipfs 0.8.0, one of them on amd64 and the other on arm64. I will add more details about the config when I get back home. |
|
You can find my node configs here: |
|
Since there is not much interaction here anymore, I will close this issue and possibly open two separate issues: one for the DNS issue (but not right now, I will wait for v0.9.0 as I have seen some changes there) and another for the security protocol negotiation issue with much more details about my specific situation. |
|
Well, I just resolved the security protocol negotiation issue, if you ever need to expose your IPFS node behind a k8s LoadBalancer, you need a specific apiVersion: v1
kind: Service
metadata:
name: ipfs
spec:
ports:
- name: api
port: 5001
- name: swarm
port: 4001
- name: websocket
port: 4002
- name: gateway
port: 8080
type: LoadBalancer
externalTrafficPolicy: Local
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
selector:
app: ipfs |
fusetim commentedMay 10, 2021
Version information:
Description:
My node is not working anymore (for the last 2 days) without any update or particular change. It seems my node can't connect to any other due to a failed security protocol negotiation.
Firstly, the IPFS node is completely blank as I used to reset it (
rm -r $HOME/.ipfs/andipfs init).The configuration is the default one, and I have a dual stack network.
What's going wrong?
I can't connect to my local node (running go-ipfs 0.8.0 on arm64) due to a failed security protocol negotiation :
Furthermore, my nodes can't connect to any node even the bootstrap one :
For more information, I started my node using
IPFS_LOGGING=verbose ipfs daemon.full log here : https://gist.github.com/fusetim/cb88f3dbb69a28f0f16cb40b4dccb194
(NOTE: 192.168.1.17 is my local DNS resolver and is actually working even on
_dnsaddr.bootstrap.libp2p.io.TXT records)The text was updated successfully, but these errors were encountered: