Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 0.74 preview.1 protocol upgrade: Failed to initialise network history #10304

Closed
gordsport opened this issue Jan 3, 2024 · 2 comments
Closed
Assignees
Labels
documentation Improvements or additions to documentation network-history

Comments

@gordsport
Copy link
Contributor

Problem encountered

When trying to preform a protocol upgrade to 0.74 it failed to initialise network history meaning the automatic upgrade will fail.

Observed behaviour

Jan 03 09:07:14 n00.stagnet1.vega.rocks visor[520438]: 2024-01-03T09:07:14.075Z ERROR datanode start/node_pre.go:114 Failed to initialise network history {"error": "failed to create network history store: failed to create ipfs node:failed to create node: failed to open ipfs repo:ipfs repo needs migration, please run migration tool.\nSee https://github.com/ipfs/fs-repo-migrations/blob/master/run.md\nSorry for the inconvenience. In the future, these will run automatically."}
Jan 03 09:07:14 n00.stagnet1.vega.rocks visor[520438]: failed to initialise network history:failed to create network history store: failed to create ipfs node:failed to create node: failed to open ipfs repo:ipfs repo needs migration, please run migration tool.

Expected behaviour

the protocol upgrade is sucessful

Steps to reproduce

  1. protocol upgrade from 0.73.10 to 0.74 preview.1

Software version

0.74 prview.1

Failing test

n/a

Jenkins run

n/a

Configuration used

n/a

Relevant log output

Jan 03 09:07:14 n00.stagnet1.vega.rocks visor[520438]: 2024-01-03T09:07:14.075Z ERROR datanode start/node_pre.go:114 Failed to initialise network history {"error": "failed to create network history store: failed to create ipfs node:failed to create node: failed to open ipfs repo:ipfs repo needs migration, please run migration tool.\nSee https://github.com/ipfs/fs-repo-migrations/blob/master/run.md\nSorry for the inconvenience. In the future, these will run automatically."}
Jan 03 09:07:14 n00.stagnet1.vega.rocks visor[520438]: failed to initialise network history:failed to create network history store: failed to create ipfs node:failed to create node: failed to open ipfs repo:ipfs repo needs migration, please run migration tool.

@daniel1302
Copy link
Contributor

I was able to fix it pretty easy with the following steps:

  1. git clone https://github.com/ipfs/fs-repo-migrations.git
  2. cd fs-repo-migrations
  3. make build
  4. ln -s /home/vega/vega_home/state/data-node/networkhistory/store/ipfs/ /home/vega/.ipfs
  5. cd fs-repo-migrations && ./fs-repo-migrations

@gordsport gordsport assigned daniel1302 and unassigned jeremyletang Jan 24, 2024
@gordsport gordsport added documentation Improvements or additions to documentation and removed bug labels Jan 24, 2024
@gordsport
Copy link
Contributor Author

Closing as this is to be documented in:

@github-project-automation github-project-automation bot moved this from In Progress to Merged in Core Kanban Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation network-history
Projects
Archived in project
Development

No branches or pull requests

3 participants