0

Got IPFS installed on a new computer and got problems running:

ipfs deamon

It returns Error: lock /Users/yenan/.ipfs/repo.lock: someone else has the lock

This wasn't a problem on a previous computer. Thanks

viritijk
  • 33
  • 1
  • 4

1 Answers1

7

If the file repo.lock exists, it normally means that the IPFS daemon is already running. It could also be left over from an IPFS daemon that was terminated without letting it shut down properly (e. g. with kill -9).

Make sure that no IPFS processes are running, then remove the lock file manually and restart the daemon:

killall ipfs
rm /Users/yenan/.ipfs/repo.lock
ipfs daemon
foo
  • 106
  • 2