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

Node behind NAT unable to pin content from the internet when using --enable-pubsub-experiment and badgerds #5028

Closed
bonedaddy opened this issue May 20, 2018 · 5 comments

Comments

@bonedaddy
Copy link
Contributor

bonedaddy commented May 20, 2018

Can't quite figure out why, but my IPFS node behind my firewall is completely unable to pin any content from the internet, not clear what is causing the problem.

For example, here is my IPFS node at home pinning a small file, taking almost no time to complete (5-10 seconds):

solidity@darkmatter:~$ ipfs pin add QmWx6TjMkRVodw3vibMDjYmKzzNtfK6Nu7uTSDezWdtvUg
pinned QmWx6TjMkRVodw3vibMDjYmKzzNtfK6Nu7uTSDezWdtvUg recursively

Now, here is my production IPFS node at my datacenter, approximately 2 minutes after running the command:

root@nexus:~# ipfs pin add QmWx6TjMkRVodw3vibMDjYmKzzNtfK6Nu7uTSDezWdtvUg


As you can see, no updates. Now, I'm not quite sure WHAT is causing the problem, I think it may be due to me being behind a firewall? However I have made sure to forward ports 4001 to my node. Any suggestions on how I can figure out what exactly is causing the issue? I have access to prometheus metrics so let me know if there's anything you want to see.

I have left some files pinning overnight as well, which also haven't worked.

I'm using IPFS Version 0.4.15 with BadgerDS is being used, along with --enable-pubsub-experiment

https://i.imgur.com/ts5OJ8v.png

@bonedaddy
Copy link
Contributor Author

bonedaddy commented May 20, 2018

I have tried disabling --enable-pubsub-experiment which has solved the issue.Any idea how I can go about fixing this pubsub issue? I'm building out a portion of my aplication using pubsub.

I'm not sure if this is an issue with pubsub and badgerds or just one of the two. I'm using a Debian 9 OS. The node can pin content just fine when it's being done from a file or object locally but fetching data over the internet doesn't seem to work

@bonedaddy bonedaddy changed the title Node behind NAT unable to pin content from the internet Node behind NAT unable to pin content from the internet when using --enable-pubsub-experiment May 20, 2018
@bonedaddy bonedaddy changed the title Node behind NAT unable to pin content from the internet when using --enable-pubsub-experiment Node behind NAT unable to pin content from the internet when using --enable-pubsub-experiment and badgerds May 20, 2018
@bonedaddy
Copy link
Contributor Author

bonedaddy commented May 20, 2018

Issue is still present :/

I believe this issue may also be related as I have some of the same symptoms
ipfs/js-ipfs#1132

Host Information:

Kernel: Linux nexus 4.16.0-0.bpo.1-amd64 #1 SMP Debian 4.16.5-1~bpo9+1 (2018-05-06) x86_64 GNU/Linux
OS: Debian GNU/Linux 9 (stretch)

IPFS Information:

go-ipfs version: 0.4.15-
Repo version: 6
System version: amd64/linux
Golang version: go1.10.2

I'm using a binary package built with golang

@bonedaddy bonedaddy reopened this May 20, 2018
@Stebalien Stebalien reopened this Jun 13, 2018
@Stebalien Stebalien added the kind/bug A bug in existing code (including security flaws) label Jun 13, 2018
@Stebalien
Copy link
Member

How this relates to pubsub is a bit mystifying. My only guess is that your node is triggering some suspicious activity scan. Try running ipfs config profile apply server and then leaving go-ipfs off for ~30m.

@bonedaddy
Copy link
Contributor Author

I forgot to close this, but it has since been "resolved". I'm not sure what the issue was, however I think it might've been due to the distro (OpenMediaVault) I was using and some special configuration it had with regards to the software it comes with. I tried spinning up an Ubuntu 16.04.4LTS server on the same lan as the OMV box, and that node had no troubles at all.

@Stebalien
Copy link
Member

Ah. Got it.

You did close it, I just saw a lot of open/close events and no solution so I figured it might still be an issue. Glad you figured it out!

@Stebalien Stebalien removed the kind/bug A bug in existing code (including security flaws) label Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants