Unifi in docker via docker compose

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • rob1985
  • Registratie: Juni 2003
  • Laatst online: 06-06 07:04
Edit:issue gevonden. Poort 1900 werd al gebruikt, ik heb alleen nog geen idee waarvoor.

Hallo,

Ik ben een linuxserver (Ubuntu server) aan het opzetten voor m'n smarthome. Ik heb onder andere HomeAssistant al aan de praat als een container. Verder ben ik nog bezig met wat meer containers. Ik loop nu echter vast met de Unifi controller installatie.

Ik krijg de volgende foutmelding. Alle tot en met grafana werkt, ik loop alleen vast vanaf mongo. Ik heb deze instructie gevolgd.
https://www.blackvoid.club/unifi-controller-via-docker/

Het downloaden van de image gaat goed, maar bij het aanmaken van de controller gaat het fout.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Pulling unifi-controller (ghcr.io/linuxserver/unifi-controller:)...
latest: Pulling from linuxserver/unifi-controller
7fe4e822761f: Pull complete
5231b3c13f88: Pull complete
ebfffaf4df3c: Pull complete
f302152db91c: Pull complete
56b6cfbc09d3: Pull complete
05d9d46415f7: Pull complete
422e0f275a69: Pull complete
Digest: sha256:0aad8b3114c103e3b830288e942915556faa4a49d11379e3d127c076397b6eff
Status: Downloaded newer image for ghcr.io/linuxserver/unifi-controller:latest
node-red is up-to-date
homeassistant is up-to-date
Creating unifi-controller ...
influxdb is up-to-date
portainer is up-to-date
opt_grafana_1 is up-to-date
Creating unifi-controller ... error

ERROR: for unifi-controller  Cannot start service unifi-controller: driver failed programming external connectivity on endpoint unifi-controller (c7b2d1ab4710bbcf2f82888f6300f6e271304fe4d23f2359b4afca1f1c5a6123): Error starting userland proxy: listen udp4 0.0.0.0:1900: bind: address already in use

ERROR: for unifi-controller  Cannot start service unifi-controller: driver failed programming external connectivity on endpoint unifi-controller (c7b2d1ab4710bbcf2f82888f6300f6e271304fe4d23f2359b4afca1f1c5a6123): Error starting userland proxy: listen udp4 0.0.0.0:1900: bind: address already in use
ERROR: Encountered errors while bringing up the project.


Mijn compose file ziet er als volgt uit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.7'

services:
  portainer:
    container_name: portainer
    image: portainer/portainer-ce
    restart: always
    ports:
      - "9000:9000/tcp"
    environment:
      - TZ=Europe/Amsterdam
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/portainer:/data

  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /opt/homeassistant/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

  node-red:
    container_name: node-red
    image: nodered/node-red
    restart: unless-stopped
    environment:
      - TZ=Europe/Amsterdam
    ports:
      - 1880:1880
    volumes:
      - /opt/node-red:/data

  influxdb:
    image: influxdb:2.0
    container_name: influxdb
    restart: unless-stopped
    environment:
      - TZ=Europe/Amsterdam
      - INFLUXDB_DB_homeassistant
      - INFLUXDB_ADMIN_USER=xxx
      - INFLUXDB_ADMIN_PASSWORD=xxx
    ports:
      - "8086:8086"
    volumes:
      - /opt/influxdb_data:/vat/lib/influxdb

  grafana:
    image: grafana/grafana
    restart: unless-stopped
    depends_on:
      - influxdb
    environment:
      - TZ=Europe/Amsterdam
      - GF_SECURITY_ADMIN_USER=xxx
      - GF_SECURITY_ADMIN_PASSWORD=xxx
      - GF_INSTALL_PLUGINS=
    ports:
      - "3000:3000"
    volumes:
      - /opt/grafana_data:/vat/lib/grafana

  unifi-controller:
    image: ghcr.io/linuxserver/unifi-controller
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=1024M #optional
    volumes:
      - /opt/unifi:/config
    ports:
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
      - 8443:8443
      - 1900:1900/udp #optional
      - 8843:8843 #optional
      - 8880:8880 #optional
      - 6789:6789 #optional
      - 5514:5514/udp #optional
    restart: unless-stopped

volumes:
  grafana_data: {}
  influxdb_data: {}


Ik weet niet wat er fout is...

[ Voor 47% gewijzigd door rob1985 op 03-09-2022 08:28 . Reden: Issue opgelost ]

Beste antwoord (via rens-br op 03-09-2022 10:06)


  • Accretion
  • Registratie: April 2014
  • Laatst online: 24-06 21:37

Accretion

⭐⭐⭐⭐⭐ (5/5)

1900: bind: address already in use

Poort 1900 is al in gebruik?
In de config staat er "optional" bij, dus ik verwacht dat je die lijn de tussenuit kunt halen.

Alle reacties


Acties:
  • Beste antwoord
  • 0 Henk 'm!

  • Accretion
  • Registratie: April 2014
  • Laatst online: 24-06 21:37

Accretion

⭐⭐⭐⭐⭐ (5/5)

1900: bind: address already in use

Poort 1900 is al in gebruik?
In de config staat er "optional" bij, dus ik verwacht dat je die lijn de tussenuit kunt halen.

Acties:
  • 0 Henk 'm!

  • Accretion
  • Registratie: April 2014
  • Laatst online: 24-06 21:37

Accretion

⭐⭐⭐⭐⭐ (5/5)

Met het command:
code:
1
netstat -alpn | grep 1900


Zou je moeten kunnen vinden welk proces poort 1900 gebruikt.

De poort wordt vaak gebruikt voor UPnP /SSDP.
Dit wordt gebruikt voor het automatisch detecteren van apparaten in het netwerk, bijvoorbeeld mediaspelers die ook als server gebruikt kunnen worden.