linuxserver / docker-unifi-network-application

GNU General Public License v3.0
551 stars 40 forks source link

Having trouble getting unifi network application to run in docker on rpi5 - #51

Closed simowilso closed 5 months ago

simowilso commented 5 months ago

Is there an existing issue for this?

Current Behavior

Container fails to startup properly:

Waiting for MONGO_HOST unifi-db to be reachable. Generating 4,096 bit RSA key pair and self-signed certificate (SHA384withRSA) with a validity of 3,650 days for: CN=unifi [custom-init] No custom files found, skipping... Exception in thread "launcher" com.ubnt.net.ooOO: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at com.ubnt.net.B.ÓÒ0000(Unknown Source) at com.ubnt.net.B.ÕÒ0000(Unknown Source) at com.ubnt.service.Object.øÓ0000(Unknown Source) at com.ubnt.ace.Launcher.Ô00000(Unknown Source) at com.ubnt.ace.Launcher.main(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) ... 5 more

Expected Behavior

container should start

Steps To Reproduce

Logs above ^^^

Config below vvvv

Environment

- OS: Ubuntu 23.10
- How docker service was installed:

docker-compose.yml

services:
unifi-db:
container_name: unifi-db
deploy:
resources:
limits:
memory: 100M
image: docker.io/mongo:3.6
environment:
- PGID=1000
- PUID=1000
- TZ=Europe/London
ports:
- target: 27017
published: "27017"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /home/ubuntu/unifi/init-mongo.js
target: /docker-entrypoint-initdb.d/init-mongo.js
- type: bind
source: /home/ubuntu/unifi/
target: /data/db
networks:
- unifi-bridge
privileged: false
unifi-network-application:
container_name: unifi-network-application
depends_on:
unifi-db:
condition: service_started
deploy:
resources:
limits:
memory: 500M
environment:
- MONGO_DBNAME=unifi-db
- MONGO_HOST=unifi-db
- MONGO_PASS=xxxxxxxxxxxxxxxxxxxxx
- MONGO_PORT=27017
- MONGO_USER=xxxxxxxxxxxxxxxxxxxxx
- PGID=1000
- PUID=1000
- TZ=Europe/London
image: lscr.io/linuxserver/unifi-network-application:latest
ports:
- target: 8443
published: "8443"
protocol: tcp
- target: 3478
published: "3478"
protocol: udp
- target: 10001
published: "10001"
protocol: udp
- target: 8080
published: "8080"
protocol: tcp
- target: 1900 #optional
published: "1901"
protocol: udp
- target: 8843 #optional
published: "8843"
protocol: tcp
- target: 8880 #optional
published: "8880"
protocol: tcp
- target: 6789 #optional
published: "6789"
protocol: tcp
- target: 5514
published: "5514"
protocol: udp
restart: unless-stopped
volumes:
- type: bind
source: /home/ubuntu/unifi/
target: /config
networks:
- unifi-bridge
privileged: false
networks:
unifi-bridge:
driver: bridge

CPU architecture

arm64

Docker creation

(see above)

Container logs

(see above)
github-actions[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

j0nnymoe commented 5 months ago

To start with, you're dumping both containers information into the same folder. That's going to cause problems.

simowilso commented 5 months ago

Well, I didn't think there would be a clash but you were indeed right, sorry for wasting your time.