GithubHelp home page GithubHelp logo

docker-unifi-controller's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

This image is deprecated. We will not offer support for this image and it will not be updated.

We recommend our unifi-network-application image instead: https://github.com/linuxserver/docker-unifi-network-application

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

The Unifi-controller software is a powerful, enterprise wireless software engine ideal for high-density client deployments requiring low latency and high uptime performance.

unifi-controller

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/unifi-controller:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf

Version Tags

This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.

Tag Available Description
latest Stable Unifi Controller releases.
mongoless Stable Unifi Controller releases without mongodb included.

Application Setup

From 2024-01-01 this image will be deprecated and it will no longer be updated. Please migrate to our Unifi Network Application image instead

See: https://info.linuxserver.io/issues/2023-09-06-unifi-controller for more information.

The webui is at https://ip:8443, setup with the first run wizard.

For Unifi to adopt other devices, e.g. an Access Point, it is required to change the inform IP address. Because Unifi runs inside Docker by default it uses an IP address not accessible by other devices. To change this go to Settings > System > Advanced and set the Inform Host to a hostname or IP address accessible by your devices. Additionally the checkbox "Override" has to be checked, so that devices can connect to the controller during adoption (devices use the inform-endpoint during adoption).

Please note, Unifi change the location of this option every few releases so if it's not where it says, search for "Inform" or "Inform Host" in the settings.

In order to manually adopt a device take these steps:

ssh ubnt@$AP-IP
set-inform http://$address:8080/inform

The default device password is ubnt. $address is the IP address of the host you are running this container on and $AP-IP is the Access Point IP address.

When using a Security Gateway (router) it could be that network connected devices are unable to obtain an ip address. This can be fixed by setting "DHCP Gateway IP", under Settings > Networks > network_name, to a correct (and accessable) ip address.

Strict reverse proxies

This image uses a self-signed certificate by default. This naturally means the scheme is https. If you are using a reverse proxy which validates certificates, you need to disable this check for the container.

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

docker-compose (recommended, click here for more info)

---
version: "2.1"
services:
  unifi-controller:
    image: lscr.io/linuxserver/unifi-controller:latest
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - MEM_LIMIT=1024 #optional
      - MEM_STARTUP=1024 #optional
    volumes:
      - /path/to/data:/config
    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
docker run -d \
  --name=unifi-controller \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e MEM_LIMIT=1024 `#optional` \
  -e MEM_STARTUP=1024 `#optional` \
  -p 8443:8443 \
  -p 3478:3478/udp \
  -p 10001:10001/udp \
  -p 8080:8080 \
  -p 1900:1900/udp `#optional` \
  -p 8843:8843 `#optional` \
  -p 8880:8880 `#optional` \
  -p 6789:6789 `#optional` \
  -p 5514:5514/udp `#optional` \
  -v /path/to/data:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/unifi-controller:latest

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 8443 Unifi web admin port
-p 3478/udp Unifi STUN port
-p 10001/udp Required for AP discovery
-p 8080 Required for device communication
-p 1900/udp Required for Make controller discoverable on L2 network option
-p 8843 Unifi guest portal HTTPS redirect port
-p 8880 Unifi guest portal HTTP redirect port
-p 6789 For mobile throughput test
-p 5514/udp Remote syslog port
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=Etc/UTC specify a timezone to use, see this list.
-e MEM_LIMIT=1024 Optionally change the Java memory limit (in Megabytes). Set to default to reset to default
-e MEM_STARTUP=1024 Optionally change the Java initial/minimum memory (in Megabytes). Set to default to reset to default
-v /config All Unifi data stored here

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running:

    docker exec -it unifi-controller /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f unifi-controller
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-controller
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/unifi-controller:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull unifi-controller
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d unifi-controller
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull lscr.io/linuxserver/unifi-controller:latest
  • Stop the running container:

    docker stop unifi-controller
  • Delete the container:

    docker rm unifi-controller
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Via Watchtower auto-updater (only use if you don't remember the original parameters)

  • Pull the latest image at its tag and replace it with the same env variables in one run:

    docker run --rm \
      -v /var/run/docker.sock:/var/run/docker.sock \
      containrrr/watchtower \
      --run-once unifi-controller
  • You can also remove the old dangling images: docker image prune

warning: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.

Image Update Notifications - Diun (Docker Image Update Notifier)

tip: We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-unifi-controller.git
cd docker-unifi-controller
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/unifi-controller:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 01.01.24: - Deprecate.
  • 05.09.23: - Add deprecation warning as per https://info.linuxserver.io/issues/2023-09-06-unifi-controller.
  • 04.09.23: - Bump JRE to 17 to support v7.5.
  • 02.05.23: - Cleanup apt-get install during build to reduce image size.
  • 18.03.23: - Add mongoless branch.
  • 10.03.23: - Test writing to /run/unifi and symlink to /config/run if it fails.
  • 20.02.23: - Migrate to s6v3, install deb package on build, fix permissions.
  • 23.01.23: - Exclude run from /config volume.
  • 30.11.22: - Bump JRE to 11.
  • 01.06.22: - Deprecate armhf.
  • 23.12.21: - Move min/max memory config from run to system.properties.
  • 22.12.21: - Move deb package install to first init to avoid overlayfs performance issues.
  • 13.12.21: - Rebase 64 bit containers to Focal.
  • 11.12.21: - Add java opts to mitigate CVE-2021-44228.
  • 11.06.21: - Allow for changing Java initial mem via new optional environment variable.
  • 12.01.21: - Deprecate the LTS tag as Unifi no longer releases LTS stable builds. Existing users can switch to the latest tag. Direct upgrade from 5.6.42 (LTS) to 6.0.42 (latest) tested successfully.
  • 17.07.20: - Rebase 64 bit containers to Bionic and Mongo 3.6.
  • 16.06.20: - Add logrotate.
  • 02.06.20: - Updated port list & descriptions. Moved some ports to optional.
  • 14.11.19: - Changed url for deb package to match new Ubiquity domain.
  • 29.07.19: - Allow for changing Java mem limit via new optional environment variable.
  • 23.03.19: - Switching to new Base images, shift to arm32v7 tag.
  • 10.02.19: - Initial release of new unifi-controller image with new tags and pipeline logic

docker-unifi-controller's People

Contributors

aptalca avatar chadhutchins182 avatar chbmb avatar dam09fr avatar drizuid avatar fermulator avatar gurligebis avatar henrikbacher avatar icymidnight avatar ironicbadger avatar j0nnymoe avatar linuxserver-ci avatar lonix avatar mdshw5 avatar mynameisbogdan avatar nemchik avatar neredera avatar paspo avatar patrickli avatar phendryx avatar roxedus avatar sebastianliebscher avatar sparklyballs avatar thelamer avatar thespad avatar thomasdezeeuw avatar tobbenb avatar westonmyers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-unifi-controller's Issues

chown -R abc:abc /usr/lib/unifi is takeing > 60s

Hi,

I run unify in kubernetes and had to increase the 'initialDelaySeconds' from 60 to 120 seconds because 'chown -R' is taking too long.

There are over 9000 root-owned files in /usr/lib/unifi which is causes significant delays each time unifi is started.

Would it be possible to chown in the Dockerfile perhaps?

I checked 'abc' on the base container where the uid is 911, on the unifi container it is 1000; not sure what is going on there.

Thanks

Default Unifi Controller Login Information

Can't figure out what is the username and password to use on the default configuration of the unifi controller with the dashboard configuration wizard. Am I missing something?

Linuxserver/unifi-controller: Can’t connect to mongodb

Dear friends,

I would like to connect mongodb within container “linuxserver/unifi-controller”.

When I try:

mongo --port 21117 or mongo --port 21017

I get: mongo command not found.
And really there is no “mongo” in /usr/bin, only “mongod”

But when I try:
mongod

I get:
root@d1eec6ac7353:/usr/lib/unifi/bin# mongod
2019-08-28T14:49:44.971+0000 I CONTROL [initandlisten] MongoDB starting : pid=1176 port=27017 dbpath=/data/db 64-bit host=d1eec6ac7353
2019-08-28T14:49:44.971+0000 I CONTROL [initandlisten] db version v3.4.20
2019-08-28T14:49:44.972+0000 I CONTROL [initandlisten] git version: 447847d93d6e0a21b018d5df45528e815c7c13d8
2019-08-28T14:49:44.972+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
2019-08-28T14:49:44.972+0000 I CONTROL [initandlisten] allocator: tcmalloc
2019-08-28T14:49:44.972+0000 I CONTROL [initandlisten] modules: none
2019-08-28T14:49:44.972+0000 I CONTROL [initandlisten] build environment:
2019-08-28T14:49:44.973+0000 I CONTROL [initandlisten] distmod: ubuntu1604
2019-08-28T14:49:44.973+0000 I CONTROL [initandlisten] distarch: x86_64
2019-08-28T14:49:44.973+0000 I CONTROL [initandlisten] target_arch: x86_64
2019-08-28T14:49:44.973+0000 I CONTROL [initandlisten] options: {}
2019-08-28T14:49:44.973+0000 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2019-08-28T14:49:44.974+0000 I NETWORK [initandlisten] shutdown: going to close listening sockets…
2019-08-28T14:49:44.974+0000 I NETWORK [initandlisten] shutdown: going to flush diaglog…
2019-08-28T14:49:44.974+0000 I CONTROL [initandlisten] now exiting
2019-08-28T14:49:44.974+0000 I CONTROL [initandlisten] shutting down with code:100

Could you please help me to connect to mongodb within container “linuxserver/unifi-controller”.

I appreciate your help!!!

Best regards,
Juri

linuxserver.io

Thanks, team linuxserver.io

s6-overlay-preinit: fatal: unable to chown /var/run/s6: Operation not permitted

linuxserver.io


Expected Behavior

When starting the container I expect it to start.

Current Behavior

The container fails to start, emitting only the following error:

s6-overlay-preinit: fatal: unable to chown /var/run/s6: Operation not permitted

This appears to have started in the past week following a newly published image on docker hub.

Steps to Reproduce

  1. Pull the latest image with docker-compose pull
  2. Start the image with docker-compose up
  3. See the error message emitted and the container exits.

Environment

OS: Debian 10
CPU architecture: amd64 (Ryzen)
How docker service was installed: docker-ce 5:19.03.133-0debian-buster amd64

Command used to create docker container (run/create/compose/screenshot)

$ cat-clean docker-compose.yml    
version: "2.4"
services:
  main:
    image: linuxserver/unifi-controller:latest
    userns_mode: host
    network_mode: host
    volumes:
      - ./config:/config
    restart: unless-stopped
$ docker-compose up -d

Docker logs

linuxserver/unifi-controller:latest_unifi-contro[5838]: s6-overlay-preinit: fatal: unable to chown /var/run/s6: Operation not permitted

Unable to upload Logo or Background image for Guest Portal

linuxserver.io


Expected Behavior

I should be able to upload Custom Logo and Background images for portal customization.
I am not sure if this a container issue or an issue with the Unifi software. I am happy to log an issue with Unifi if this is the case.

Current Behavior

When choosing either a custom logo or background image I get the following error: "There was an error uploading file. Please try again later."

Steps to Reproduce

  1. Enable the guest portal
  2. Change either the custom logo or background image under Portal Customization (png or jpg)
  3. Click apply changes
  4. A notification should appear with the error message

Environment

OS: Unraid 6.8.3
CPU architecture: x86_64
How docker service was installed: Community Applications

Command used to create docker container (run/create/compose/screenshot)

Using standard values provided by Community Applications
Using the latest tag, fresh install.

Docker logs

<webapi-790> ERROR [UploadServlet] - Servlet.service() for servlet [UploadServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageTypeSpecifier
	at com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1531) ~[?:1.8.0_275]
	at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1318) ~[?:1.8.0_275]
	at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1614) ~[?:1.8.0_275]
	at javax.imageio.ImageIO.read(ImageIO.java:1462) ~[?:1.8.0_275]
	at javax.imageio.ImageIO.read(ImageIO.java:1309) ~[?:1.8.0_275]
	at com.ubnt.ace.view.UploadServlet.service(Unknown Source) ~[ace.jar:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at com.ubnt.ace.view.AuthFilter.doFilter(Unknown Source) ~[ace.jar:?]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

MongoDB fails to start on Windows

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

It seems that mongodb can't start due to binding issues


Expected Behavior

Current Behavior

Unifi controller can't connect to database, due to mongodb fails to start
config/logs/server.log

[2019-12-28T15:58:52,434] <localhost-startStop-1> INFO  system - ======================================================================
[2019-12-28T15:58:52,435] <localhost-startStop-1> INFO  system - UniFi 5.12.35 (build atag_5.12.35_12979 - release/release) is started
[2019-12-28T15:58:52,435] <localhost-startStop-1> INFO  system - ======================================================================
[2019-12-28T15:58:52,436] <localhost-startStop-1> INFO  system - BASE dir:/usr/lib/unifi
[2019-12-28T15:58:52,473] <localhost-startStop-1> INFO  system - Current System IP: 172.24.0.2
[2019-12-28T15:58:52,474] <localhost-startStop-1> INFO  system - Hostname: c600a5f0dada
[2019-12-28T15:58:52,820] <localhost-startStop-1> INFO  db     - waiting for db connection...
[2019-12-28T15:58:54,173] <db-server> INFO  db     - DbServer stopped
[2019-12-28T15:58:58,313] <db-server> INFO  db     - DbServer stopped
[2019-12-28T15:59:02,460] <db-server> INFO  db     - DbServer stopped
[2019-12-28T15:59:06,603] <db-server> INFO  db     - DbServer stopped
[2019-12-28T15:59:10,744] <db-server> INFO  db     - DbServer stopped

config/logs/mongodb.log

2019-12-28T16:05:27.463+0100 I CONTROL  [main] ***** SERVER RESTARTED *****
2019-12-28T16:05:27.480+0100 I CONTROL  [initandlisten] MongoDB starting : pid=856 port=27117 dbpath=/usr/lib/unifi/data/db 64-bit host=c600a5f0dada
2019-12-28T16:05:27.482+0100 I CONTROL  [initandlisten] db version v3.4.23
2019-12-28T16:05:27.483+0100 I CONTROL  [initandlisten] git version: 324017ede1dbb1c9554dd2dceb15f8da3c59d0e8
2019-12-28T16:05:27.484+0100 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2019-12-28T16:05:27.485+0100 I CONTROL  [initandlisten] allocator: tcmalloc
2019-12-28T16:05:27.487+0100 I CONTROL  [initandlisten] modules: none
2019-12-28T16:05:27.488+0100 I CONTROL  [initandlisten] build environment:
2019-12-28T16:05:27.489+0100 I CONTROL  [initandlisten]     distmod: ubuntu1604
2019-12-28T16:05:27.490+0100 I CONTROL  [initandlisten]     distarch: x86_64
2019-12-28T16:05:27.491+0100 I CONTROL  [initandlisten]     target_arch: x86_64
2019-12-28T16:05:27.492+0100 I CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27117, unixDomainSocket: { pathPrefix: "/usr/lib/unifi/run" } }, storage: { dbPath: "/usr/lib/unifi/data/db" }, systemLog: { destination: "file", logAppend: true, path: "/usr/lib/unifi/logs/mongod.log" } }
2019-12-28T16:05:27.519+0100 E NETWORK  [initandlisten] listen(): bind() failed Operation not permitted for socket: /usr/lib/unifi/run/mongodb-27117.sock
2019-12-28T16:05:27.521+0100 E NETWORK  [initandlisten] Failed to set up sockets during startup.
2019-12-28T16:05:27.522+0100 E STORAGE  [initandlisten] Failed to set up listener: InternalError: Failed to set up sockets
2019-12-28T16:05:27.523+0100 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2019-12-28T16:05:27.524+0100 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
2019-12-28T16:05:27.525+0100 I CONTROL  [initandlisten] now exiting
2019-12-28T16:05:27.526+0100 I CONTROL  [initandlisten] shutting down with code:48

Steps to Reproduce

  1. Start with default settings on windows 10

Environment

OS: Windows 10 Pro (1909)
CPU architecture: x86_64
How docker service was installed:

With Docker-Compose.exe

version: '3.7'
services:
  unifi: # https://hub.docker.com/r/linuxserver/unifi-controller
    image: linuxserver/unifi-controller:amd64-latest
    container_name: unifi
    networks:
      - unifi
    ports:
      - "1900:1900/udp"
      - "3478:3478/udp"
      - "6789:6789/tcp"
      - "8080:8080/tcp"
      - "8081:8081/tcp"
      - "8443:8443/tcp"
      - "8843:8843/tcp"
      - "8880:8880/tcp"
      - "10001:10001/udp"
    volumes:
      - ./config:/config
    environment:
      - TZ=Europe/Copenhagen
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=1024M
    restart: unless-stopped
    
networks:
    unifi:

Command used to create docker container (run/create/compose/screenshot)

docker-compose.exe up -d

Docker logs

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

installing my own ssl cert

macOS 10.14.5 (on a 2018 Mac Mini)

docker create
--name=unifi-controller
--network ubnt
-e PUID=501
-e PGID=20
-p 10.0.0.3:3478:3478/udp
-p 10.0.0.3:10001:10001/udp
-p 10.0.0.3:8080:8080
-p 10.0.0.3:8081:8081
-p 10.0.0.3:8443:8443
-p 10.0.0.3:8843:8843
-p 10.0.0.3:8880:8880
-p 10.0.0.3:6789:6789
-v ~/Documents/docker/config/unifi:/config
--restart unless-stopped
linuxserver/unifi-controller

I migrated from a Cloud Key where I was using my own cert and I'm not sure how to install that same cert in the container.

read() failed on a timer FD. Error was: (9) Bad file descriptor

Expected Behavior

Unifi controller refuses to start but in the past it id run. This what happens with latest, apparently the docker logs are not very helpful.

Current Behavior

Steps to Reproduce

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
:0 TURN channel binding 0x4001 failed
:0 TURN channel binding 0x4008 failed
:0 TURN channel binding 0x4007 failed
:0 TURN channel binding 0x400b failed
:0 TURN channel binding 0x4004 failed
:0 TURN channel binding 0x4005 failed
:0 TURN channel binding 0x4006 failed
:0 TURN channel binding 0x4000 failed
:0 TURN channel binding 0x4009 failed
:0 TURN channel binding 0x4003 failed
:0 TURN channel binding 0x4002 failed
:0 webRtcId 1 connected in 0.494 seconds! This is STUN from 172.17.0.2:44001 -> 188.29.164.158:26056
:0 STUN timed out: STUN id:   6; fd: 228 172.17.0.2:44001 -> 188.29.164.158:26056 (eth0) DTLS id: 12 (88.97.26.43:12669) (PEER)
:0 webRtcId 1 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 read() failed on a timer FD. Error was: (9) Bad file descriptor
:0 TURN channel binding 0x4003 failed
:0 TURN channel binding 0x4001 failed
:0 TURN channel binding 0x4004 failed
:0 TURN channel binding 0x4000 failed
:0 TURN channel binding 0x4005 failed
:0 TURN channel binding 0x4002 failed
:0 webRtcId 2 failed to connect. Error was: (-2147090410) WebRTC connection timed out
:0 TURN channel binding 0x4002 failed
:0 TURN channel binding 0x4003 failed
:0 TURN channel binding 0x4007 failed
:0 TURN channel binding 0x4000 failed
:0 TURN channel binding 0x4005 failed
:0 TURN channel binding 0x4001 failed
:0 TURN channel binding 0x4004 failed
:0 webRtcId 3 connected in 0.215 seconds! This is STUN from 172.17.0.2:37715 -> 192.168.33.161:63346
:0 STUN timed out: STUN id:   3; fd: 224 172.17.0.2:37715 -> 192.168.33.161:63346 (eth0) DTLS id: 8 (192.168.33.201:37715) (PEER)
:0 webRtcId 3 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 read() failed on a timer FD. Error was: (9) Bad file descriptor
:0 TURN channel binding 0x4005 failed
:0 TURN channel binding 0x4001 failed
:0 TURN channel binding 0x4000 failed
:0 TURN channel binding 0x4004 failed
:0 TURN channel binding 0x4002 failed
:0 TURN channel binding 0x4003 failed
:0 webRtcId 4 connected in 0.402 seconds! This is STUN from 172.17.0.2:33001 -> 192.168.33.161:51351
:0 STUN timed out: STUN id:   3; fd: 224 172.17.0.2:33001 -> 192.168.33.161:51351 (eth0) DTLS id: 6 (192.168.33.201:33001) (PEER)
:0 webRtcId 4 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 read() failed on a timer FD. Error was: (9) Bad file descriptor
:0 TURN channel binding 0x4000 failed
:0 TURN channel binding 0x4004 failed
:0 TURN channel binding 0x4006 failed
:0 TURN channel binding 0x4005 failed
:0 TURN channel binding 0x4002 failed
:0 TURN channel binding 0x4009 failed
:0 TURN channel binding 0x4003 failed
:0 TURN channel binding 0x4001 failed
:0 TURN channel binding 0x4008 failed
:0 TURN channel binding 0x4007 failed
:0 webRtcId 5 connected in 0.176 seconds! This is STUN from 172.17.0.2:58287 -> 192.168.33.161:53491
:0 STUN timed out: STUN id:   3; fd: 226 172.17.0.2:58287 -> 192.168.33.161:53491 (eth0) DTLS id: 8 (192.168.33.201:58287) (PEER)
:0 webRtcId 5 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 read() failed on a timer FD. Error was: (9) Bad file descriptor
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
s6-svwait: fatal: timed out

spamming releases

Apparently there is a CI tog preoducing releases.... far too often. This is spamming anyone that dared to watch the project for new releases.

Please assure that a new release does not happen when someone corrects a typo ;)

Unifi controller keeps crashing / mongodb connection problems

Hey,

I installed your container on my NAS system. The container starts fine, but several times per day the Web admin UI doesn't respond anymore. Container is still running. The only thing I can do is restart the container, then it works again.

I attached my server log. It shows many mongodb connection issues. Any ideas how to fix that problem? Thanks in advance!
unifi.log

Unifi Controller logs in stdout

It would be nice to have the logging output of the unifi controller service pushed to stdout. This would allow for services like logspout to gather logs about the unif controller service and send them to things like papertrail, Elastic Stack or simply syslog destination.

As it stands right now, the internal logs of the controller are suppressed and not available when running things like docker logs... instead those logs seem to only be for the container itself not the service that it is running.

MongoDB fails to start: latest, LTS

Expected Behavior

  1. Run docker command equivalent to:
    host.vm.provision :docker do |d|
      d.run "linuxserver/unifi-controller:LTS",
        name: "unifi-controller",
        args: "-e PUID=1000 -e PGID=1000 -p 3478:3478/udp -p 10001:10001/udp -p 8080:8080 -p 8081:8081 -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 6789:6789 -v /config:/config  --restart unless-stopped"

(This is just a bit of Vagrant wrapping a docker call, it does the obvious thing).

  1. Connect to https://ip:8443
  2. ???
  3. Profit

Current Behavior

I run that command but I get two slightly different failures. In latest, I get a "connection reset by peer" or similar SSL error. In LTS, I reach a self-signed certificate "error" (I expect that), but when I click through it, I just wait and wait for the server.

I looked at the logs/server.log and I see:

[2020-01-18 15:18:32,023] <launcher> INFO  system - ======================================================================
[2020-01-18 15:18:32,024] <launcher> INFO  system - UniFi 5.6.42 (build atag_5.6.42_10376 - release) is started         
[2020-01-18 15:18:32,024] <launcher> INFO  system - ======================================================================
[2020-01-18 15:18:32,034] <launcher> INFO  system - BASE dir:/usr/lib/unifi                                             
[2020-01-18 15:18:32,051] <launcher> INFO  system - Current System IP: 172.17.0.2                                       
[2020-01-18 15:18:32,051] <launcher> INFO  system - Hostname: 8c48241e771b                                              
[2020-01-18 15:18:41,890] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:18:52,130] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:19:02,370] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:19:12,609] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:19:22,849] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:19:33,089] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:19:43,329] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:19:53,569] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:20:03,809] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:20:14,049] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:20:24,289] <db-server> ERROR system - [exec] error, rc=100                                               
[2020-01-18 15:20:34,529] <db-server> ERROR system - [exec] error, rc=100  

logs/mongodb.log repeats:

2020-01-18T15:28:56.281+0000 I CONTROL  [initandlisten] shutting down with code:100                                     
2020-01-18T15:29:00.324+0000 I CONTROL  [main] ***** SERVER RESTARTED *****                                             
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1416 port=27117 dbpath=/usr/lib/unifi/data/db 64-bit host=8c48241e771b
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] db version v3.4.23                                              
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] git version: 324017ede1dbb1c9554dd2dceb15f8da3c59d0e8           
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016                     
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] allocator: tcmalloc                                             
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] modules: none                                                   
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] build environment:                                              
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten]     distmod: ubuntu1604                                         
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten]     distarch: x86_64                                            
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten]     target_arch: x86_64                                         
2020-01-18T15:29:00.328+0000 I CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", http: { enabled: false },
port: 27117, unixDomainSocket: { pathPrefix: "/usr/lib/unifi/run" } }, storage: { dbPath: "/usr/lib/unifi/data/db" }, systemLog: { destination: "file", logAppend: true, path: "/usr/lib/unifi/logs/mongod.log" } }                              
2020-01-18T15:29:06.520+0000 I STORAGE  [initandlisten] exception in initAndListen: 98 Unable to lock file: /usr/lib/unifi/data/db/mongod.lock No locks available. Is a mongod instance already running?, terminating                            
2020-01-18T15:29:06.520+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...                   
2020-01-18T15:29:06.520+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...                             
2020-01-18T15:29:06.520+0000 I CONTROL  [initandlisten] now exiting                                                     
2020-01-18T15:29:06.520+0000 I CONTROL  [initandlisten] shutting down with code:100          

These errors are happening in both latest and LTS.

Steps to Reproduce

  1. Fresh install of unifi-controller:latest or LTS

Environment

OS: Debian 10
CPU architecture: x86_64
How docker service was installed: Vagrant installed it on a virtual machine

Command used to create docker container (run/create/compose/screenshot)

host.vm.provision :docker do |d|
  d.run "linuxserver/unifi-controller:LTS",
    name: "unifi-controller",
    args: "-e PUID=1000 -e PGID=1000 -p 3478:3478/udp -p 10001:10001/udp -p 8080:8080 -p 8081:8081 -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 6789:6789 -v /config:/config  --restart unless-stopped"

Docker logs

vagrant@unifi:~$ docker logs unifi-controller
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Devices not detected in bridge mode

Hey,

I am trying to setup UniFi controller in Docker container, but it does not detect any devices. I use the exact command specified in readme and controller itself is working. The docker ps command lists all ports. What is more I specify the same IP in Controller configuration and check 'Override inform host with controller hostname/IP'. Nevertheless, devices are still not seen.

On the other hand, everything works fine, when I use --net=host instead. But unfortunately, it listens on 0.0.0.0 then instead of single interface, what is unacceptable for me.

mongodump/mongorestore (mongo-tools) missing

Expected Behavior

For developing purposes I would like to use your unifi-controller docker image but unfortunately it is missing the mongodump and mongorestore tools which are usually part of the mongo-tools package.

Current Behavior

mongodump and mongorestore are missing binaries to be able to dump+restore the mongo database accordingly.

Steps to Reproduce

  1. try to start mongodump or mongorestore within the docker environment.

Timezone dropdown is blank on the last setup page

linuxserver.io


Expected Behavior

I should be able to complete the setup wizard.

Current Behavior

On the last step, the timezone dropdown is blank, so I can't select a timezone to complete the controller setup.

The browser JavaScript console lists two error messages:

Something went wrong! undefined main.3fb48c11846a8faf4b12.js:1:48814
Something went wrong! undefined main.3fb48c11846a8faf4b12.js:1:123742

The JavaScript calls the URL /v2/api/timezones, which loads a JSON list of timezones if I view in directly in a browser.

I'm thinking this might be an upstream bug in the UniFi Controller application

image

Steps to Reproduce

  1. Used the "Advanced setup" option in the initial controller setup wizard
  2. Advance to the last step

Environment

OS: Ubuntu Server 20.10
CPU architecture: arm64
How docker service was installed: docker-compose Ubuntu package

Command used to create docker container (run/create/compose/screenshot)

Same as the docker-compose.yaml in the README.

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    997
User gid:    997
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /config/data/keystore -destkeystore /config/data/keystore -deststoretype pkcs12".
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
WARN Unable to load properties from '/usr/lib/unifi/data/system.properties' - /usr/lib/unifi/data/system.properties (No such file or directory)

How to update libre elec docker pi-hole?

Hey, i did not found the pi-hole repo here? But in offical repo from libre elec is can install it.
But the Version is out of date:
Pi-hole Version v3.3.1 (Update available!) Web Interface Version v3.3 (Update available!) FTL Version v3.0 (Update available!)

i can update lastest docker:

LibreELEC:~ # docker pull pihole/pihole
Using default tag: latest
latest: Pulling from pihole/pihole
7673d18d2eef: Pull complete
a4896c184ff4: Pull complete
f1860d529eec: Pull complete
cd51115d771b: Pull complete
495bdd313aea: Pull complete
a700aebfcd6f: Pull complete
e9e1729f7539: Pull complete
472c32e9da06: Pull complete
Digest: sha256:6334fa34207b4f31d91f9ea488fd6d39e26e0d8847be2555202296496565405e
Status: Downloaded newer image for pihole/pihole:latest

but i cant update pi hole:

LibreELEC:~ # pihole -up
-sh: pihole: not found

can anybody help me?

Use https downloads from Ubiquiti and MonogoDB

I'm not sure what the history is behind using http endpoints for downloads, but it would be nice if you guys switched over to https.

Unifi deb package download can be moved to it, e.g.

https://dl.ubnt.com/unifi/5.10.20/unifi_sysvinit_all.deb

here:

"http://dl.ubnt.com/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb" && \

Unif package version lookup doesn't appear to have an https version 😞

UNIFI_VERSION=$(curl -sX GET http://dl-origin.ubnt.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \

MongoDB docs also has an https repo, e.g.
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list

here

echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" >> /etc/apt/sources.list.d/mongo.list && \

add healthchecks to image

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

It's one thing to have the container 'running' - but is the service really there?

Expected Behavior

A line in the dockerfile saying

HEALTHCHECK CMD ...

Current Behavior

nothing in there

Steps to Reproduce

Feel free to look at the dockerfile if you have to.

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

RancherOS v1.5.6

Command used to create docker container (run/create/compose/screenshot)

version: '3.6'

services:
  unifi:
    image: linuxserver/unifi-controller
    restart: unless-stopped
    ports:
     - "3478:3478/udp"
     - "10001:10001/udp"
     - "6789:6789"
     - "8080:8080"
     - "8880:8880"
     - "8443:8443"
     - "8843:8843"
    networks:
      - traefik_proxy
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.unifi.rule=Host(`${UNIFI_HOSTNAME}`)"
      - "traefik.http.routers.unifi.entrypoints=http"

      - "traefik.http.routers.unifi-secure.rule=Host(`${UNIFI_HOSTNAME}`)"
      - "traefik.http.routers.unifi-secure.entryPoints=https"
      - "traefik.http.routers.unifi-secure.tls=true"

      - "traefik.http.services.unifi-secure.loadbalancer.server.port=8443"
      - "traefik.http.routers.unifi.middlewares=unifi-redirect"
      - "traefik.http.middlewares.unifi-redirect.redirectscheme.scheme=https"
      - "traefik.http.services.unifi-secure.loadbalancer.server.scheme=https"
    environment:
      - TZ="Europe/Vienna"
    healthcheck:
      test: ["CMD", "curl", "-f", "-k", "https://localhost:8443"]
      interval: 1m
      timeout: 10s
      retries: 3
      start_period: 1m
    volumes:
      - type: volume
        source: unifi_data
        target: /config
        volume:
          nocopy: true

Docker logs

none needed

Adopting : Status Server Reject (http://192.168.1.4:8080/inform)


name: Bug report
about: Adopting : Status Server Reject (http://192.168.1.4:8080/inform)


linuxserver.io

Following a change in my docker's infrastructure (I went from a RPi4 to a NUC x86_64). I am no longer able to adopt my US-8 switch. But everything went well for my APs.
I did all possible resets, deletion, re adoption and even went to delete the switch in mongo db (via docker exec -it unifi /bin/bash -c "mongo --port 27117").

At the level of the switch I have this as an error:
Status: Server Reject (http://192.168.1.4:8080/inform)

Expected Behavior

Adopting success.

Steps to Reproduce

  1. Click on "adopt" in the Web UI.

Environment

OS: GNU/Linux 5.4.89-1
CPU architecture: x86_64
How docker service was installed: pacman -S docker

Command used to create docker container (compose)

version: "3.8"
services:
  unifi:
    image: linuxserver/unifi-controller
    container_name: unifi

    environment:
      - PUID=1000
      - PGID=1000

    volumes:
      - ./config:/config
      - ./backup:/usr/lib/unifi/data/backup

    ports:
      - 3478:3478/udp # STUN.
      - 10001:10001/udp # device discovery
      - 8080:8080 # device and controller communication.
      - 8443:8443 # controller GUI/API as seen in a web browser

Docker logs

[2021-01-23T10:13:51,861] <ubnt/tcp> WARN  dev    - [sshCommand exec] Execute SSH without host key verification!
[2021-01-23T10:13:52,765] <inform-1> ERROR [InformServlet] - Servlet.service() for servlet [InformServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at com.ubnt.net.InformServlet.Ò00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.service(Unknown Source) ~[ace.jar:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
[2021-01-23T10:14:08,119] <inform-1> ERROR [InformServlet] - Servlet.service() for servlet [InformServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at com.ubnt.net.InformServlet.Ò00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.service(Unknown Source) ~[ace.jar:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
[2021-01-23T10:14:23,497] <inform-2> ERROR [InformServlet] - Servlet.service() for servlet [InformServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at com.ubnt.net.InformServlet.Ò00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.service(Unknown Source) ~[ace.jar:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
[2021-01-23T10:14:38,866] <inform-1> ERROR [InformServlet] - Servlet.service() for servlet [InformServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at com.ubnt.net.InformServlet.Ò00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.service(Unknown Source) ~[ace.jar:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
[2021-01-23T10:14:54,239] <inform-2> ERROR [InformServlet] - Servlet.service() for servlet [InformServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at com.ubnt.net.InformServlet.Ò00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.o00000(Unknown Source) ~[ace.jar:?]
	at com.ubnt.net.InformServlet.service(Unknown Source) ~[ace.jar:?]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-embed-websocket-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.56.jar:8.5.56]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

Anyone have any ideas?

EOL of Unifi Network Controller V5.8.30 and Below

The end of life for the Unifi Network Controller versions 5.8.30 and lower are approaching in January, emails are now going out and I just received one myself. The summary of the content of this email is quoted below:

According to our records, you are using an out of date version of UniFi Network Controller. As of January 15, 2020, we will be shutting down certain legacy services which provide your network with remote management capabilities. These changes will affect all users with UniFi Network controllers version 5.8.30 or below. To avoid any disruption of service to your network, please log in to network.unifi.ui.com and update to the latest UniFi Network Controller by January 15th.

My controller is currently running the LTS 5.6.42 version of the docker and I have hesitated to move to latest simply because of some issues I have heard of for others moving to the new stable 6.x branch. It seems that with the end of life on January 15th the current LTS tag will no longer be accurate. Just wanted to bring this to the attention of the maintainers, feel free to close this issue if a plan is already in place.

launching with Xmx1024M may override user preferences in data system.properties

5.6.20 of unifi and higher may use more memory by default, there is a recommended way to change this in the system.properties file however the docker image forces a launch with Xmx1024M

I would recommend replacing this with environment variables for xms and xmx or simply remove the Xmx1024M parameter from the startup run command.

This can be a problem on SMALL VPS instances or Raspberry pi systems with only 1 GB of memory for everything.

https://community.ubnt.com/t5/UniFi-Wireless/NOTICE-UniFi-Controller-Memory-Usage-5-6-20/td-p/2137209

Unifi controller does not start when updating to version 6.0.36

linuxserver.io


Expected Behavior

Everything started

Current Behavior

The container starts and hangs on the following command: chown -R abc:abc /config /usr/lib/unifi

Steps to Reproduce

This happened when I updated to 6.0.36
I tried going back to 6.0.28 but that remained the same, which I find weird but ok.
Tried 6.0.36 again and went into the console and saw the chown command.
I tried to chown the webapps folder (only one not correct) in /usr/lib/unifi and was met with the same hang.
Killed chown -> unifi started

Environment

OS: unraid 6.9.0beta35
CPU architecture: x86_64
How docker service was installed:
The container was installed with latest tag, now 6.0.36-ls87

Command used to create docker container (run/create/compose/screenshot)

Community apps

Docker logs

It would stop at 20-config

today at 7:47 AM  [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
today at 7:47 AM  [s6-init] ensuring user provided files have correct perms...exited 0.
today at 7:47 AM  [fix-attrs.d] applying ownership & permissions fixes...
today at 7:47 AM  [fix-attrs.d] done.
today at 7:47 AM  [cont-init.d] executing container initialization scripts...
today at 7:47 AM  [cont-init.d] 01-envfile: executing... 
today at 7:47 AM  [cont-init.d] 01-envfile: exited 0.
today at 7:47 AM  [cont-init.d] 10-adduser: executing... 
today at 7:47 AM  
today at 7:47 AM  -------------------------------------
today at 7:47 AM            _         ()
today at 7:47 AM           | |  ___   _    __
today at 7:47 AM           | | / __| | |  /  \ 
today at 7:47 AM           | | \__ \ | | | () |
today at 7:47 AM           |_| |___/ |_|  \__/
today at 7:47 AM  
today at 7:47 AM  
today at 7:47 AM  Brought to you by linuxserver.io
today at 7:47 AM  -------------------------------------
today at 7:47 AM  
today at 7:47 AM  To support LSIO projects visit:
today at 7:47 AM  https://www.linuxserver.io/donate/
today at 7:47 AM  -------------------------------------
today at 7:47 AM  GID/UID
today at 7:47 AM  -------------------------------------
today at 7:47 AM  
today at 7:47 AM  User uid:    99
today at 7:47 AM  User gid:    100
today at 7:47 AM  -------------------------------------
today at 7:47 AM  
today at 7:47 AM  [cont-init.d] 10-adduser: exited 0.
today at 7:47 AM  [cont-init.d] 20-config: executing... 
today at 8:02 AM  /var/run/s6/etc/cont-init.d/20-config: line 23:   242 Terminated              chown -R abc:abc /config /usr/lib/unifi
today at 8:02 AM  [cont-init.d] 20-config: exited 143.
today at 8:02 AM  [cont-init.d] 30-keygen: executing... 
today at 8:02 AM  [cont-init.d] 30-keygen: exited 0.
today at 8:02 AM  [cont-init.d] 99-custom-scripts: executing... 
today at 8:02 AM  [custom-init] no custom files found exiting...
today at 8:02 AM  [cont-init.d] 99-custom-scripts: exited 0.
today at 8:02 AM  [cont-init.d] done.
today at 8:02 AM  [services.d] starting services
today at 8:02 AM  [services.d] done.

Container not working on a Qnap ARM based NAS

I tried to run the container on my QNAP Nas with ARM CPU ( https://www.qnap.com/de-de/product/ts-431xeu ) but the WebUI is not reachable.

This are the steps which I have done:

  1. create a new user
    New_User

  2. connect with putty to the Nas to get PUID, PGID
    Putty_PUID_PGID

  3. Create container at container station
    Create_Container_1
    Create_Container_3
    Create_Container_2
    Create_Container_Summery

4.) Run the new container
Run_Container_1
Run_Container_2

5.) Run Terminal
apt-get update
Terminal_apt_get_update
apt-get install execstack
Terminal_apt_get_install_execstack
execstack -c /usr/lib/unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so
Terminal_execstack

6.) Restart container

Actual data location

linuxserver.io


Might want to indicate the actual data location for unifi under /usr/lib/unifi/data
There you will find the autobackups and site data. Useful for keeping a 'local' backup out of the container as well as any persistent configs for the USG like openVPN.

Problem was after an upgrade to the latest image the unifi controller no longer recognized the files under /config and required a restore to change to the new version. In other words it started the container as if as if it was the first time.

docker exec unifi-controller ls -l /usr/lib/unifi/data
drwxr-xr-x 3 abc abc  4096 Jan 30 04:55 backup
lrwxrwxrwx 1 abc abc    12 Jan 30 04:55 data -> /config/data
drwxr-xr-x 4 abc abc 20480 Jan 30 05:17 db
-rw-r--r-- 1 abc abc 12409 Jan 30 04:58 firmware.json
-rw-r--r-- 1 abc abc  2225 Jan 30 04:56 keystore
drwxr-xr-x 3 abc abc  4096 Jan 30 04:51 sites
-rw-r--r-- 1 abc abc  1339 Jan 30 04:57 system.properties
-rw-r--r-- 1 abc abc  1339 Jan 30 04:57 system.properties.bk

Environment

OS: Ubuntu server bionic
CPU architecture: x86_64

Command used to create docker container (run/create/compose/screenshot)

docker create
--name=unifi-controller
-e PUID=1000
-e PGID=1000
-e MEM_LIMIT=1024M #optional
-p 192.168.1.46:3478:3478/udp
-p 10001:10001/udp
-p 192.168.1.46:8080:8080
-p 192.168.1.46:8081:8081
-p 192.168.1.46:8443:8443
-p 192.168.1.46:8843:8843
-p 192.168.1.46:8880:8880
-p 192.168.1.46:6789:6789
-v path to data:/config \ #original location (soft link). OR...
-v path to data:/usr/lib/unifi \ #for most everything. If you use this then skip the other two
-v path to data:/usr/lib/unifi/data/sites \ #for usg config file
-v path to data:/usr/lib/unifi/data/backup/autobackup \ #for backups
--restart unless-stopped
linuxserver/unifi-controller

Docker container issuing memory errors and not starting correctly

Host details

Operating System: Clear Linux OS
Kernel: Linux 5.0.13-752.native
Architecture: x86-64 (Intel NUC)

Docker details

Client:
Version: 18.06.2
API version: 1.38
Go version: go1.12.4
Git commit: e68fc7a215d7133c34aa18e3b72b4a21fd0c6136
Built: Thu Apr 18 01:44:38 2019
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 18.06.2
API version: 1.38 (minimum version 1.12)
Go version: go1.12.4
Git commit: e68fc7a215d7133c34aa18e3b72b4a21fd0c6136
Built: Thu Apr 18 01:44:49 2019
OS/Arch: linux/amd64
Experimental: false

Background

I have tested my configs on my mac docker instance and everything is working fine. However when I try creating the container in my main server (intel-NUC above^^) things just don't want to behave!
I've deployed with docker run / compose and Portainer, just to see if I'm doing anything stupid, still same outcomes, again replicating the same on my docker for mac (which works fine!)

I have also stripped the config to its bare bones and just literally trying to hit the https://:8443 screen. Still nothing and the same boot-up sequence with errors is observed.

Final throw at the dice, I have even tried to pass the following env-variables
JAVA_OPTS = -XX:+UnlockExperimentalVMOptions XX:+UseCGroupMemoryLimitForHeap thinking it might be related to the Java and Docker not working well together in v8 which is what I believe unifi works with in present controller version.

Log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 10-adduser: executing... ,
usermod: no changes,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
We gratefully accept donations at:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,

User uid:    911,
User gid:    911,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 20-config: executing... ,
[cont-init.d] 20-config: exited 0.,
[cont-init.d] 30-keygen: executing... ,
library initialization failed - unable to allocate file descriptor table - out of memory/var/run/s6/etc/cont-init.d/30-keygen: line 7:   220 Aborted                 (core dumped) keytool -genkey -keyalg RSA -alias unifi -keystore /config/data/keystore -storepass aircontrolenterprise -keypass aircontrolenterprise -validity 1825 -keysize 4096 -dname "cn=unifi",
chown: cannot access '/config/data/keystore': No such file or directory,
[cont-init.d] 30-keygen: exited 1.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom scripts found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
library initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of 

The library initialization failed - unable to allocate file descriptor table - out of memory starts to cycle on and on after around 2min of container start.

My simple config from Portainer screen grab

Screenshot 2019-05-09 at 11 22 03

Not entirely sure if this is related to issue #2?

I am also getting exactly the same results with unifi-video controller, however I feel its too much of a coincidence that these are the only java containers in my environment and both are failing to start properly on my server.

Any guidance/wisdom would be greatly appreciated :)

Multiple Controllers on a Single Host + SWAG

Hello All,

Not so much an 'issue' here, more as a how-to.

Does anyone have experience running this with multiple controllers on a single host? The scenario is i'm looking to host my controller as well as additional clients controllers. This is also utilizing linuxserver/swag for reverse proxying each clients URL.

Example:

unifi.clientA.com resolves to a controller
unifi.clientB.com resolves to a separate controller
unifi.clientC.com resolves to a separate controller

etc.

Thank you!

Really high memory usage on Latest after a few days and climbing

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

The Unifi Controller Docker keeps climbing in memory usage eventually eating up all the free memory in the system causing issues with other Dockers or VM's running on the same system.


Expected Behavior

Should stay pretty low on memory usage and not keep climbing

Current Behavior

High climbing memory usage, need to restart container periodically to re-claim memory

Screenshot of Grafana tracking memory usage:
https://drive.google.com/file/d/1ancxqaDRHbrtY_3u_Uw9Cw3Z6wol9_ow/view?usp=sharing

Steps to Reproduce

  1. Run Container
  2. Leave for a few days
  3. Watch Memory usage climb

Environment

OS: UnRaid 6.8.3 (Nvidia)
CPU architecture: x86_64
How docker service was installed:
Default UnRaid Docker Service

Command used to create docker container (run/create/compose/screenshot)

Using standard build from UnRaid Community Applications, not doing anything special

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Update dependencies

Thanks for a great docker image!

I looked into the dependencies and found that it runs on MongoDB 3.4 and Java 8. These could/should be replaced/updated with MongoDB 3.6 and Java 11 instead IMHO.

Regarding MongoDB 3.6, that just got supported in Unifi, and regarding Java 11, you need to change the unifi.service to this.

It would also be nice to add a text editor, like nano for example.

I fail to get internet connectivity from within the Docker, but maybe that's another issue?

Feature request: Silence requests for data sharing after first denial

linuxserver.io


Expected Behavior

I open the controller and can use it right away

Current Behavior

Updates are more frequent than my ferequency of opening the controller website, this means I am presented with the "Do you want send us data" every time I have a quick peek at my network.

Steps to Reproduce

  1. Update dockers (in my case docker-compose pull, docker-compose up -d)
  2. Open the site (like ip.addr:8443)
  3. Be presented with the dialog: Please share data

Environment

**OS:Linux 18.04, Docker
CPU architecture: x86_64
How docker service was installed:

Using the recommended dokcer-compose lines

Command used to create docker container (run/create/compose/screenshot)

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

Docker logs

No logs needed.

Installation stuck on step 6/6, no timezones to select.

linuxserver.io

I cannot get through the advanced installation, because there are no timezones available.


Expected Behavior

Go through step 6 of 6 (Advanced) and finish the installation

Current Behavior

There are no timezones to select, so the installation cannot continue

image

Steps to Reproduce

  1. Step 1 of 6 -> tick box and click next
  2. Step 2 of 6 -> advanced setup -> disable both radios -> fill in local admin details -> click next
  3. Step 3 of 6 (Advanced) -> click next
  4. Step 4 of 6 (Advanced) -> "You have no devices" -> click next
  5. Step 5 of 6 (Advanced) -> Enter WIFI credentials -> click next
  6. Step 6 of 6 (Advanced) -> Select Country. Timezone select list is empty. When I click Finish, nothing happens.

Environment

OS: Ubuntu 20.04.1
CPU architecture: x86_64
How docker service was installed: Using this image in my kubernetes (microk8s) setup.

Browser console log

image
image

Kubernetes config

values.yaml

unifi:
  name: unifi
  replicaCount: 1
  image:
    repository: linuxserver/unifi-controller
    tag: latest
    pullPolicy: Always
  env:
    - name: PUID
      value: "1000"
    - name: PGID
      value: "1000"
  volumes:
    - name: config-volume
      hostPath:
        path: "/home/user/config/unifi"
        type: Directory
  volumeMounts:
    - name: config-volume
      mountPath: "/config"
  persistence: {}
  resources: {}
  nodeSelector: {}
  tolerations: []
  affinity: {}

unifi.deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.unifi.name }}
  labels:
    app: {{ .Values.unifi.name }}
    release: {{ .Release.Name }}
spec:
  replicas: {{ .Values.unifi.replicaCount }}
  selector:
    matchLabels:
      app: {{ .Values.unifi.name }}
      release: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app: {{ .Values.unifi.name }}
        release: {{ .Release.Name }}
    spec:
      volumes:
{{ toYaml .Values.unifi.volumes | indent 6 }}
      containers:
        - name: {{ .Chart.Name }}
          image: "{{ .Values.unifi.image.repository }}:{{ .Values.unifi.image.tag }}"
          imagePullPolicy: {{ .Values.unifi.image.pullPolicy }}
          env:
{{ toYaml .Values.unifi.env | indent 12 }}
          volumeMounts:
{{ toYaml .Values.unifi.volumeMounts | indent 12 }}
          resources:
{{ toYaml .Values.unifi.resources | indent 12 }}
    {{- with .Values.unifi.nodeSelector }}
      nodeSelector:
{{ toYaml . | indent 8 }}
    {{- end }}
    {{- with .Values.unifi.affinity }}
      affinity:
{{ toYaml . | indent 8 }}
    {{- end }}
    {{- with .Values.unifi.tolerations }}
      tolerations:
{{ toYaml . | indent 8 }}
    {{- end }}

unifi.service.yaml

apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.unifi.name }}
  labels:
    release: {{ .Release.Name }}
spec:
  type: ClusterIP
  ports:
    - port: 3478
      protocol: UDP
      name: stun
    - port: 10001
      protocol: UDP
      name: ap-discovery
    - port: 8080
      name: device-communication
    - port: 8443
      name: web-admin
    - port: 1900
      protocol: UDP
      name: controller-discoverable-l2
    - port: 8843
      name: guest-portal-https
    - port: 8880
      name: guest-portal-http
    - port: 6789
      name: mobile-throughput-test
    - port: 5541
      name: remote-syslog
  selector:
    app: {{ .Values.unifi.name }}
    release: {{ .Release.Name }}

Container logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /config/data/keystore -destkeystore /config/data/keystore -deststoretype pkcs12".
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Cannot save setting

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

Setting should be saved and persistent.

Current Behavior

Settings are not saved and not persistent.

Steps to Reproduce

  1. Does not matter which settings, nothing is saved.

Environment

OS:

CentOS 8.1

CPU architecture: x86_64/arm32/arm64

x86_64

How docker service was installed:

docker-compose

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d

Docker logs

root@service1:~/work/unifi # docker logs unifi-controller
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/

GID/UID

User uid: 993
User gid: 990

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Adoption Fails without Ticking Extra Checkbox

The README very helpfully mentions that you have to change the Controller Hostname/IP. Unfortunately it doesn't mention that you need to tick the checkbox labelled:

Override inform host with controller hostname/IP

I think it would be good to amend the README to include that information. Perhaps a previous version of the controller didn't have that checkbox?

Anyway thanks for the nice project (removed a massive dependency headache of installing the controller on my host distro).

linuxserver/unifi-controller do not start

I'm starting the container on :latest
It takes ages to start.

Am I the only one with this behaviour ?
Every restart of the container take about 3 minutes.

Looks like the S6 processes are way too long to work with I do not know what.

# docker exec -ti unifi_controller.1.v9ra1agu8vinkmw6nrzzagntg ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 s6-svscan -t0 /var/run/s6/services
   30 ?        S      0:00 foreground  if   /etc/s6/init/init-stage2-redirfd   f
   31 ?        S      0:00 s6-supervise s6-fdholderd
   42 ?        S      0:00 if  /etc/s6/init/init-stage2-redirfd  foreground   if
   43 ?        S      0:00 foreground  if   if    s6-echo    -n    --    [s6-ini
   49 ?        S      0:00 if  if  -t   s6-test   -d   /var/run/s6/etc/cont-init
  178 ?        S      0:00 if  pipeline   s6-ls   -0   --   /var/run/s6/etc/cont
  181 ?        S      0:00 forstdin -o 0 -0 -- i importas -u i i if  s6-echo  --
  182 ?        Z      0:00 [s6-ls] <defunct>
  183 ?        Z      0:00 [s6-sort] <defunct>
  204 ?        S      0:00 foreground  /var/run/s6/etc/cont-init.d/20-config  im
  206 ?        S      0:00 bash /var/run/s6/etc/cont-init.d/20-config
  215 ?        D      0:00 chown -R abc:abc /config /usr/lib/unifi
  221 pts/0    Rs+    0:00 ps ax

Didn't have time to dig into it yet.

Do you plan to add 6.x branch?

There is new version of controller being developed by Ubiquity - https://community.ui.com/releases/UniFi-Network-Controller-6-0-18/5869a608-5e12-4df8-ab1b-674a906d996d

And since it is a simple change of UNIFI_VERSION, would you consider adding a branch for it?
For now, I've built the image locally with --build-arg UNIFI_VERSION=6.0.18-2f53410e48 and pushed to my own dockerhub repo, but it would be really good to be able to install it from linuxserver/unifi-controller :-)

MongoDB fails to start on FAT32

Expected Behavior

MongoDB (and thus Unifi Controller) should work on FAT32

Current Behavior

MongoDB does not start on FAT32

Steps to Reproduce

  1. Map the /config directory to a directory on a FAT32 filesystem (in this case, a USB drive)

Environment

OS: Rasbian 10 Buster
CPU architecture: arm32
How docker service was installed: Docker's linux install script

Command used to create docker container (run/create/compose/screenshot)

    unifi-controller:
         image: linuxserver/unifi-controller
         container_name: unifi-controller
         environment:
             - PUID=1000
             - PGID=1000
         volumes:
             - ./unifi-controller-config:/config
         ports:
             - 3478:3478/udp
             - 10001:10001/udp
             - 8080:8080
             - 8081:8081
             - 8443:8443
             - 8843:8843
             - 8880:8880
             - 6789:6789
         restart: unless-stopped

Docker logs

[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
OpenJDK Client VM warning: You have loaded library /usr/lib/unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.

MongoDB Log

... server restarts several times ...

2020-01-11T17:56:56.482+0000 ***** SERVER RESTARTED *****
2020-01-11T17:56:56.488+0000 [initandlisten] MongoDB starting : pid=451 port=27117 dbpath=/usr/lib/unifi/data/db 32-bit host=51c62fd5afea
2020-01-11T17:56:56.488+0000 [initandlisten] 
2020-01-11T17:56:56.489+0000 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
2020-01-11T17:56:56.489+0000 [initandlisten] **       32 bit builds are limited to less than 2GB of data (or less with --journal).
2020-01-11T17:56:56.489+0000 [initandlisten] **       Note that journaling defaults to off for 32 bit and is currently off.
2020-01-11T17:56:56.489+0000 [initandlisten] **       See http://dochub.mongodb.org/core/32bit
2020-01-11T17:56:56.489+0000 [initandlisten] 
2020-01-11T17:56:56.489+0000 [initandlisten] db version v2.6.10
2020-01-11T17:56:56.489+0000 [initandlisten] git version: nogitversion
2020-01-11T17:56:56.489+0000 [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2020-01-11T17:56:56.489+0000 [initandlisten] build info: Linux kishi10 3.2.0-84-highbank #121-Ubuntu SMP PREEMPT Tue May 5 19:44:15 UTC 2015 armv7l BOOST_LIB_VERSION=1_58
2020-01-11T17:56:56.489+0000 [initandlisten] allocator: tcmalloc
2020-01-11T17:56:56.489+0000 [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27117, unixDomainSocket: { pathPrefix: "/usr/lib/unifi/run" } }, storage: { dbPath: "/usr/lib/unifi/data/db" }, systemLog: { destination: "file", logAppend: true, path: "/usr/lib/unifi/logs/mongod.log" } }
2020-01-11T17:57:06.137+0000 [initandlisten] Assertion: 10446:mmap: can't map area of size 0 file: /usr/lib/unifi/data/db/local.ns
2020-01-11T17:57:06.159+0000 [initandlisten] 0x7639be 0x72180a 0x70a5f0 0x70a68c 0x72707a 0x723dc2 0x5cbabc 0x5f6dc6 0x29c004 0x29f6fa 0x2afeb4 0x2b002c 0x463e92 0x421efc 0x1ee180 0x1ef75c 0x1f009c 0x1c4f8c 0xb67248aa 
 bin/mongod(_ZN5mongo15printStackTraceERSo+0x25) [0x7639be]
 bin/mongod(_ZN5mongo10logContextEPKc+0x15d) [0x72180a]
 bin/mongod(_ZN5mongo11msgassertedEiPKc+0x8f) [0x70a5f0]
 bin/mongod(_ZN5mongo11msgassertedEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x7) [0x70a68c]
 bin/mongod(_ZN5mongo16MemoryMappedFile3mapEPKcRyi+0x62d) [0x72707a]
 bin/mongod(_ZN5mongo16MemoryMappedFile14mapWithOptionsEPKci+0x5d) [0x723dc2]
 bin/mongod(_ZN5mongo17DurableMappedFile4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb+0xab) [0x5cbabc]
 bin/mongod(_ZN5mongo14NamespaceIndex5_initEv+0xad) [0x5f6dc6]
 bin/mongod(_ZN5mongo8DatabaseC1EPKcRbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x233) [0x29c004]
 bin/mongod(_ZN5mongo14DatabaseHolder11getOrCreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_Rb+0x649) [0x29f6fa]
 bin/mongod(_ZN5mongo6Client7Context11_finishInitEv+0x2b) [0x2afeb4]
 bin/mongod(_ZN5mongo6Client7ContextC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_b+0x67) [0x2b002c]
 bin/mongod(_ZN5mongo8runCountERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7BSONObjERS5_Ri+0x49) [0x463e92]
 bin/mongod(_ZN5mongo14DBDirectClient5countERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7BSONObjEiii+0x6f) [0x421efc]
 bin/mongod(_ZN5mongo33checkIfReplMissingFromCommandLineEv+0xd3) [0x1ee180]
 bin/mongod(_ZN5mongo14_initAndListenEi+0x5bf) [0x1ef75c]
 bin/mongod(_ZN5mongo13initAndListenEi+0x13) [0x1f009c]
 bin/mongod(main+0x197) [0x1c4f8c]
 /lib/arm-linux-gnueabihf/libc.so.6(__libc_start_main+0x9d) [0xb67248aa]
2020-01-11T17:57:06.160+0000 [initandlisten] warning database /usr/lib/unifi/data/db local could not be opened
2020-01-11T17:57:06.160+0000 [initandlisten] DBException 10446: mmap: can't map area of size 0 file: /usr/lib/unifi/data/db/local.ns
2020-01-11T17:57:06.160+0000 [initandlisten] exception in initAndListen: 10446 mmap: can't map area of size 0 file: /usr/lib/unifi/data/db/local.ns, terminating
2020-01-11T17:57:06.160+0000 [initandlisten] dbexit: 
2020-01-11T17:57:06.160+0000 [initandlisten] shutdown: going to close listening sockets...
2020-01-11T17:57:06.160+0000 [initandlisten] shutdown: going to flush diaglog...
2020-01-11T17:57:06.160+0000 [initandlisten] shutdown: going to close sockets...
2020-01-11T17:57:06.161+0000 [initandlisten] shutdown: waiting for fs preallocator...
2020-01-11T17:57:06.161+0000 [initandlisten] shutdown: closing all files...
2020-01-11T17:57:06.161+0000 [initandlisten] closeAllFiles() finished
2020-01-11T17:57:06.161+0000 [initandlisten] shutdown: removing fs lock...
2020-01-11T17:57:06.161+0000 [initandlisten] dbexit: really exiting now

Unifi controller opened on port 8443 doesn't work, localhost refused to connect when network_mode: host is turned on.

linuxserver.io


Expected Behavior

Unifi Controller should open and work fine when accessed on port 8443 or 8080 as it would when not run in network_mode: host

Current Behavior

Unifi Controller doesn't work on port 8443 and says port 8080 isn't available when it is available

Steps to Reproduce

Environment

OS: Ubuntu 18.04 LTS
CPU architecture: ARM64
How docker service was installed:Official Repo

Command used to create docker container (run/create/compose/screenshot)

unifi-controller:
    image: linuxserver/unifi-controller
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=1024M #optional
    volumes:
      - /home/wwology/docker/unifi-controller/config:/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 #optional
    restart: unless-stopped

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /config/data/keystore -destkeystore /config/data/keystore -deststoretype pkcs12".
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
WARN Unable to load properties from '/usr/lib/unifi/data/system.properties' - /usr/lib/unifi/data/system.properties (No such file or directory)
Port 8080 not available
Port 8080 not available
Port 8080 not available
Port 8080 not available
Port 8080 not available
Port 8080 not available
Port 8080 not available
Port 8080 not available

making :latest the "stable" branch

linuxserver.io

Thanks, team linuxserver.io

  • unifi make great hardware but total crap software
  • making :latest , default tag makes it likely that upbreaks will occur whenever they vomit up a new release.
  • seeing as there is almost always never a downgrade option that is easy, effectively breaks people's installs.
  • plus you now unwittingly update EVERYONE using current latest , away from LTS....
  • most people are just gonna pull the latest everytime there is an update......

30-keygen failed on fresh Raspberry Pi 4 Ubuntu 20.04 64bit

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

The controller starts without issues

Current Behavior

Step 30-keygen fails to run

Steps to Reproduce

  1. Grab latest Ubuntu 20.04 64bit from canonical, install docker.io and docker-compose
  2. Create docker-compose.yml and docker-compose up

Environment

OS: Ubuntu 20.04 64bit
CPU architecture: arm64
How docker service was installed:

apt-get install docker.io docker-compose
everything else is default.
Raspberry Pi with 4G RAM was used.

Command used to create docker container (run/create/compose/screenshot)

mkdir unifi
vim compose.yml
docker-compose up

Not sure if related, but I cant get jacobalberty/unifi-docker to run either. both mongo 3.4 and 3.6 fails to start on arm64 with the error Assertion failure getrlimit

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 

-------------------------------------
_         ()
| |  ___   _    __
| | / __| | |  /  \ 
| | \__ \ | | | () |
|_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
library initialization failed - unable to allocate file descriptor table - out of memory/var/run/s6/etc/cont-init.d/30-keygen: line 7:   223 Aborted                 (core dumped) keytool -genkey -keyalg RSA -alias unifi -keystore /config/data/keystore -storepass aircontrolenterprise -keypass aircontrolenterprise -validity 1825 -keysize 4096 -dname "cn=unifi"
chown: cannot access '/config/data/keystore': No such file or directory
[cont-init.d] 30-keygen: exited 1.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
library initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed - unable to allocate file descriptor table - out of memorylibrary initialization failed

unifi-controller fails to start (fresh container)

linuxserver.io

unifi-controller will not start

Expected Behavior

unifi-controller should be available unter https://ip:8443 and let me configure things.

Current Behavior

nothing. The container gets stuck here











unifi               | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
unifi               | [s6-init] ensuring user provided files have correct perms...exited 0.
unifi               | [fix-attrs.d] applying ownership & permissions fixes...
unifi               | [fix-attrs.d] done.
unifi               | [cont-init.d] executing container initialization scripts...
unifi               | [cont-init.d] 01-envfile: executing...
unifi               | [cont-init.d] 01-envfile: exited 0.
unifi               | [cont-init.d] 10-adduser: executing...
unifi               |
unifi               | -------------------------------------
unifi               |           _         ()
unifi               |          | |  ___   _    __
unifi               |          | | / __| | |  /  \
unifi               |          | | \__ \ | | | () |
unifi               |          |_| |___/ |_|  \__/
unifi               |
unifi               |
unifi               | Brought to you by linuxserver.io
unifi               | -------------------------------------
unifi               |
unifi               | To support LSIO projects visit:
unifi               | https://www.linuxserver.io/donate/
unifi               | -------------------------------------
unifi               | GID/UID
unifi               | -------------------------------------
unifi               |
unifi               | User uid:    1000
unifi               | User gid:    1000
unifi               | -------------------------------------
unifi               |
unifi               | [cont-init.d] 10-adduser: exited 0.
unifi               | [cont-init.d] 20-config: executing...

#
##
### nothing will happen for QUITE some time, then this gets added to the log
##
#

unifi               | [cont-init.d] 30-keygen: executing...
unifi               |
unifi               | Warning:
unifi               | The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /config/data/keystore -destkeystore /config/data/keystore -deststoretype pkcs12".
unifi               | [cont-init.d] 30-keygen: exited 0.
unifi               | [cont-init.d] 99-custom-scripts: executing...
unifi               | [custom-init] no custom files found exiting...
unifi               | [cont-init.d] 99-custom-scripts: exited 0.
unifi               | [cont-init.d] done.
unifi               | [services.d] starting services
unifi               | [services.d] done.
unifi               | WARN Unable to load properties from '/usr/lib/unifi/data/system.properties' - /usr/lib/unifi/data/system.properties (No such file or directory)



Steps to Reproduce

I ran this

---
version: "2.1"
services:
  unifi-controller:
    image: linuxserver/unifi-controller:latest
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=1024M #optional
    #volumes:
    #  - <path to data>:/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 #optional
    restart: always

via docker-compose up. No matter how long I wait, nothing will happen after that last error line. I tried this on multiple different machines (1x arch linux, 1x debian linux, both producing the same result).

Environment

OS: debian 4.9.228-1
CPU architecture: x86_64
How docker service was installed:

via sudo apt install docker-ce docker-compose

Command used to create docker container (run/create/compose/screenshot)

see above

Docker logs

see above


Hi everybody,

I had the linuxserver/unifi-controller:latest running on my Synology DS918+ for ages until I started a fresh setup (in which I am still in). I wanted to move the controller from my NAS to my home server anyway, so I tried setting up a new container, but it will not work.

I can view the output as I started via docker-compose up (without -d) and via docker logs --since 30s unifi-controller. Both versions of the log are the same, and both stop as pasted above.

I made sure to not include the volume part to assure that this had nothing to do with user permissions. I also added

privileged: true

to my docker-compose.yaml file, but that did not make a difference. I ran as root instead of my regular user as well. I made sure to have the correct UID and GID.

What can I try to fix this? My NAS is still re-initializing the hard drives (and judging the speed, it will be done in about 24h), so I cannot just try if it will run there "real quick". Usually all my docker-compose files run without any issues, especially those linuxserver ones.

Thank you for your ideas :)

Container does not start

Unfortunately the container does not start. I copied your docker-compose to a file and tried to start it.
It keeps hanging at [cont-init.d] 20-config: executing...

root@nas: docker-compose up --force-recreate

Recreating unifi-controller ... done
Attaching to unifi-controller
unifi-controller | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
unifi-controller | [s6-init] ensuring user provided files have correct perms...exited 0.
unifi-controller | [fix-attrs.d] applying ownership & permissions fixes...
unifi-controller | [fix-attrs.d] done.
unifi-controller | [cont-init.d] executing container initialization scripts...
unifi-controller | [cont-init.d] 01-envfile: executing...
unifi-controller | [cont-init.d] 01-envfile: exited 0.
unifi-controller | [cont-init.d] 10-adduser: executing...
unifi-controller |
unifi-controller | -------------------------------------
unifi-controller | _ ()
unifi-controller | | | ___ _ __
unifi-controller | | | / | | | /
unifi-controller | | | _
\ | | | () |
unifi-controller | || |
/ || __/
unifi-controller |
unifi-controller |
unifi-controller | Brought to you by linuxserver.io
unifi-controller | -------------------------------------
unifi-controller |
unifi-controller | To support LSIO projects visit:
unifi-controller | https://www.linuxserver.io/donate/
unifi-controller | -------------------------------------
unifi-controller | GID/UID
unifi-controller | -------------------------------------
unifi-controller |
unifi-controller | User uid: 1000
unifi-controller | User gid: 1000
unifi-controller | -------------------------------------
unifi-controller |
unifi-controller | [cont-init.d] 10-adduser: exited 0.
unifi-controller | [cont-init.d] 20-config: executing...

What platforms support arm64, if any?

I am running unifi-controller on a raspberry pi 3B+. It was running successfully in 32 bit mode for a couple weeks - but then i ran into the mongodb 32bit data size problem:


Expected Behavior

unifi-controller should start in docker-compose.

Current Behavior

pi@unifi-controller:~/unifi $ docker-compose up
Starting unifi-controller ... done
Attaching to unifi-controller
unifi-controller exited with code 159

Steps to Reproduce

On the rpi, running raspbian, update and enable arm64

sudo apt-get update
sudo apt-get upgrade

vi /boot/config.txt:
add:
arm_64bit=1

sudo reboot

validate running arm64:

pi@unifi-controller:~ $ uname -a
Linux unifi-controller 4.19.97-v8+ #1294 SMP PREEMPT Thu Jan 30 13:27:08 GMT 2020 aarch64 GNU/Linux

Now, docker pull the arm64 version:

docker pull linuxserver/unifi-controller:arm64v8-latest
docker-compose up

docker-compose.yaml:

Environment

**OS: raspbian

pi@unifi-controller:~/unifi $ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

CPU architecture: x86_64/arm32/arm64
arm64, aarch64:

uname -a
Linux unifi-controller 4.19.97-v8+ #1294 SMP PREEMPT Thu Jan 30 13:27:08 GMT 2020 aarch64 GNU/Linux

How docker service was installed:
docker pull command above, as well as docker-compose.yaml

Command used to create docker container (run/create/compose/screenshot)

---
version: "2"
services:
  unifi-controller:
    image: linuxserver/unifi-controller:arm64v8-latest
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=768M #optional
    volumes:
      - /home/pi/unifi/data:/config
    ports:
      - 3478:3478/udp
      - 10001:10001/udp
      - 80:8080
      - 8080:8080
      - 8081:8081
      - 443:8443
      - 8843:8843
      - 8880:8880
      - 6789:6789
      - 27117:27117
    restart: unless-stopped

Docker logs

docker-compose up
Starting unifi-controller ... done
Attaching to unifi-controller
unifi-controller exited with code 159

Access point status keeps reverting to 'ADOPTING'

I have a basic Unifi Controller setup with 2 UniFi AP AC PRO access points. They connected just fine initially but keep reverting to ADOPTING state after a day. A restart of each access point gets them back to CONNECTED state.

We used to use a dedicated virtual machine (ESXi) instead of a Docker container for Unifi Controller and it was rock solid, never this issue.

Host OS: Ubuntu 18.04.2 LTS (in an ESXi VM)

Docker Compose:

version: "2"
services:
  unifi-controller:
    image: linuxserver/unifi-controller
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - /docker/unifi:/config
    ports:
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
      - 8081:8081
      - 8443:8443
      - 8843:8843
      - 8880:8880
      - 6789:6789
    restart: unless-stopped

Docker log output:

[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom scripts found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Login failed on Unifi controller in docker behind reverse proxy Traefik

I am trying to fix the login problem when accesing the Unifi Controller via Traefik at unifi.domain.nl.

Login form error:

Login error
There was an error making that request. Please try again later.

Console error:
POST https://unifi.domain.nl/api/login 403

When accessing the Unifi Controller via the local IP address https://192.168.1.162:8443 I am able to login.

  • I have added insecureSkipVerify = true to traefik.toml
  • 192.168.1.162 is filled in at the Controller Hostname/IP setting in the Unifi Controller software.

Docker compose:

  unifi-controller:
    image: linuxserver/unifi-controller
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - ${USERDIR}/docker/unifi:/config
    ports:
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
      - 8081:8081
      - 8443:8443
      - 8843:8843
      - 8880:8880
      - 6789:6789
    restart: unless-stopped

Traefik rule file:

[frontends]
  [frontends.unifi]
  backend = "unifi"
    [frontends.unifi.routes.hass]
    rule = "Host:unifi.domain.nl"
  passHostHeader = true
  passTLSCert = false
  priority = 10
  entrypoints = ["https"]
[backends]
  [backends.unifi]
    [backends.unifi.servers.server1]
    url = "https://192.168.1.162:8443"
    weight = 1

I do not have this kind of issues with other dockers, so I am trying the find some hints here.
Can anyone point me to a possible solution?

Some data requirements failed to load.

With the latest version (linuxserver/unifi-controller:5.13.32-ls70) I'm getting this error when I try to set the device fingerprint for a client:

2020-08-12T211227-pgat5

And if I check the XHR request from the browser console, it shows this error response:

{
    "errorCode": 404,
    "message": "Device list could not be found for folder"
}

It seems that the issue might be related to the CA certificates in the image: https://community.ui.com/questions/Device-Fingerprint-Feature-information/695b50b5-b2c7-49ac-9537-2356df1da6b9


Expected Behavior

The fingerprint request shouldn't fail, instead the device library should be shown…

Current Behavior

Something fails in the Unifi backend and a 404 response is returned to the fingerprint device list request.

Steps to Reproduce

  1. Use the 5.13.32-ls70 version of the image to run the controller
  2. Go to the Clients section
  3. Pick a client
  4. In the sidebar, Device Fingerprint -> Find Icon
  5. An error message is shown after a moment

Environment

OS: Debian 10 (buster)
CPU architecture: x86_64
How docker service was installed: Using apt (https://docs.docker.com/engine/install/debian/)

Command used to create docker container (run/create/compose/screenshot)

Docker compose was used (based on the provided example)

Docker logs

docker logs unifi-controller
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    109
User gid:    115
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
:0 Permanent error code on channel bind request: 403 - Forbidden IP
:0 All TURN channel bindings failed
:0 STUN id:   4; fd: 231 172.18.0.2:49600 -> 10.1.1.15:56633 (eth0) DTLS id: 15 (10.1.1.11:49600) (PEER) timed out
:0 webRtcId 1 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 Permanent error code on channel bind request: 403 - Forbidden IP
:0 All TURN channel bindings failed
:0 STUN id:   4; fd: 231 172.18.0.2:37154 -> 10.1.1.15:49286 (eth0) DTLS id: 9 (10.1.1.11:37154) (PEER) timed out
:0 webRtcId 2 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 All TURN channel bindings failed
:0 STUN id:   5; fd: 231 172.18.0.2:55141 -> 93.106.151.157:1442 (eth0) DTLS id: 11 (83.245.179.240:55141) (PEER) timed out
:0 webRtcId 3 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 All TURN channel bindings failed
:0 STUN id:   5; fd: 231 172.18.0.2:35940 -> 176.72.94.49:20306 (eth0) DTLS id: 11 (83.245.179.240:35940) (PEER) timed out
:0 webRtcId 4 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 Permanent error code on channel bind request: 403 - Forbidden IP
:0 All TURN channel bindings failed
:0 Permanent error code on channel bind request: 403 - Forbidden IP
:0 All TURN channel bindings failed
:0 STUN id:   4; fd: 234 172.18.0.2:47385 -> 10.1.1.15:49638 (eth0) DTLS id: 9 (10.1.1.11:47385) (PEER) timed out
:0 webRtcId 5 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 All TURN channel bindings failed
:0 STUN id:   4; fd: 247 172.18.0.2:58055 -> 10.1.1.15:61285 (eth0) DTLS id: 9 (10.1.1.11:58055) (PEER) timed out
:0 webRtcId 7 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 STUN id:   5; fd: 243 172.18.0.2:53764 -> 176.72.93.197:28922 (eth0) DTLS id: 11 (83.245.179.240:53764) (PEER) timed out
:0 webRtcId 8 terminated with code: (-2147090409) WebRTC connection interrupted from far side
:0 Permanent error code on channel bind request: 403 - Forbidden IP
:0 All TURN channel bindings failed
:0 STUN id:   4; fd: 235 172.18.0.2:39844 -> 10.1.1.15:53011 (eth0) DTLS id: 7 (10.1.1.11:39844) (PEER) timed out
:0 webRtcId 9 terminated with code: (-2147090409) WebRTC connection interrupted from far side
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    109
User gid:    115
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    109
User gid:    115
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    109
User gid:    115
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    109
User gid:    115
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called
s6-svwait: fatal: timed out
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

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

User uid:    109
User gid:    115
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Failing to launch under Fedora 30

On Fedora 30 the service is not coming up. It sits in a systemd-coredump loop using a high percentage of my CPU until the container is killed. The container logs indicate nothing of the unordinary, however a journalctl provides some useful information, which I have dumped below. You can see where the loop begins, and this continues forever until the container is killed.

Kernel version 5.0.16-300.fc30.x86_64
Docker version 18.06.3, build d7080c1

Jun 01 00:34:20 localhost a8ea84cc063d[623]: [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [s6-init] ensuring user provided files have correct perms...exited 0.
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [fix-attrs.d] applying ownership & permissions fixes...
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [fix-attrs.d] done.
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [cont-init.d] executing container initialization scripts...
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [cont-init.d] 10-adduser: executing... 
Jun 01 00:34:20 localhost audit[2975]: USER_ACCT pid=2975 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:container_t:s0:c453,c857 msg='op=changing /etc/group; group abc/1000 acct="abc" exe="/usr/sbin/groupmod" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:20 localhost audit[2975]: USER_ACCT pid=2975 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:container_t:s0:c453,c857 msg='op=modifying group acct="abc" exe="/usr/sbin/groupmod" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:20 localhost a8ea84cc063d[623]: usermod: no changes
Jun 01 00:34:20 localhost a8ea84cc063d[623]: 
Jun 01 00:34:20 localhost a8ea84cc063d[623]: -------------------------------------
Jun 01 00:34:20 localhost a8ea84cc063d[623]:           _         ()
Jun 01 00:34:20 localhost a8ea84cc063d[623]:          | |  ___   _    __
Jun 01 00:34:20 localhost a8ea84cc063d[623]:          | | / __| | |  /  \ 
Jun 01 00:34:20 localhost a8ea84cc063d[623]:          | | \__ \ | | | () |
Jun 01 00:34:20 localhost a8ea84cc063d[623]:          |_| |___/ |_|  \__/
Jun 01 00:34:20 localhost a8ea84cc063d[623]: 
Jun 01 00:34:20 localhost a8ea84cc063d[623]: 
Jun 01 00:34:20 localhost a8ea84cc063d[623]: Brought to you by linuxserver.io
Jun 01 00:34:20 localhost a8ea84cc063d[623]: We gratefully accept donations at:
Jun 01 00:34:20 localhost a8ea84cc063d[623]: https://www.linuxserver.io/donate/
Jun 01 00:34:20 localhost a8ea84cc063d[623]: -------------------------------------
Jun 01 00:34:20 localhost a8ea84cc063d[623]: GID/UID
Jun 01 00:34:20 localhost a8ea84cc063d[623]: -------------------------------------
Jun 01 00:34:20 localhost a8ea84cc063d[623]: 
Jun 01 00:34:20 localhost a8ea84cc063d[623]: User uid:    1000
Jun 01 00:34:20 localhost a8ea84cc063d[623]: User gid:    1000
Jun 01 00:34:20 localhost a8ea84cc063d[623]: -------------------------------------
Jun 01 00:34:20 localhost a8ea84cc063d[623]: 
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [cont-init.d] 10-adduser: exited 0.
Jun 01 00:34:20 localhost a8ea84cc063d[623]: [cont-init.d] 20-config: executing... 
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [cont-init.d] 20-config: exited 0.
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [cont-init.d] 30-keygen: executing... 
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [cont-init.d] 30-keygen: exited 0.
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [cont-init.d] 99-custom-scripts: executing... 
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [custom-init] no custom files found exiting...
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [cont-init.d] 99-custom-scripts: exited 0.
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [cont-init.d] done.
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [services.d] starting services
Jun 01 00:34:21 localhost a8ea84cc063d[623]: [services.d] done.
Jun 01 00:34:23 localhost audit[3026]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:container_t:s0:c453,c857 pid=3026 comm="java" exe="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" sig=6 res=1
Jun 01 00:34:23 localhost systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Jun 01 00:34:23 localhost systemd[1]: Started Process Core Dump (PID 3052/UID 0).
Jun 01 00:34:23 localhost audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-3052-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:23 localhost systemd-coredump[3053]: Removed old coredump core.java.1000.2d9b304aa2e44786a6bcb60c332e8102.6644.1559312782000000.lz4.
Jun 01 00:34:23 localhost systemd-coredump[3053]: Process 3026 (java) of user 1000 dumped core.
                                              
                                              Stack trace of thread 259:
                                              #0  0x00007f94924a4428 n/a (/lib/x86_64-linux-gnu/libc-2.23.so)
                                              #1  0x00007f9492a576ca n/a (ld-linux-x86-64.so.2)
Jun 01 00:34:23 localhost systemd[1]: [email protected]: Succeeded.
Jun 01 00:34:23 localhost audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-3052-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:24 localhost audit[3057]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:container_t:s0:c453,c857 pid=3057 comm="java" exe="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" sig=6 res=1
Jun 01 00:34:24 localhost systemd[1]: Started Process Core Dump (PID 3073/UID 0).
Jun 01 00:34:24 localhost audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@1-3073-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:25 localhost systemd-coredump[3074]: Removed old coredump core.java.1000.2d9b304aa2e44786a6bcb60c332e8102.6664.1559312784000000.lz4.
Jun 01 00:34:25 localhost systemd-coredump[3074]: Process 3057 (java) of user 1000 dumped core.
                                              
                                              Stack trace of thread 271:
                                              #0  0x00007f3852919428 n/a (/lib/x86_64-linux-gnu/libc-2.23.so)
                                              #1  0x00007f3852ecc6ca n/a (ld-linux-x86-64.so.2)
Jun 01 00:34:25 localhost audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@1-3073-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:25 localhost systemd[1]: [email protected]: Succeeded.
Jun 01 00:34:26 localhost audit[3076]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:container_t:s0:c453,c857 pid=3076 comm="java" exe="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" sig=6 res=1
Jun 01 00:34:26 localhost systemd[1]: Started Process Core Dump (PID 3093/UID 0).
Jun 01 00:34:26 localhost audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@2-3093-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:26 localhost systemd-coredump[3094]: Removed old coredump core.java.1000.2d9b304aa2e44786a6bcb60c332e8102.6684.1559312786000000.lz4.
Jun 01 00:34:27 localhost systemd-coredump[3094]: Process 3076 (java) of user 1000 dumped core.
                                              
                                              Stack trace of thread 283:
                                              #0  0x00007f8b3a186428 n/a (/lib/x86_64-linux-gnu/libc-2.23.so)
                                              #1  0x00007f8b3a7396ca n/a (ld-linux-x86-64.so.2)
Jun 01 00:34:27 localhost audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@2-3093-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:27 localhost systemd[1]: [email protected]: Succeeded.
Jun 01 00:34:28 localhost audit[3096]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:container_t:s0:c453,c857 pid=3096 comm="java" exe="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" sig=6 res=1
Jun 01 00:34:28 localhost systemd[1]: Started Process Core Dump (PID 3113/UID 0).
Jun 01 00:34:28 localhost audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@3-3113-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 01 00:34:28 localhost systemd-coredump[3114]: Removed old coredump core.java.1000.2d9b304aa2e44786a6bcb60c332e8102.6704.1559312787000000.lz4.
Jun 01 00:34:28 localhost systemd-coredump[3114]: Process 3096 (java) of user 1000 dumped core.
                                              
                                              Stack trace of thread 295:
                                              #0  0x00007f363b5b9428 n/a (/lib/x86_64-linux-gnu/libc-2.23.so)
                                              #1  0x00007f363bb6c6ca n/a (ld-linux-x86-64.so.2)
Jun 01 00:34:28 localhost audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@3-3113-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.