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

Document upgrade reversion #178

Open
kevinaquick opened this issue Sep 6, 2023 · 5 comments
Open

Document upgrade reversion #178

kevinaquick opened this issue Sep 6, 2023 · 5 comments
Labels
P2 Medium: Good to have, but can wait until someone steps up topic/docs Documentation

Comments

@kevinaquick
Copy link

We have been updating our IPFS nodes to the latest version using the IPFS updater tool. This installs version 0.22.0. We have had to use the fs-repo-migrations tool as part of this process this was working fine a few days ago on the nodes we were updating. However when repeating this process today on our next node that needs updating, the fs-repo-migrations tool seems to be migrating the repo to a version beyond what the current release of Kubo supports i.e. it is now going to version 15 of the repo (previously it was going to just version 14). As a result kubo won't run and complains about the repo being to new!

What is the solution? can we downgrade the repo with the fs-repo-migration and if so how? It seems to have a repo on 15 you need a version of Kubo beyond what can be installed via the updater tool?

Any help much appreciated

Kevin

@kevinaquick kevinaquick added the need/triage Needs initial labeling and prioritization label Sep 6, 2023
@aschmahmann
Copy link
Contributor

@kevinaquick there is currently a released migration that is for an unreleased (but soon to have a release candidate) version of kubo. As a result, upgrading to the "latest" and trying to run a released version of kubo isn't going to work.

However, the fs-repo-migration tool allows both downgrades as well as updating to specific repo versions. From fs-repo-migrations --help

❯ fs-repo-migrations.exe --help
Usage of C:\Users\adin\go\bin\fs-repo-migrations.exe:
  -distpath string
        specify the distributions build to use
  -revert-ok
        allow running migrations backward
  -to string
        repo version to upgrade to, or "latest" for latest repo version (default "latest")
  -v    print latest migration available and exit
  -y    answer yes to all prompts

@kevinaquick
Copy link
Author

Thank you for getting back! we did wonder if there were flags that could be specified but there was no details on the web page to suggest it. I assume the flags are the same for the linux version

@aschmahmann
Copy link
Contributor

but there was no details on the web page to suggest it

Did you mean the README on this repo or something else? In my experience a lot of CLI tools tend to just let you explore through something like --help

I assume the flags are the same for the linux version

Yeah the CLI commands (as well as the migrations, and almost all of the features in kubo itself) are cross platform

@kevinaquick
Copy link
Author

Thanks for getting back again

FYI The web page I was referring to was

https://github.com/ipfs/fs-repo-migrations/blob/master/run.md

@aschmahmann aschmahmann changed the title IPFS update and repo migration issue Document upgrade reversion Oct 23, 2023
@aschmahmann aschmahmann added P2 Medium: Good to have, but can wait until someone steps up topic/docs Documentation and removed need/triage Needs initial labeling and prioritization labels Oct 23, 2023
@aschmahmann
Copy link
Contributor

Thanks, that makes sense. If you're able to submit a PR with the docs update that'd be great. Sounds like this was enough to get the issue resolved for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium: Good to have, but can wait until someone steps up topic/docs Documentation
Projects
None yet
Development

No branches or pull requests

2 participants