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

Automate downloading and running of migrations #2907

Closed
whyrusleeping opened this issue Jun 25, 2016 · 1 comment · Fixed by #2939
Closed

Automate downloading and running of migrations #2907

whyrusleeping opened this issue Jun 25, 2016 · 1 comment · Fixed by #2939
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature status/in-progress In progress

Comments

@whyrusleeping
Copy link
Member

Currently, when ipfs needs to run a migration, it tells the user to download and run it. When we detect a migration is needed, we should ask the user if they want to automatically download and run it, then do so.

This is a feature I want merged in for the next update (since it will require a migration)

@whyrusleeping whyrusleeping added kind/enhancement A net-new feature or improvement to an existing feature help wanted Seeking public contribution on this issue exp/expert Having worked on the specific codebase is important labels Jun 25, 2016
@whyrusleeping whyrusleeping added this to the ipfs-0.4.3 milestone Jun 25, 2016
@Kubuxu Kubuxu added the status/in-progress In progress label Jul 4, 2016
@milahu
Copy link

milahu commented Jan 11, 2023

this breaks on nixos linux

error no such file or directory
because ld-linux.so is not found at /lib64/ld-linux-x86-64.so.2

quickfix: use fs-repo-migrations from $PATH

ipfs daemon

Initializing daemon...
Kubo version: 0.16.0
Repo version: 12
System version: amd64/linux
Golang version: go1.19.3
Found outdated fs-repo, migrations need to be run.
Run migrations now? [y/N] y
Looking for suitable migration binaries.
Need 1 migrations, downloading.
Downloading migration: fs-repo-11-to-12...
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/versions"
Fetching with HTTP: "https://ipfs.io/ipfs/QmdaCHYBDHEhXCMoynH5UcohEay6m1XayZCcxWZzKAHNVN/fs-repo-11-to-12/v1.0.2/fs-repo-11-to-12_v1.0.2_linux-amd64.tar.gz"
Downloaded and unpacked migration: /run/user/1000/migrations1153952653/fs-repo-11-to-12 (v1.0.2)
Running migration fs-repo-11-to-12 ...
  => Running: /run/user/1000/migrations1153952653/fs-repo-11-to-12 -path=/home/user/.ipfs -verbose=true
The migrations of fs-repo failed:
  migration fs-repo-11-to-12 failed: fork/exec /run/user/1000/migrations1153952653/fs-repo-11-to-12: no such file or directory
If you think this is a bug, please file an issue and include this whole log output.
  https://github.com/ipfs/fs-repo-migrations

Error: migration fs-repo-11-to-12 failed: fork/exec /run/user/1000/migrations1153952653/fs-repo-11-to-12: no such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature status/in-progress In progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants