-
Notifications
You must be signed in to change notification settings - Fork 489
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
Pin button not working reliably. #1684
Comments
Thanks, @MicahZoltu -- we will keep an eye out for this as well, but in the meantime if you're able to find any definitely unpinnable files that we could reproduce, that would be extremely helpful. |
You can try Note: I haven't tried pinning via the CLI because I don't know how to access the CLI when using IPFS desktop, so I don't know if this is purely a UI issue or may be an IPFS core issue. |
If you are comfortable digging around, you can pop open the chromium dev tools in IPFS Desktop, by hitting There you may see some errors about not finding i18n language files for your current locale which you can ignore. If you try to pin this unpinnable CID, do you see any additional errors appear in the console?
IPFS Desktop can add and |
I believe this is an issue with content discovery, and also has some implications to the way we track pinning progress (now vs near future). How to reproduceWas able to reproduce pinning problem with ephemeral go-ipfs 0.7.0 alone (ensures we test default config and empty repo): $ docker run --rm -it --net=host ipfs/go-ipfs:v0.7.0 To switch CLI to use this ephemeral container, execute in other terminal: $ IPFS_PATH=$(mktemp -d)
$ echo "/ip4/127.0.0.1/tcp/5001" > $IPFS_PATH/api Then, in the same terminal, try to pin mentioned CID: $ time ipfs refs -r bafybeiet2646ne3zlmbnsg72wd23w7mqsyxkjadv4i75f3dqgjhku726jq In my case it hangs after some initial success (failing to find deeper blocks). Due to this, I think the problem is that
UI/UX for "ongoing pinning"The WebUI-specific problem here is that our UI does not account for the fact that pinning operation may take long time, and may not succeed at all (be stuck in limbo for days). When it comes to remote pinning added in #1615 / ipfs/ipfs-gui#91 things will be easy: remote pin object is created immediately and then webui can recheck/track its status to display proper state in UI (queued|pinning|pinned|failed). When it comes to local pins, the Normally I'd suggest we add some "background pinning" magic to webui to track "ongoing" pinning in userland, but upcoming Due to this, I believe there is no point in investing too much time in fixing the old Instead, plan for leveraging Hiding local pinning when data is not in local store?Just an idea for a temporary fix until we have I believe the check would be to do
By hiding pinning for remote content we will avoid UX issues described by @MicahZoltu in #1684 (comment), and we will be able to focus on switching to |
👍 to @lidel's comments on the UI/UX issues with when pins take a while.
Not sure off hand. You could do As for this pin in particular. My suspicion is that for some reason not all of the content is actually available to the network (e.g. the only provider with all the data is behind a NAT, offline, etc.). One way to verify this is the case would be to run on the command line Note: If you're on Windows use CMD instead of PowerShell when running the above command since PowerShell has trouble with binary outputs. |
After almost 9 hours of letting |
IIUC, it sounds like the issue is that the UI currently doesn't have a way of differentiating between "not pinned" and "in the process of fetching so it can be pinned". This means that when I click that pin button, a process in the background starts but the pin icon won't show up until the pin is complete. In this specific example, the pin will never complete because the data isn't available so the pin icon will never show up. That does seem to align with my symptoms of "sometimes the pin button doesn't work, sometimes it does". The times it does is when I already have the files locally and pinning is just a matter of flagging them as keep forever, and the times it doesn't work are when I have to fetch a bunch of data and it takes a while or may never complete. |
@MicahZoltu ... and in the case of |
Note: There are still some unanswered questions under "UI/UX for "ongoing pinning" above. However, parking this until go-ipfs 0.9; we'll know more about local pinning behavior and what's needed at that point. |
This should be fixed in webui v2.12.x, where Pin operation got replaced with Set pinning modal. |
Describe the bug
I am using IPFS Desktop which has v2.11.4 UI integrated. When I add files by IPFS hash, they show up in my files list. I then click the
...
on the right and choosePin
. Sometimes the little pin icon shows up, sometimes it does not.To Reproduce
Unknown. I can follow the same steps multiple times and sometimes I'm able to pin, sometimes I'm not. I generally use CIDv1 hashes if that matters, though CIDv0 are also used on occasion. This doesn't seem to be correlated though.
Expected behavior
When I click "Pin" the little pin icon shows up.
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: