root@280f47b7675f:/# ipfs daemon
Initializing daemon...
go-ipfs version: 0.5.1-8c67a90723
Repo version: 9
System version: amd64/linux
Golang version: go1.13.10
Error: lock /config/ipfs/repo.lock: someone else has the lock
I am also unable to load the main page. I get could not connect to ipfs api. I have run the commands as suggested but this did not work.
{
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Methods": [
"PUT",
"POST"
],
"Access-Control-Allow-Origin": [
"http://192.168.1.17:8081",
"http://localhost:3000",
"http://127.0.0.1:5001",
"https://webui.ipfs.io",
"http://unraid.mywebsiste.com:8081"
]
}
},
Where am I going wrong here?
This is being run on an unraid docker.
# Could not connect to the IPFS API
Check out the installation guide in the [IPFS Docs](https://docs.ipfs.io/install/command-line-quick-start/), or try these common fixes:
1. Is your IPFS daemon running? Try starting or restarting it from your terminal:
ANY SHELL
`$ ipfs daemon` `Initializing daemon...` `API server listening on /ip4/127.0.0.1/tcp/5001`
2. Is your IPFS API configured to allow [cross-origin (CORS) requests](https://github.com/ipfs-shipyard/ipfs-webui#configure-ipfs-api-cors-headers)? If not, run these commands and then start your daemon from the terminal:
UNIX & MACOSWINDOWS POWERSHELLWINDOWS CMD
`$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://192.168.1.17:8081", "http://localhost:3000", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'` `$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]'`
3. Is your IPFS API on a port other than 5001? If your node is configured with a [custom API address](https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#addresses), enter it here.