-
-
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 pin add hangs after ipfs add hashcode -t
(possible workaround found)
#5683
Comments
It looks like the trickledag importer may not be correctly flushing certain blocks to disk. If possible, could you try:
|
@Stebalien done, new repo, only this file:
Then on the same repo: Again made a new repo: ALSO, on the "full" repo where I had also issued The file size is 142 MB, I've added bigger files without any problems. |
Hey @JazzTp, thanks for the detailed analysis, could you upload the file that causes the hang please? I'm trying to reproduce it with a 150 MB random file with no luck. |
Hi @schomatis I had sent an URL via e-mail to @Stebalien just after posting (checked your profile page, I'm also in Buenos Aires). Here it goes, you can issue:
It is the 1080p "source video" associated to this Steemit-DTube post: Here you have the two other files which gave the same problem, I have just repeated the same steps to be sure.
Alas, I can not successfully upload from my node, I spent a huge amount of hours/days trying. This ISP is not allowing to open ports ATM, I complained twice. I do have an OpenVPN service but ports forwarding works temporarily and very seldom, which is when I can retrieve my files through external gateways. I tried proxifiers but couldn't proxify the ipfs daemon, so I didn't bother to buy a proxy-VPN service with dedicated IP allowing ports forwarding. As I mentioned in my first post above here, I found that the problem has been mentioned here https://discuss.ipfs.io/t/using-ipfs-over-a-socks-proxy/440/4 with no answers offered so far. |
So, while trying to reproduce the issue I found out the source of the confusion, the hash you'll get while adding a file with the That is, Also, the "ipfs hangs" problem is just I'm going to close this issue since this wasn't a bug after all but feel free to reopen it if you think this wasn't the cause of the problem. Regarding connecting IPFS through a proxy I think there are a couple of issues opened about it but if you don't find any please open a new one, I can help testing the solution with my VPN provider since we are both in the same city. OT: I think I've seen you play in a Miles Davis tribute, drop me a line anytime 😄 |
Thank you very much @schomatis You nailed it. (new repo)
(new repo)
and Previously, I had added the files of 40-50 DTube videos with no problems, but 2-3 months must have passed since the last time and DTube must have change things a bit (*). I should modify the script (bash, in turn called by a bash or a perl script) which calls I should also store the correspondence in an associative list, to be able to check if that content is in the node, pinned, and to be able to remove the pin when needed. On the other hand: (*) Also, snaps used to be available via
Slightly OT: that also happens with Is there a way to set a timeout, a maximum delay after which (It could be a global timeout value, also regulating OT: LOL we played that show on Thursday 16th, next date already fixed so far is 29/11 😄 |
There are timeouts in the code but I'm not sure if they are exposed in the commands or in the |
See: #5541. Basically, you can set a timeout with |
Thanks again @schomatis and @Stebalien
I guess it's more appropriate that I ask there (although it's a closed issue as this one... opening many new issues on the same topic would be spreading info all around I'm afraid, although GitHub connects issues by simply mentioning one from inside the other). As for this issue... one totally marginal observation:
I still find it a bit mindboggling that |
A bit late but... to answer your question, the "hash" of a file is actually the hash of the root node of a merkle-tree (if you're used to file systems, the leaves are "blocks" and the intermediate nodes are indirect blocks). When importing a file through the trickle importer, we end up creating a an intentionally lopsided tree that's optimized for streaming (start to end) but not for random access. The normal importer is optimized for random access. Basically, you end up with two entirely different data structures depending on how you import the data. Note: we need to use the hash of the root, not the entire file so we can verify pieces of the file as we receive them instead of having to download the entire file to check the hash. (well, that's not the only reason but that's the most practical) |
Thank you for explaining @Stebalien The conclusion I draw is that I need to know for which files DTube uses the trickle importer. As I mentioned, that had apparently changed for some of the files associated with the posted video (I simply have to ask via Discord to the same person who had given me the DTube-ipfs steps I was using). |
Ah, you mean if you want to "recover" videos by re-adding them locally? Yes. |
Yes, to keep specific DTube files available. Thank you again. |
I mentioned the problem in #3505 (before finding this possible workaround) and was invited to open a new issue.
Version information:
go-ipfs_v0.4.17_linux-amd64
repo version 7
Type: Bug
Description:
ipfs pin add
was hanging, it happened so far with three files only, of a total of 95In order to add a DTube file to this node, I've been recommended to follow these steps, after retrieving the binary with wget from the gateway https://video.dtube.top/ipfs/ (except hash codes for "Snap" files which used to be retrievable via ipfs get).
I've been said:
With those three files (out of 95):
ipfs add hashcode -t
was fast and gave no complainsipfs pin add hashcode
was hanging and those hash codes were not in the output ofipfs pin ls -t recursive
I just found a workaround, but I'm unable to evaluate its implications:
This does not hang and those hash codes are now appearing in the output of
ipfs pin ls -t recursive
(Further info:
IPFS add hangs #5321 (comment) "Note: you can add a "best effort" pin by linking the file into mfs (
ipfs files cp /ipfs/MyHash /some_file_name
)".ipfs pin ls -t recursive | wc -l
gives 95,ipfs refs local | wc -l
gives 16899This node has 4.1 GB so far, Max set at 500 GB for tests, it could be more, I basically stopped using ipfs because I was unable to proxify the daemon: internet service provider not allowing customers to open ports since a few months ago, filed two complains nothing new so far, I found the problem has been mentioned here https://discuss.ipfs.io/t/using-ipfs-over-a-socks-proxy/440/4 with no answers offered so far.
)
The text was updated successfully, but these errors were encountered: