Skip to content

[BUG] Web context failed to initialize #167

@gabrieleturchi

Description

@gabrieleturchi

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Running v9.5.21-ls106 under kubernetes I have this error:

...
User UID: 911
User GID: 911
───────────────────────────────────────
Linuxserver.io version: v9.5.21-ls106
Build-date: 2025-10-21T17:56:54+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Exception in thread "launcher" java.lang.NullPointerException: Web context failed to initialize
at java.base/java.util.Objects.requireNonNull(Objects.java:235)
at com.ubnt.net.supersuper.classObject(Unknown Source)
at com.ubnt.net.supersuper.ôÒ0000(Unknown Source)
at com.ubnt.service.C.OÔ0000(Unknown Source)
at com.ubnt.ace.Launcher.Ó00000(Unknown Source)
at com.ubnt.ace.Launcher.main(Unknown Source)

I have the same error using a different container (built by me, based on rocky9), but not with the previous version.

This is the content of the /status page:

{"meta":{"rc":"ok","server_version":"9.5.21","server_running":false,"db_migrating":false,"up":false,"app_context_status":"UniFi Network Application is starting up...","app_context_message":"Please wait a moment"},"data":[]}

Expected Behavior

unifi up and running

Steps To Reproduce

Start the pod

Environment

- OS: FedoraCore 42
- Kubernetes 1.33

CPU architecture

x86-64

Docker creation

apiVersion: apps/v1
kind: Deployment
...
      containers:
      - name: unifi
        image: lscr.io/linuxserver/unifi-network-application:v9.5.21-ls106
...
      - name: mongodb
        image: docker.io/mongo:8.2.1-noble

Container logs

[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:    911
User GID:    911
───────────────────────────────────────
Linuxserver.io version: v9.5.21-ls106
Build-date: 2025-10-21T17:56:54+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
Exception in thread "launcher" java.lang.NullPointerException: Web context failed to initialize
	at java.base/java.util.Objects.requireNonNull(Objects.java:235)
	at com.ubnt.net.supersuper.classObject(Unknown Source)
	at com.ubnt.net.supersuper.ôÒ0000(Unknown Source)
	at com.ubnt.service.C.OÔ0000(Unknown Source)
	at com.ubnt.ace.Launcher.Ó00000(Unknown Source)
	at com.ubnt.ace.Launcher.main(Unknown Source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions