Unifi on truecharts

ChaosBlades

Contributor
Joined
Jul 4, 2015
Messages
137
It has been a while since the last post on this thread but I want to hopefully save someone some time.

set-inform did not work for me exactly. I needed to set-defaults to reset the AP and tell the controller to forget the device as well. Then send the set-inform command. Once it shows up and you tell it to adopt I needed to send the set-inform command about once every 5 seconds while refreshing the page until I finally got "Getting Ready". Also noticed the container trying to chown 999:999 /unifi but the operation was not permitted. I did this manually. Not sure if that was part of my problem.
 

ChaosBlades

Contributor
Joined
Jul 4, 2015
Messages
137

petzku

Cadet
Joined
Aug 28, 2017
Messages
2
I just got this to discover my devices nicely without any of that set-inform nonsense. All that I needed to do is to make sure that my local dns resolves hostname unifi to the ip that has unifi controllers' ports visible and bam the devices were adoptable.

-Petteri
 

Aviatorpaal

Dabbler
Joined
Mar 2, 2022
Messages
21
As long as your IP address or hostname (which ever you used when you initially did set-inform on the Unifi gear) remains the same, you can just restore from backup. No need to perform tens, hundreds or thousands of set-informs
 

Akshunhiro

Dabbler
Joined
Oct 27, 2016
Messages
35
Hi all, found this while searching for my issue as I'm trying to move containers to use host path as storage

Also stuck on the chown 999:999 /unifi issue but not sure where I should be manually changing permissions after seeing @ChaosBlades reply above

Tried in the UniFi "AppData" dataset I've created for it and also in the run folder that's already created but it's not picking it up

Even tried create the data and log folders before recursively chowning unifi

Also tried recreating the container with "Automatic Permissions" but that's not working either

My errors;
Code:
chown 999:999 /unifi
chown /unifi: operation not permitted
<docker-entrypoint> Starting unifi controller service.
mkdir: cannot create directory '/unifi/data': Permission denied
mkdir: cannot create directory '/unifi/log': Permission denied
 

Aviatorpaal

Dabbler
Joined
Mar 2, 2022
Messages
21
Hi all, found this while searching for my issue as I'm trying to move containers to use host path as storage

Also stuck on the chown 999:999 /unifi issue but not sure where I should be manually changing permissions after seeing @ChaosBlades reply above

Tried in the UniFi "AppData" dataset I've created for it and also in the run folder that's already created but it's not picking it up

Even tried create the data and log folders before recursively chowning unifi

Also tried recreating the container with "Automatic Permissions" but that's not working either

My errors;
Code:
chown 999:999 /unifi
chown /unifi: operation not permitted
<docker-entrypoint> Starting unifi controller service.
mkdir: cannot create directory '/unifi/data': Permission denied
mkdir: cannot create directory '/unifi/log': Permission denied
This works like a charm for me:

Screenshot 2023-03-01 at 18.05.08.png

Screenshot 2023-03-01 at 18.05.17.png
 

Aviatorpaal

Dabbler
Joined
Mar 2, 2022
Messages
21
Code:
root@truenas[/mnt/WDPool/unifi]# ls -l
total 18
drwxr-xr-x 5  999 docker 11 Mar  1 17:33 data
drwxr-xr-x 3  999 docker  6 Nov 30 23:15 log
drwxr-xr-x 2 root apps    2 Nov 30 23:06 run
 

Akshunhiro

Dabbler
Joined
Oct 27, 2016
Messages
35
Thanks so much! I couldn't get it to work with the options you've shown in the GUI (Automatic Permissions) but it's working now after recursively chowning the UniFi folder and setting root:apps on the run file.
 

Aviatorpaal

Dabbler
Joined
Mar 2, 2022
Messages
21
Awesome! Glad I could help
Thanks so much! I couldn't get it to work with the options you've shown in the GUI (Automatic Permissions) but it's working now after recursively chowning the UniFi folder and setting root:apps on the run file.
 

jaharmi

Cadet
Joined
Apr 25, 2019
Messages
5
I created datasets for "apps" and then "unifi" on a new TrueNAS Scale installation. I'm trying to deploy a UniFi app to use that, as per #27.

The app doesn't finish deploying with the Type of Storage set to "Host Path" and the Host Path set to tank/apps/unifi.

It did deploy for me when I used PVC.

I have "Automatic Permissions" checked, but that does not seem to be working for me. I see permissions errors in the log for this app.

ls -al tank/ | grep apps drwxr-xr-x 3 apps apps 3 Mar 29 15:06 apps ls -al tank/apps | grep unifi drwxr-xr-x 3 root root 3 Mar 29 15:08 unifi $ ls -al tank/apps/unifi total 53 drwxr-xr-x 3 root root 3 Mar 29 15:08 . drwxr-xr-x 3 apps apps 3 Mar 29 15:06 .. drwxr-xr-x 2 root root 2 Mar 29 15:08 run

Before I go chmod-ing and chown-ing, I want to verify what the ownership/permissions ought to be for each level. TIA.
 

trekkie

Dabbler
Joined
Aug 25, 2018
Messages
10
For those of you who google leaves you here.

An easier way to migrate your devices from your old controller to the new controller is here: https://lazyadmin.nl/home-network/migrate-unifi-controller/

Essentially - if you turn on the 'old' or 'legacy' interface, and 'export' the site, it will send the inform command to all your devices and they migrate over automagically. I mean ssh into each is easy, but if you have more than a couple can be tedious and it bemuses me that you used to be able to do this with a few clicks but now they want you to do it via command line? weird. (they = ubiquiti)

Hope that helps.
 
Top