Unifi Controller

Hi all, I need some guidance with running the UniFi Controller in Portainer on OMV. I followed the instructions as per the docker compose file on Docker but whenever I specify the PUID and PGID of the user that I want, the UniFi Controller doesn’t load properly. I can see from the logs and the errors i keep getting
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
Donate | LinuxServer.io
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1001
User GID: 100
───────────────────────────────────────
*** Setting Java memory limit to 1024 ***
*** Setting Java memory minimum to 1024 ***
[custom-init] No custom files found, skipping…
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

Below is my code in my docker compose file.

version: “2.1”
services:
unifi-controller:
image: lscr.io/linuxserver/unifi-controller:latest
container_name: unifi-controller
environment:
- PUID=1001
- PGID=100
- TZ=Australia/Melbourne
- MEM_LIMIT=1024 #optional
- MEM_STARTUP=1024 #optional
volumes:
- /srv/dev-disk-by-uuid-001f1c0c-9c80-481a-ad42-8bb2d4d8eabd/SSD_datastore/appdata/unificontroller/config:/config
ports:
- 8443:8443
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 1901:1900/udp #optional
- 8843:8843 #optional
- 8880:8880 #optional
- 6789:6789 #optional
- 5514:5514/udp #optional
restart: unless-stopped

when i run the id on my appadmin account which i am trying to use for the docker compose file for the Unifi Controller
id appadmin
uid=1001(appadmin) gid=100(users) groups=100(users),992(docker)

i checked the owner of the unificontroller folder and config folder belongs to my user appadmin
drwxrwsr-x+ 3 appadmin users 4096 Jul 10 20:56 unificontroller
drwxrwsr-x+ 2 appadmin users 4096 Jul 10 20:56 config

If I change the PUID and PGID to the root user account, I do not get the java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory.

I reckon it is a permission issue but not sure where should I change the permission to? Need some guidance . Thank you all.

Why did you open this thread when we asked you to check things in the discord thread you opened? I will close this and we will continue where you started.

apologies, i’ve just been informed this was in queue, but either way, we’ll continue in the discord thread you have. thanks :slight_smile: