Hi,
I’ve just installed IPFS for the first time. I installed v0.9.1 (so not the v0.10 rc1 yet).
I’ve installed it in a clean VPS from Digital Ocean (Ubuntu 20).
Now when I tried to set max datastore with command: ipfs config Datastore.StorageMax 80GB
It gives me error: “Error: old style datatstore config detected”
Also when I try to start the daemon using: ipfs daemon I get:
Initializing daemon...
go-ipfs version: 0.9.1
Repo version: 11
System version: amd64/linux
Golang version: go1.16.6
Error: old style datatstore config detected
I tried searching the forum & google but didn’t find any results mentioning this same error…
Anybody can point me the right way to fix this pls?
Note that I successfully change storage path for IPFS to mounted volume (using DO’s separate volume) - you can also see this in the screenshot I linked above.
The error comes from setting Path, not from the StorageMax thing (I tested).
I do not think the datastore location is configurable in the configuration anymore. Either place the full .ipfs folder in your mounted volume (you can use IPFS_PATH=/path/to/vol), or symlink that folder or the subfolders (blocks or badger etc).
Thank you for your response.
I just deleted the .ipfs folder and then ran the ipfs init command on the mounted volume.
That worked and its not giving that error anymore and I’ve increased size to 80GB.
Now when I run the daemon manually using ‘ipfs daemon’ all is good and its running. I do get this error:
Golang version: go1.16.6
2021/09/14 03:25:02 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See {some-link} for details.
No idea what that is about however when I try to setup the daemon with systemd:
I run these commands:
sudo systemctl daemon-reload
sudo systemctl enable ipfs
sudo systemctl start ipfs
and none of these give me any error or anything. Then when I run
sudo systemctl status ipfs
I think the systemd unit is using a different configuration folder as when you run manually. Check that you don’t have configs in both like /mnt/volume_nyc1_01/.ipfs and /mnt/volume_nyc1_01/