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: 0.4.23 -> 0.5.0 #86242
ipfs: 0.4.23 -> 0.5.0 #86242
Conversation
Please rebase and squash the commits into one with commit message according to guidelines https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes Feel free to ping me if you need help. |
Ok, I think this is correct? |
According to the release notes on GitHub, the
|
This comment has been minimized.
This comment has been minimized.
@GrahamcOfBorg test ipfs |
Since this upgrade my local IPFS instance tells me it requires repo migrations and we don't seem to handle that yet.
The 0.5.0 release note say the following:
Also it seems somewhat tricky:
The
How did y'all solve that? |
What I did so far:
I can create a PR but I'm not sure if further steps (like documentation, ipfs service adjustments, genaming of the package to fs-repo-migrations) should be done, too. |
To be honest I have used ipfs not before and just made sure our test was running. Should we revert this until the upgrade path becomes clear? |
I created #87265 which updates ipfs-migrator to the latest version. |
That did the trick. Thanks! |
Do you think we can add this migrator to our NixOS module somehow? Or should we mention this in the release notes? |
I don't have any background in IPFS or IPFS on NixOS, I just played around with it a bit in the last weeks. From what I got from the nixpkgs git log and issues and the IPFS Migration Tool README:
Also there's a ticket that the IPFS test seems to be broken (#74000) which might be nice to have for this kind of feature. |
I have fixed the tests in this pull requests actually. |
Ah, I missed that. Thanks! |
I think I might be in a state close to @Mic92 I just started playing with IPFS, and after my last update it stopped starting saying that I need to migrate. I just tried to do it manually (running as ipfs), but got some errors when doing it. It seems that the version I have installed right now should be able to do the migration, thanks to #87265 I guess. The However, when it runs it fails to find a repo,
From the According to
UPDATE: After adding
I just killed the daemon after is succeeded migrating and restarted
|
You can also override the IPFS_PATH for fs-repo-migrations, see #86242 (comment). |
Oh, thanks for the tip. However I think that I think that the issue is that by running the ipfs service we should just have the ipfs-migrator installed just in case we need an upgrade. |
I think " ${HOME}/.ipfs" is the default for IPFS_PATH, but the NixOS Module uses IPFS_PATH=HOME. So in your error message, the additional ".ipfs" was the problem. But yes, making ipfs-migrator available might be the right thing to do as long as we make sure, we don't destroy other people's fs repos by auto-upgrading, make auto-upgrade non-default or at least allow people to opt-out. That's the tricky part, I think. |
Hi @priegger, thanks for the clear instructions on migrating IPFS. Encountered a similar issue when upgrading from NixOS 20.03 to NixOS 20.09beta recently in which the daemon wasn't starting due to the same error. |
I created a symlink from /var/lib/ipfs/.ipfs to /var/lib/ipfs to fix the migration. I tried setting IPFS_PATH when calling fs-repo-migration but it didn't work, so I filed a bug: ipfs/fs-repo-migrations#110 |
Motivation for this change
Major go-ipfs update to 0.5.0
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Perhaps some commits should be squashed. I don't know why I the preload.sh script failed, some weird path problem. Seems to work fine without it.