Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

failed to enable TCP keepalive errors clogging up logs #113

Closed
aschmahmann opened this issue Jan 10, 2022 · 6 comments · Fixed by #115
Closed

failed to enable TCP keepalive errors clogging up logs #113

aschmahmann opened this issue Jan 10, 2022 · 6 comments · Fixed by #115

Comments

@aschmahmann
Copy link

Saw an M1 go-ipfs user today boot up a node and saw the daemon fill up with errors as below.

2022-01-10T16:23:23.528-0600	ERROR	tcp-tpt	go-tcp-transport@v0.4.0/tcp.go:52	failed to enable TCP keepalive	{“error”: “set tcp4 192.168.86.30:4001->216.180.83.35:44005: setsockopt: invalid argument”}

It seems like this check isn't quite working in all situations, at least on the M1.

if errors.Is(err, os.ErrInvalid) {

@marten-seemann
Copy link
Contributor

Any idea how to reproduce? Running an IPFS node on my M1 doesn't produce any errors like this.

@mvdan
Copy link

mvdan commented Jan 11, 2022

Just for the sake of double checking, what Go version did they build go-ipfs with?

@aschmahmann
Copy link
Author

Should be go1.16.12 as it's go-ipfs v0.11.0 coming from https://dist.ipfs.io/go-ipfs/v0.11.0

@walkerlj0
Copy link

walkerlj0 commented Jan 11, 2022

It was go version 1.17.6 when I ran:

ipfs diag sys

I got this output

{"diskinfo":{"free_space":866375958528,"fstype":"28","total_space":866375958528},"environment":{"GOPATH":"/Users/lindsayjowalker/go","IPFS_PATH":""},"ipfs_commit":"","ipfs_version":"0.11.0","memory":{"swap":0,"virt":0},"net":{"interface_addresses":["/ip4/127.0.0.1","/ip6/::1","/ip6/fe80::1","/ip6/fe80::cc3d:fbff:fe3b:7e77","/ip6/fe80::cc3d:fbff:fe3b:7e78","/ip6/fe80::cc3d:fbff:fe3b:7e76","/ip6/fe80::41d:4115:a91d:6705","/ip4/192.168.86.30","/ip6/fd0d:3f09:c81d:4f52:66:f882:1b5c:683e","/ip6/fe80::8ce0:52ff:fe47:2b0b","/ip6/fe80::8ce0:52ff:fe47:2b0b","/ip6/fe80::cd3d:2c0e:57f7:aa3d","/ip6/fe80::fe7c:7e:c129:778d","/ip6/fe80::ce81:b1c:bd2c:69e"],"online":true},"runtime":{"arch":"arm64","compiler":"gc","gomaxprocs":10,"numcpu":10,"numgoroutines":5441,"os":"darwin","version":"go1.16.12"}}

@tejamainhoon14
Copy link

tejamainhoon14 commented Jan 23, 2022

I'm using a M1 Max Macbook and I'm getting the same error.
❯ ipfs daemon
Initializing daemon...
go-ipfs version: 0.11.0
Repo version: 11
System version: amd64/darwin
Golang version: go1.16.12
Swarm listening on /ip4/10.0.0.237/tcp/4001
Swarm listening on /ip4/10.0.0.237/udp/4001/quic
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/udp/4001/quic
Swarm listening on /ip6/2601:646:8201:76c0:4468:8544:e53f:21e0/tcp/4001
Swarm listening on /ip6/2601:646:8201:76c0:4468:8544:e53f:21e0/udp/4001/quic
Swarm listening on /ip6/2601:646:8201:76c0::28f9/tcp/4001
Swarm listening on /ip6/2601:646:8201:76c0::28f9/udp/4001/quic
Swarm listening on /ip6/2601:646:8201:76c0::a70f/tcp/4001
Swarm listening on /ip6/2601:646:8201:76c0::a70f/udp/4001/quic
Swarm listening on /ip6/2601:646:8201:76c0:cb7:72f4:a587:63b7/tcp/4001
Swarm listening on /ip6/2601:646:8201:76c0:cb7:72f4:a587:63b7/udp/4001/quic
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /ip6/::1/udp/4001/quic
Swarm listening on /p2p-circuit
Swarm announcing /ip4/10.0.0.237/tcp/4001
Swarm announcing /ip4/10.0.0.237/udp/4001/quic
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/udp/4001/quic
Swarm announcing /ip4/24.4.133.178/udp/4001/quic
Swarm announcing /ip6/::1/tcp/4001
Swarm announcing /ip6/::1/udp/4001/quic
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
2022-01-23T00:25:06.513-0800 ERROR tcp-tpt go-tcp-transport@v0.4.0/tcp.go:52 failed to enable TCP keepalive {"error": "set tcp4 10.0.0.237:4001->198.13.55.90:1054: setsockopt: invalid argument"}

@tejamainhoon14
Copy link

Here's my diag sys output
❯ ipfs diag sys
{"diskinfo":{"free_space":869426495488,"fstype":"28","total_space":869426495488},"environment":{"GOPATH":"","IPFS_PATH":""},"ipfs_commit":"","ipfs_version":"0.11.0","memory":{"swap":0,"virt":0},"net":{"interface_addresses":["/ip4/127.0.0.1","/ip6/::1","/ip6/fe80::1","/ip6/fe80::9483:39ff:fe1a:c66d","/ip6/fe80::9483:39ff:fe1a:c66f","/ip6/fe80::9483:39ff:fe1a:c66e","/ip6/fe80::10c8:b35f:e959:befb","/ip6/2601:646:8201:76c0::28f9","/ip4/10.0.0.237","/ip6/2601:646:8201:76c0:cb7:72f4:a587:63b7","/ip6/2601:646:8201:76c0:4468:8544:e53f:21e0","/ip6/2601:646:8201:76c0::a70f","/ip6/fe80::5cef:cbff:feff:894","/ip6/fe80::5cef:cbff:feff:894","/ip6/fe80::6:fa49:e871:7602","/ip6/fe80::740a:be69:a278:7eea","/ip6/fe80::ce81:b1c:bd2c:69e","/ip6/fe80::b730:4fe5:c405:97fd","/ip6/fe80::c371:910d:393a:4d42","/ip6/fe80::ce3:95f8:1363:d1ac","/ip6/fe80::174b:5c52:9e4b:1d31"],"online":false},"runtime":{"arch":"amd64","compiler":"gc","gomaxprocs":10,"numcpu":10,"numgoroutines":16,"os":"darwin","version":"go1.16.12"}}

Stebalien added a commit that referenced this issue Feb 3, 2022
It _looks_ like the standard library doesn't always wrap this error.

fixes #113
marten-seemann pushed a commit that referenced this issue Feb 6, 2022
It _looks_ like the standard library doesn't always wrap this error.

fixes #113
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants