robertklep / nefit-easy-http-server

HTTP server to access Nefit/Bosch XMPP backend over HTTP
MIT License
38 stars 15 forks source link

EADDRINUSE error #18

Closed Ramnol closed 6 years ago

Ramnol commented 6 years ago

I'm using Domoticz on a Pi 3B. Easy-server was working but lately, after updating node-js, I get the following error: { Error: listen EADDRINUSE 127.0.0.1:3000 at Server.setupListenHandle [as _listen2] (net.js:1327:14) at listenInCluster (net.js:1375:12) at doListen (net.js:1501:7) at process._tickCallback (internal/process/next_tick.js:63:19) errno: 'EADDRINUSE', code: 'EADDRINUSE', syscall: 'listen', address: '127.0.0.1', port: 3000 }

I use node 10.4.1, npm 6.1.0, easy-server 4.0.1 and pm2 2.10.3. I'm not really familiar with Linux. My question: what could be wrong?

Many thanks for your work on this project.

Regards, Guus.

robertklep commented 6 years ago

It means there's already an instance of the server running already, or you have to wait a few minutes before starting the server again.

On 19 Jun 2018, at 09:21, Ramnol notifications@github.com wrote:

I'm using Domoticz on a Pi 3B. Easy-server was working but lately, after updating node-js, I get the following error: { Error: listen EADDRINUSE 127.0.0.1:3000 at Server.setupListenHandle [as _listen2] (net.js:1327:14) at listenInCluster (net.js:1375:12) at doListen (net.js:1501:7) at process._tickCallback (internal/process/next_tick.js:63:19) errno: 'EADDRINUSE', code: 'EADDRINUSE', syscall: 'listen', address: '127.0.0.1', port: 3000 }

I use node 10.4.1, npm 6.1.0, easy-server 4.0.1 and pm2 2.10.3. I'm not really familiar with Linux. My question: what could be wrong?

Many thanks for your work on this project.

Regards, Guus.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Jurrjuna commented 6 years ago

Experienced the same issue (Error: listen EADDRINUSE 127.0.0.1:3000). Never found the cause of this issue, I solved issue by manual removing all nefit-easy-http-server and easy-server files on my Pi. After reinstall everything was working again.

Ramnol commented 6 years ago

Thanks for your replies. Forgot that I start easy-server in rc.local at startup. Problem solved.