Skip to content

[BUG] Unifi Application Constantly Restarts #152

@Lyrics0811

Description

@Lyrics0811

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm running into an issue where unifi is just dead and it seems like it constantly restarts. Reviewing logs doesn't give any indication into what the issue may be. I ended up blowing everything away and trying to start fresh, but it's still happening. I even tried to go back a few tags and that didn't help. When pulling up the web site I get the following:

Connection error. Please check your Network application process state.

docker file:

services:
unifi-db:
image: docker.io/mongo:8.0.10-rc0-noble
container_name: unifi-db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=asdf
- MONGO_USER=unifi
- MONGO_PASS=asdf
- MONGO_DBNAME=unifi
- MONGO_AUTHSOURCE=admin
networks:
macvlan118:
ipv4_address: 192.168.118.7
volumes:
- /docker/unifi/config/data/db:/data/db
- /docker/unifi/config/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M

unifi-network-application:
image: lscr.io/linuxserver/unifi-network-application:9.0.114-ls81
container_name: unifi-network-application
environment:
- PUID=1007
- PGID=1007
- TZ=America/***
- MONGO_USER=unifi
- MONGO_PASS=asdf
- MONGO_HOST=unifi-db
- MONGO_PORT=27017
- MONGO_DBNAME=unifi
- MONGO_AUTHSOURCE=admin
- MEM_LIMIT=1024 #optional
- MEM_STARTUP=1024 #optional
volumes:
- /docker/unifi/config/unifi-network-application/data:/config
networks:
macvlan118:
ipv4_address: 192.168.118.6
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 1900:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514/udp #optional
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M

networks:
macvlan118:
external: true
name: "macvlan118"

controller server.log

[2025-05-23T19:58:28,320-05:00] <launcher> INFO  system - ======================================================================
[2025-05-23T19:58:28,320-05:00] <launcher> INFO  system - UniFi 9.0.114 (build atag_9.0.114_28033 - release/release) is started
[2025-05-23T19:58:28,321-05:00] <launcher> INFO  system - Environment: UniFi-OS[false], UniFi-Cloud[false], UniFi-MongoService[false]
[2025-05-23T19:58:28,321-05:00] <launcher> INFO  system - ======================================================================
[2025-05-23T19:58:28,321-05:00] <launcher> INFO  system - BASE dir:/usr/lib/unifi
[2025-05-23T19:58:28,323-05:00] <launcher> INFO  system - Current System IP: 192.168.118.6
[2025-05-23T19:58:28,324-05:00] <launcher> INFO  system - Hostname: 706463bbc92a
[2025-05-23T19:58:28,324-05:00] <launcher> INFO  system - ubic.env: prod
[2025-05-23T19:58:28,324-05:00] <launcher> INFO  system - System loaded
[2025-05-23T19:58:28,476-05:00] <launcher> INFO  mongo  - Connected to database (v8.0.10-rc0@mongodb://unifi:sdf@unifi-db:27017/unifi?tls=false&authSource=admin, journal enabled)
[2025-05-23T19:58:28,478-05:00] <launcher> WARN  startup -   component[mongoRuntimeService] initialization took 135ms
[2025-05-23T19:58:28,555-05:00] <launcher> INFO  db     - Starting database service initialization...
[2025-05-23T19:58:28,561-05:00] <launcher> INFO  db     - *** Factory Default *** Database exists. Clean it
[2025-05-23T19:58:28,644-05:00] <launcher> INFO  db     - Database service initialized...
[2025-05-23T19:58:28,646-05:00] <launcher> INFO  stat   - *** Factory Default *** Stat Database exists. Clean it
[2025-05-23T19:58:28,841-05:00] <launcher> INFO  tomcat - Adding basic REST API support during the startup
[2025-05-23T19:58:29,078-05:00] <launcher> INFO  system - Tomcat startup took 1005ms
[2025-05-23T19:58:38,180-05:00] <launcher> INFO  startup - Initiating startup
[2025-05-23T19:58:38,441-05:00] <launcher> INFO  system - ======================================================================
[2025-05-23T19:58:38,441-05:00] <launcher> INFO  system - UniFi 9.0.114 (build atag_9.0.114_28033 - release/release) is started
[2025-05-23T19:58:38,441-05:00] <launcher> INFO  system - Environment: UniFi-OS[false], UniFi-Cloud[false], UniFi-MongoService[false]
[2025-05-23T19:58:38,441-05:00] <launcher> INFO  system - ======================================================================
[2025-05-23T19:58:38,442-05:00] <launcher> INFO  system - BASE dir:/usr/lib/unifi
[2025-05-23T19:58:38,444-05:00] <launcher> INFO  system - Current System IP: 192.168.118.6
[2025-05-23T19:58:38,444-05:00] <launcher> INFO  system - Hostname: 706463bbc92a
[2025-05-23T19:58:38,444-05:00] <launcher> INFO  system - ubic.env: prod
[2025-05-23T19:58:38,444-05:00] <launcher> INFO  system - System loaded
[2025-05-23T19:58:38,595-05:00] <launcher> INFO  mongo  - Connected to database (v8.0.10-rc0@mongodb://unifi:sdf@unifi-db:27017/unifi?tls=false&authSource=admin, journal enabled)
[2025-05-23T19:58:38,597-05:00] <launcher> WARN  startup -   component[mongoRuntimeService] initialization took 134ms
[2025-05-23T19:58:38,677-05:00] <launcher> INFO  db     - Starting database service initialization...
[2025-05-23T19:58:38,683-05:00] <launcher> INFO  db     - *** Factory Default *** Database exists. Clean it
[2025-05-23T19:58:38,773-05:00] <launcher> INFO  db     - Database service initialized...
[2025-05-23T19:58:38,775-05:00] <launcher> INFO  stat   - *** Factory Default *** Stat Database exists. Clean it


### Expected Behavior

Server should start.

### Steps To Reproduce

Ran docker compose up -d and waited for server to start.  Pulled up the web page in the browser and the unifi application service restarts.

### Environment

```markdown
- OS:
- How docker service was installed:
```

### CPU architecture

x86-64

### Docker creation

```bash
docker compose up -d
```

### Container logs

```bash
docker logs unifi-network-application 
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1007
User GID:    1007
───────────────────────────────────────
Linuxserver.io version: 9.0.114-ls81
Build-date: 2025-02-25T17:35:24+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1007
User GID:    1007
───────────────────────────────────────
Linuxserver.io version: 9.0.114-ls81
Build-date: 2025-02-25T17:35:24+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions