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

Error running on Raspberry Pi. #3

Open
hardik-mindstix opened this issue Jun 18, 2014 · 4 comments
Open

Error running on Raspberry Pi. #3

hardik-mindstix opened this issue Jun 18, 2014 · 4 comments

Comments

@hardik-mindstix
Copy link

Hi,

I am using your module to forward router's port dynamically upon a request. It works well through my dell machine. When I try to run same piece of code on my Raspberry Pi it gives me 'timeout' error.

I did deep diving into your module, tried increasing timeout from 1800 to 10000 but didn't solve the problem.

If you can guide me to solve this problem that will be really helpful. Do I need some Linux libraries or dependencies pre-installed on my Raspberry Pi to get the module run.

Thanks.

@indutny
Copy link
Owner

indutny commented Jun 18, 2014

Hello!

This is rather odd, could you please try running tcpdump -n -w upnp.dump in background, starting your script for a couple of times, and sending upnp.dump to me?

@coolaj86
Copy link
Contributor

I've got the same problem on my Pi. I've implemented this myself by isolating the gateway search from nat-upnp and have it working. See https://coolaj86.com/articles/adventures-in-upnp-with-node-js/

I'll figure out what the source of the problem is and pull request.

Fair Warning: I'm probably going to go on a rampage and rewrite the code entirely with a backwards-compat layer for the currently documented API.

@coolaj86
Copy link
Contributor

After a quick review of the current code, it's probably related to indutny/node-netroute#6

@coolaj86 coolaj86 mentioned this issue Feb 11, 2015
@coolaj86
Copy link
Contributor

It was a combination of a timing bug / race condition (RPi takes more than a single event loop to get all the work done, unlike my laptop) and incorrect logic. (>= instead of <).

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

3 participants