Error: listen EADDRINUSE :::9001

Antworten
hihipto
Beiträge: 4
Registriert: 11.07.2017, 15:03

Error: listen EADDRINUSE :::9001

Beitrag von hihipto » 11.07.2017, 15:09

Hi Experts,
I'm trying to install ioBroker in a docker on a Synology with the buanet/iobroker:
https://hub.docker.com/r/buanet/iobroke ... ye9iyyxhk/

However every package I use I get the same error when I launch ioBroker:
Error: listen EADDRINUSE :::9001

Code: Alles auswählen

iobroker	2017-07-11 16:03:02.088	info	exit 1
iobroker	2017-07-11 16:03:01.980	error	at ontimeout (timers.js:386:14)
iobroker	2017-07-11 16:03:01.980	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2790:27)
iobroker	2017-07-11 16:03:01.980	error	at new ObjectsInMemServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2744:7)
iobroker	2017-07-11 16:03:01.980	error	at /opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2737:9
iobroker	2017-07-11 16:03:01.980	error	at _initWebServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2639:24)
iobroker	2017-07-11 16:03:01.980	error	at Server.listen (net.js:1390:5)
iobroker	2017-07-11 16:03:01.980	error	at listen (net.js:1294:10)
iobroker	2017-07-11 16:03:01.980	error	at Server._listen2 (net.js:1258:14)
iobroker	2017-07-11 16:03:01.980	error	at exports._exceptionWithHostPort (util.js:1041:20)
iobroker	2017-07-11 16:03:01.980	error	at Object.exports._errnoException (util.js:1018:11)
iobroker	2017-07-11 16:03:01.980	error	Error: listen EADDRINUSE :::9001
iobroker	2017-07-11 16:03:01.980	error	^
iobroker	2017-07-11 16:03:01.980	error	events.js:160 throw er; // Unhandled 'error' event
iobroker	2017-07-11 16:02:35.642	info	add homekit2
When I go to http://[ipaddress]:9001 I get "Not Implemented"

Anything I'm missing?

Cheers

Thisoft
professional
Beiträge: 673
Registriert: 15.10.2014, 21:34
Wohnort: Erzgebirge

Re: Error: listen EADDRINUSE :::9001

Beitrag von Thisoft » 11.07.2017, 18:10

Hi,

the

Error: listen EADDRINUSE :::9001

want to say you that the port 9001 is already in use bei another application ;)
Please check this first...
17 HM-Geräte; keine CCU - nur USB-Konfigadapter
ioBroker-Multihost auf Windows10(Master) und RasPi2(Client) und Ubuntu-VM(Client, nur Test)

hihipto
Beiträge: 4
Registriert: 11.07.2017, 15:03

Re: Error: listen EADDRINUSE :::9001

Beitrag von hihipto » 11.07.2017, 18:57

indeed, this is what I thought as well, but when I stop the ioBroker container, port 9001 is not responding anymore ... so 9001 is used by the ioBroker container/application

and the message I receive with the container active is: "Not implemented" it doesn't say "already in use" :roll:

Benutzeravatar
Homoran
guru
Beiträge: 12068
Registriert: 08.08.2014, 16:50

Re: Error: listen EADDRINUSE :::9001

Beitrag von Homoran » 14.07.2017, 17:12

I am not familiar with docker.
This error also occurs in pi1, because it is too slow.
There it helps to stop ioBroker prior installing an adapter

Greets
Rainer
kein Support per PN!
Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

Benutzeravatar
Dutchman
guru
Beiträge: 3222
Registriert: 07.01.2016, 23:42

Re: Error: listen EADDRINUSE :::9001

Beitrag von Dutchman » 14.07.2017, 18:36

Hi there

I don't recognize this issue with docker on synology.

Can you please make a screen shot of your docker port mapping ?

I assume the port is routing to a wrong internal docker port


-------------------------
Send from mobile device

hihipto
Beiträge: 4
Registriert: 11.07.2017, 15:03

Re: Error: listen EADDRINUSE :::9001

Beitrag von hihipto » 17.07.2017, 08:45

Hi Dutchman,

I don't use any port mapping as I'm using the same network for the Docker as my Synology ... (to keep things simple, I thought ;))

Thanks for coming back on this,
Cheers,

Benutzeravatar
Dutchman
guru
Beiträge: 3222
Registriert: 07.01.2016, 23:42

Re: Error: listen EADDRINUSE :::9001

Beitrag von Dutchman » 17.07.2017, 09:21

hihipto hat geschrieben:Hi Dutchman,

I don't use any port mapping as I'm using the same network for the Docker as my Synology ... (to keep things simple, I thought ;))

Thanks for coming back on this,
Cheers,
Hmm ok clear, I am not sure if maybe synology has some ports in use sometimes they do some stupid/crapy Port blocks is my Experience.

I use the Same setup works like a charm.

Which docker container are u using I have seen 2 or 3.different ones maybe the bug is somewehere here ?





-------------------------
Send from mobile device

hihipto
Beiträge: 4
Registriert: 11.07.2017, 15:03

Re: Error: listen EADDRINUSE :::9001

Beitrag von hihipto » 19.07.2017, 15:00

I'm using buanet.iobroker-latest

Code: Alles auswählen

