-
-
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
copied file cannot be found by peer #899
Comments
The way I would go about debugging this, is make sure you know the peer ID's of both machines, make sure they are both running, then start the file request. run
If that completes successfuly, bitswap should send its wantlist to the newly connected peer, resulting in a continuation of the transfer, if the transfer resumes after the connection succeeds, then that tells me something is wonky in the DHT. If both peers are connected directly, and still no transfer is happening (and youre sure the file is actually where you think it is) you should check This command should show a bunch of entries in your wantlist, these should be the blocks of the file you are requesting, in either case (blocks in wantlist or not) i have no idea what would cause that. Getting a stack dump of both machines would help me out a bunch. |
i don't see the other node in I'm not the one wanting the file, so How do I generate a stack dump? |
you can generate a stack dump with Ctrl + \ (it sends a SIGQUIT). It he is behind a NAT, then he will have to try doing an ipfs swarm connect to you, If that fails as well, (you are both behind restrictive NATs), then we currently can't make that work. If thats the case, we should start looking at relay connections sooner rather than later. |
we are both behind NAT. funny thing is that he was able to transfer 1GB of the file while it was on the laptop, which is behind the same NAT! it's only since the laptop is closed that the file can't be transfered. |
in other words, NAT to NAT transfer worked at some point, i believe. |
okay, then I would have him try doing an 'ipfs swarm connect' to you. |
seems like there was some progress now, went from 1.08GB to 1.10GB... so i guess something is happening. maybe it just seems so slow (because of #872) that my friend thought it was just stopped..? |
It is definitely possible that I thought that it just stopped, it is hard to see progress when it is updating only at 1GB at a time. However, I was pretty sure that I had left it for a long time without it progressing at all (8hrs at minimum). I dont know if @anarcat was in my peer list then, but he is now. |
okay, slow is something that will likely be fixed by #900, if not... Ill have to debug some more! |
I suspect there may be dht problems at play here. If there's an intermediate node that's our clients cant find they'll just stall. (since the dht isnt yet huge, it still suffers from nodes going up and down or our still imperfect NAT traversal). Though this stalling should not happen (even with dht problems) if you're directly connected. bitswap can bypass routing entirely if two nodes are directly connected and making forward progress. @whyrusleeping maybe we should have something like a manual "ipfs routing provide -r " |
Going to close this for now, feel free to reopen if the problem persists or reappears |
so @anarcat's ipfs adventures continue! the story so far:
Now the file is on the workstation, but my friend can't get the file. It's still stuck at 1GB, even though a daemon is running on the workstation. I expected this to just work...
The text was updated successfully, but these errors were encountered: