greetings! I have gotten through the install, with no apparent issue, until I go to call and check if it is working
ipfs cat /ipfs/β¦PeerIDβ¦/readme
it looks for a very long time, returning this:
17:15:03.903 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:140
17:15:13.903 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:140
17:50:52.667 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:140
17:51:02.667 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:140
Daemon is ready⦠I used the PeerID from the config file.
Iβm out of ideas! Tried a few times with same results.
Any suggestions? Thanks!
updatesβ¦ I added OpenDNS locations to the etc/resolv.conf , running tests like βhostβ show them working, for example, host ipfs.io gives me all the good replies.
now, I installed avahi. brought the daemon back, and i get the same error message above.
also, this process actually cuts out my internet briefly. once I get that mdns lookup error, message pops up that I am disconnected from the network. so I stop it, and the net comes right back on.
what next? for now I am collecting and organizing files to share!
full disclosure: I am not only new to IPFS, I am also new to running linux again after a few years. I am using the ubuntu based βbodhi linuxβ. maybe an appropriate move would be to set up a more mainstream distribution? (may be doing this anyway, for a desktop) are there recommendations for a best fit?
I would be willing to accept that as a βfixβ for now while I learn the ropes.
You can try turning off MDNS in ipfs: ipfs config --bool 'Discovery.MDNS.Enabled' false. This will make it harder to discover other IPFS nodes on your network but should alleviate this problem.
The real solution is for us to replace our go mdns library with a better one and configure it properly.
thanks! ran that line, and see it is changed in the config file.
I am trying the βreadmeβ test againβ¦ for now it is still waiting, waiting, hasnβt given me the error yet. hasnβt given any reply, in about half an hour.
Iβll let it keep tryingβ¦
UPDATE: this request runs and waits⦠no response, hours later.
go-ipfs version: 0.4.13-
Repo version: 6
System version: amd64/linux
Golang version: go1.9.2
dspacio@seedsound:~$ ipfs swarm peers
Error: api not running
dspacio@seedsound:~$ sudo ipfs daemon&
[1] 6930
dspacio@seedsound:~$ ipfs swarm peers
Error: api not running
[1]+ Stopped sudo ipfs daemon
dspacio@seedsound:~$ ipfs daemon&
[2] 6941
dspacio@seedsound:~$ Initializing daemon...
Adjusting current ulimit to 2048...
Successfully raised file descriptor limit to 2048.
Error: cannot acquire lock: Lock Create of /home/dspacio/.ipfs/repo.lock failed: open /home/dspacio/.ipfs/repo.lock: permission denied
[2]- Exit 1 ipfs daemon
I hadnβt run the daemon at first. you can see a few tries there.
at first, I would just run, ipfs daemon& , and it would work. since changing the mdns lookup (as above) it began giving me that permission denied message.
yet yesterday sudo ipfs daemon& would work fine, give me the original reply that all went well. today it is different that the sudo command just returns that one line, ie [1] 6930 .
looks like a lot of peers!
readme request returns this: dspacio@seedsound:~$ ipfs cat /ipfs/QmPSVjp2Ra6q5ymi6X4oxVbMaVQ7zvny83eY4UiLoUrq1r/readme Error: Post http://127.0.0.1:5001/api/v0/cat?arg=%2Fipfs%2FQmPSVjp2Ra6q5ymi6X4oxVbMaVQ7zvny83eY4UiLoUrq1r%2Freadme&encoding=json&stream-channels=true: EOF
With regards to the daemon stuff, you have to wait for it to finish starting before you can use it. The [1] 6930 line is your shell telling you that it has 1 background job and the job it just put in the background has PID 6930.
Error: cannot acquire lock: Lock Create of /home/dspacio/.ipfs/repo.lock failed: open /home/dspacio/.ipfs/repo.lock: permission denied
Youβre getting this error because you have another instance of the daemon starting.
readme request returns this:
Where did you find that path for the README? It should be /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme.
Note the hash there may differ. If it does, use the one you got.
of course this seems clear now, but I was confused and put my peer ID in for the hash. again, my apology for giving us a runaround!! I got the correct reply this time, thank you much for your help!
thanks again - I was feeling foolish for a bit! seems clear now that I know, but it was simple enough to interpret the way I did. new wording could help.
I went ahead and set the discovery.mdns.enabled back to true. seems to be finding things okay.
I appreciate your help!
Ok Iβm running:
$ ipfs version
ipfs version 0.4.20
$ sudo systemctl status ipfs
β ipfs.service - IPFS daemon
Loaded: loaded (/lib/systemd/system/ipfs.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-06-02 11:34:39 EDT; 1h 52min ago
Main PID: 964 (ipfs)
Tasks: 9
Memory: 453.8M
CPU: 7min 45.041s
CGroup: /system.slice/ipfs.service
ββ964 /usr/local/bin/ipfs daemon
Jun 02 13:12:21 Livepeer-IPFS ipfs[964]: 13:12:21.871 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:139
Jun 02 13:12:31 Livepeer-IPFS ipfs[964]: 13:12:31.871 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:139
Jun 02 13:12:41 Livepeer-IPFS ipfs[964]: 13:12:41.872 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
Jun 02 13:12:51 Livepeer-IPFS ipfs[964]: 13:12:51.871 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
Jun 02 13:13:01 Livepeer-IPFS ipfs[964]: 13:13:01.871 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
Jun 02 13:13:11 Livepeer-IPFS ipfs[964]: 13:13:11.871 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
Jun 02 13:13:21 Livepeer-IPFS ipfs[964]: 13:13:21.872 ERROR mdns: mdns lookup error: failed to bind to any multicast udp port mdns.go:139
Jun 02 13:13:31 Livepeer-IPFS ipfs[964]: 13:13:31.871 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
Jun 02 13:13:41 Livepeer-IPFS ipfs[964]: 13:13:41.871 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
Jun 02 13:13:51 Livepeer-IPFS ipfs[964]: 13:13:51.871 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:139
and
$ ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
Hello and Welcome to IPFS!