iobroker	2017-07-19 15:57:30.500	info	exit 1
iobroker	2017-07-19 15:57:30.337	error	at ontimeout (timers.js:386:14)
iobroker	2017-07-19 15:57:30.337	error	at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2790:27)
iobroker	2017-07-19 15:57:30.337	error	at new ObjectsInMemServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2744:7)
iobroker	2017-07-19 15:57:30.337	error	at /opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2737:9
iobroker	2017-07-19 15:57:30.337	error	at _initWebServer (/opt/iobroker/node_modules/iobroker.js-controller/lib/objects/objectsInMemServer.js:2639:24)
iobroker	2017-07-19 15:57:30.337	error	at Server.listen (net.js:1390:5)
iobroker	2017-07-19 15:57:30.337	error	at listen (net.js:1294:10)
iobroker	2017-07-19 15:57:30.337	error	at Server._listen2 (net.js:1258:14)
iobroker	2017-07-19 15:57:30.337	error	at exports._exceptionWithHostPort (util.js:1041:20)
iobroker	2017-07-19 15:57:30.337	error	at Object.exports._errnoException (util.js:1018:11)
iobroker	2017-07-19 15:57:30.337	error	Error: listen EADDRINUSE :::9001
iobroker	2017-07-19 15:57:30.337	error	^
iobroker	2017-07-19 15:57:30.337	error	events.js:160 throw er; // Unhandled 'error' event
iobroker	2017-07-19 15:56:57.576	info	add samsung
admin.0	2017-07-19 15:56:04.687	info	Repository received successfully.
host.RS812	2017-07-19 15:55:33.888	info	Update repository "default" under "http://download.iobroker.net/sources-dist.json"
admin.0	2017-07-19 15:55:29.997	info	Request actual repository...
admin.0	2017-07-19 15:55:28.939	info	received all objects
admin.0	2017-07-19 15:55:26.500	info	system.adapter.admin.0: logging true
admin.0	2017-07-19 15:55:26.472	info	received all states
discovery.0	2017-07-19 15:55:25.606	info	system.adapter.admin.0: logging true
admin.0	2017-07-19 15:55:24.985	info	Change log subscriber state: true
admin.0	2017-07-19 15:55:11.362	info	Use link "http://localhost:8081" to configure.
admin.0	2017-07-19 15:55:11.358	info	http server listening on port 8081
admin.0	2017-07-19 15:55:11.302	info	requesting all objects
admin.0	2017-07-19 15:55:11.237	info	requesting all states
admin.0	2017-07-19 15:55:09.522	info	starting. Version 1.7.6 in /opt/iobroker/node_modules/iobroker.admin, node: v6.11.0
discovery.0	2017-07-19 15:54:34.617	info	starting. Version 0.4.0 in /opt/iobroker/node_modules/iobroker.discovery, node: v6.11.0
discovery.0	2017-07-19 15:54:29.878	error	no connection to objects DB
host.RS812	2017-07-19 15:54:01.808	info	instance system.adapter.discovery.0 started with pid 91
host.RS812	2017-07-19 15:53:58.833	info	instance system.adapter.admin.0 started with pid 85
host.RS812	2017-07-19 15:53:57.596	info	starting 2 instances
host.RS812	2017-07-19 15:53:57.361	info	2 instances found
host.RS812	2017-07-19 15:53:56.833	info	InMemoryDB connected
host.RS812	2017-07-19 15:53:56.437	info	inMem-objects listening on port 9001
host.RS812	2017-07-19 15:53:53.580	info	inMem-states listening on port 9000
host.RS812	2017-07-19 15:53:51.766	info	ip addresses: 10.0.2.21 fe80::211:32ff:fe19:549b
host.RS812	2017-07-19 15:53:51.746	info	hostname: RS812, node: v6.11.0
host.RS812	2017-07-19 15:53:51.729	info	Copyright (c) 2014-2017 bluefox, hobbyquaker
and when I disable the container, noting is responding on 9001, only when I enable the docker then I get "not implementd" in the web page ...

Benutzeravatar
andre
professional
Beiträge: 374
Registriert: 01.12.2015, 21:08
Wohnort: Winsen (Luhe)
Kontaktdaten:

Re: Error: listen EADDRINUSE :::9001

Beitrag von andre » 23.09.2017, 01:14

Is this still an actual problem? If yes, do u have logitech Media Server istalled? I think this is a Package that uses Port 9001...

MfG,
André


Gesendet von iPad mit Tapatalk Pro
Homematic - Synology DiskStation (DSM6, ioBroker, Docker, Survelliance Station uvm.) - Intel TV Stick (Win10) + ELO Touch Display - Amazon Echo - Denon AVR - Odroid C2 (LibreELEC) - MiLight LED-System - Cubietruck (Armbian) Multihost-Client + RFlink

Benutzeravatar
Bluefox
Site Admin
Beiträge: 7921
Registriert: 13.07.2014, 14:42
Kontaktdaten:

Re: Error: listen EADDRINUSE :::9001

Beitrag von Bluefox » 23.09.2017, 08:15

There are two possible reasons for that:
- the port is really occupied by other application, like monkey done server or torrent,
- your system is so slowly, that in 2 seconds the server still too busy to send the response.

You can change this parameter to 5000 or even to 10000
https://github.com/ioBroker/ioBroker.js ... t.json#L24

But in iobroker-data/iobroker.json

Antworten