Coder Social home page Coder Social logo

Datastore: key not found about fs-repo-migrations HOT 6 CLOSED

ipfs avatar ipfs commented on August 27, 2024
Datastore: key not found

from fs-repo-migrations.

Comments (6)

aschmahmann avatar aschmahmann commented on August 27, 2024 1

@Rutvik1995 glad you're up and running with the latest go-ipfs.

Thanks for the report it seems likely that manually changing the datastore path was causing you problems. If anyone else runs into something similar they can reopen or create a new issue.

from fs-repo-migrations.

aschmahmann avatar aschmahmann commented on August 27, 2024

@Rutvik1995 what version of go-ipfs are you upgrading from, and do you mind posting your config (make sure to remove your private key)?

from fs-repo-migrations.

Rutvik1995 avatar Rutvik1995 commented on August 27, 2024

@aschmahmann I am pretty new to IPFS and can guide me tell me how do I can see my config file on mac. Earlier everything was working file. When I started my ipfs daemon error occur and told me go to some git repo for migration. I was still getting error version 10 but its still 2 type of error.

from fs-repo-migrations.

aschmahmann avatar aschmahmann commented on August 27, 2024

The config file lives in YourRepo/config (e.g. ~/.ipfs/config). You can also see it using ipfs config show (assuming your older version of go-ipfs supports that command).

It looks like you've recently upgraded from a very old version of go-ipfs (e.g. 4-5 years old) and the repo migration is to bring it up to date with the way repo data is currently stored. Which version of go-ipfs was it (you can tell by running ipfs version using your old go-ipfs binary)?

from fs-repo-migrations.

Rutvik1995 avatar Rutvik1995 commented on August 27, 2024

Hey @aschmahmann Thank you guiding me
The IPFS config commands works for me and I am getting this thing.

{
"API": {
"HTTPHeaders": null
},
"Addresses": {
"API": "/ip4/127.0.0.1/tcp/5001",
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001"
]
},
"Bootstrap": [
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
"/ip4/104.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z",
"/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip4/162.243.248.213/tcp/4001/ipfs/QmSoLueR4xBeUbY9WZ9xGUUxunbKWcrNFTDAadQJmocnWm",
"/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"/ip4/178.62.61.185/tcp/4001/ipfs/QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3",
"/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx"
],
"Datastore": {
"GCPeriod": "1h",
"Path": "/Users/rutvikpatel/.ipfs/datastore",
"StorageGCWatermark": 90,
"StorageMax": "10GB",
"Type": "leveldb"
},
"Discovery": {
"MDNS": {
"Enabled": true,
"Interval": 10
}
},
"Gateway": {
"HTTPHeaders": null,
"RootRedirect": "",
"Writable": false
},
"Identity": {
"PeerID": "Qmf4vaWQr2yyhwm7zTGtB6j853SjNTeqvs8fUfSSAuP6Dc"
},
"Ipns": {
"RecordLifetime": "",
"RepublishPeriod": "",
"ResolveCacheSize": 128
},
"Mounts": {
"FuseAllowOther": false,
"IPFS": "/ipfs",
"IPNS": "/ipns"
},
"SupernodeRouting": {
"Servers": [
"/ip4/104.236.176.52/tcp/4002/ipfs/QmXdb7tWTxdFEQEFgWBqkuYSrZd3mXrC7HxkD4krGNYx2U",
"/ip4/104.236.179.241/tcp/4002/ipfs/QmVRqViDByUxjUMoPnjurjKvZhaEMFDtK35FJXHAM4Lkj6",
"/ip4/104.236.151.122/tcp/4002/ipfs/QmSZwGx8Tn8tmcM4PtDJaMeUQNRhNFdBLVGPzRiNaRJtFH",
"/ip4/162.243.248.213/tcp/4002/ipfs/QmbHVEEepCi7rn7VL7Exxpd2Ci9NNB6ifvqwhsrbRMgQFP",
"/ip4/128.199.219.111/tcp/4002/ipfs/Qmb3brdCYmKG1ycwqCbo6LUwWxTuo3FisnJV2yir7oN92R",
"/ip4/104.236.76.40/tcp/4002/ipfs/QmdRBCV8Cz2dGhoKLkD3YjPwVFECmqADQkx5ZteF2c6Fy4",
"/ip4/178.62.158.247/tcp/4002/ipfs/QmUdiMPci7YoEUBkyFZAh2pAbjqcPr7LezyiPD2artLw3v",
"/ip4/178.62.61.185/tcp/4002/ipfs/QmVw6fGNqBixZE4bewRLT2VXX7fAHUHs8JyidDiJ1P7RUN"
]
},
"Swarm": {
"AddrFilters": null
},
"Tour": {
"Last": ""
},
"Version": {
"AutoUpdate": "minor",
"Check": "error",
"CheckDate": "0001-01-01T00:00:00Z",
"CheckPeriod": "172800000000000",
"Current": "0.3.11"
}
}

When I type ipfs version I got
ipfs version 0.7.0

I think old one was something like 0.3.0.

The issue is something link with Datastore I accidentally changed to "Path": "/Users/rutvikpatel/.ipfs/datastore". Initially it was something else which came by default.

from fs-repo-migrations.

Rutvik1995 avatar Rutvik1995 commented on August 27, 2024

Hey @aschmahmann, Thank You for your above suggestion and reviewing my problem. Sorry that I was not able to explain problem is clear and good manner.

I removed the old directory by this command
$ rm -R ~/.ipfs/

Then started run
$ ipfs init
command

then started
$ipfs daemon
go-ipfs version: 0.7.0
Repo version: 10
System version: amd64/darwin
Golang version: go1.14.4
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/udp/4001/quic
Swarm listening on /ip4/192.168.11.183/tcp/4001
Swarm listening on /ip4/192.168.11.183/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/127.0.0.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/udp/4001/quic
Swarm announcing /ip4/192.168.11.183/tcp/4001
Swarm announcing /ip4/192.168.11.183/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

The IPFS server successfully start running

from fs-repo-migrations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.