-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs migration without starting the daemon #7471
Comments
This would solve #7269 |
You can run the migration tool: https://dist.ipfs.io/#fs-repo-migrations. |
This requires quite some boiler plating, which is already integrated into the ipfs-binary, to be used by I think I would need to parse
This doesn't work, I build the binary from git. So it makes no sense for me to fetch an older version. |
Fair enough. I agree we should add an |
Command:
This command should:
|
this command allows to run the repo migration without starting the daemon. fixes ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
Note: state of this issue is that this is blocked pending a refactor of fs-repo-migrations (i.e. ipfs/fs-repo-migrations#98) such that we're using many binaries instead of one. This will mean that calling |
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
this command allows to run the repo migration without starting the daemon. resolves ipfs#7471
* Add 'ipfs repo migrate' command This PR replaces #7658 that was originally contributed by zaibons, in order to move code into a branch and avoid some CI problem. The command allows the user to run the repo migration without starting the daemon. resolves #7471 * return non-ErrNeedMigration errors from fsrepo.Open() Co-authored-by: Gus Eggert <gus@gus.dev>
Currently, it seems to be impossible to do a migration (if necessary) without starting the daemon.
I'm a package maintainer and like script the migration after installation of the new package instead of running the migration on the first run of the daemon, which - as discussed earlier in a PR - might hit the timeout of systemd for starting a service.
I like to have an
ipfs migrate --assume-yes
or something like this for unattended migration while updating a package with a package manager.It should return 0 if everything is fine, regardless if a migration was necessary or not.
The text was updated successfully, but these errors were encountered: