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

ERR_SERVER_ALREADY_LISTEN #50

Closed
dony71 opened this issue Dec 27, 2018 · 3 comments
Closed

ERR_SERVER_ALREADY_LISTEN #50

dony71 opened this issue Dec 27, 2018 · 3 comments

Comments

@dony71
Copy link

dony71 commented Dec 27, 2018

Read IP address 10.168.1.40 from eth0
Manufacturer : Banana Pi
Model : M2+
HardwareId :
SerialNumber : 02c000812232c635
FirmwareVersion : 0.2.1
Binding DeviceService to http://10.168.1.40:8880/onvif/device_service
Binding MediaService to http://10.168.1.40:8880/onvif/media_service
net.js:1372
throw new ERR_SERVER_ALREADY_LISTEN();
^

Error [ERR_SERVER_ALREADY_LISTEN]: Listen method has been called more than once without closing.
at Server.listen (net.js:1372:11)
at MediaService.SoapService.start (/root/rpos-gateway-0.2.1/lib/SoapService.js:26:24)
at Object. (/root/rpos-gateway-0.2.1/rpos-gateway.js:42:15)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)

@RogerHardiman
Copy link
Collaborator

Thanks for the issue report.
I have not used a Banana Pi before but it would be fine as RPOS will work on a Mac and Windows.

What version of Node are you running?

@RogerHardiman
Copy link
Collaborator

Just realised this is a bug report for rpos-gateway. That is a different project, forked from RPOS. You will need to contact the rpos-gateway team.

If you can recreate the issue with RPOS then please create a new Problem Report and I can take a look.

@RogerHardiman
Copy link
Collaborator

Hi @dony71
Quick update - I was able to re-create the issue in the RPOS project when running on Node JS version 10. It may have occurred in Node v9 too.

Anyway I've fixed RPOS so it no longer triggers ERR_SERVER_ALREADY_LISTEN when running on Node version 10.
You are using roos-gateway so you will need to get the roos-gateway author to make the same changes.

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