Goodevening all,
I'm currently running Freenas FreeNAS-11.2-U7. I'm facing many hurdles since this is my first time using FreeNAS. My end goal is using my FreeNAS server as a way to merge my current QNAP and Current Microserver (which is running FreeNAS) into one at some point. Hence i'm currently testing and seeing if i can get everything to work.
My first goal is getting a Unifi Controller up and running (so far so good). Unifi Controller (5.11.35) is running in a Jail (11.3-Release-p5). I've used this guide to setup my jail combined with this forum post for getting the latest PKG. Controller works like a charm, but here's the trick. In my home situation (currently living in the Netherlands) our ISP provided hardware can be changed with full Unifi hardware. For this i'm using this guide. This guide specifies that at some point you need to ssh into a docker ( or jail in my case) and i quote: "In case the Controller has an SSH deamon running. Connect with SFTP and cd /usr/lib/unifi/data/sites/default and push config.gateway.json "
At first i was unable to ssh at all. I fixed that by using this piece of documentation chapter 14.3.2., When i login to my jail using Filezilla over SFTP i get send to the /usr/home/Unifi folder (Unifi being my user which has been added to the wheel group) and i can only change (read/write) within this folder. This makes sense since this folder belongs to the Unifi user. I then tried to look for the specified folder (/usr/lib/unifi/data/sites/default ) which is not found anywere near that spot but rather found at /usr/local/share/java/unifi/data. However with this user i am unable to read this folder. This prompted me to SFTP in my FreeNAS rather then straight to my jail and i started looking into this folder which is now located under: /mnt/TestLab_Pool/iocage/jails/Unifi Controller/root/usr/local/share/java/unifi/data (TestLab_Pool being my ZFS Pool) however this folder is empty as far as the data/site folder goes. I want to confirm that this folder is the same folder as /usr/local/share/java/unifi (when im logged in straight to my jail over STFP as my Unifi user). The fact that this data folder is not present has been noted by some other users as can be seen here but has not been picked up or properly answered by anyone as to why this folder is not present.
So to sum up some questions:
- Is /mnt/TestLab_Pool/iocage/jails/Unifi Controller/root/usr/local/share/java/unifi/data (logged into FreeNAS SFTP) the same as /usr/local/share/java/unifi (Logged into Kail SFTP) i'm assuming they are (but assumption is the mother of al ....).
- Why does my Unifi user (which has been added to the wheel group) not have the right permissions to look into these folders.
- Is running everything in a docker more suitable for my whole usecase (want to run a Teamspeak server/Unifi NVR software/Plex when my network is up and running)
- Is anyone familiar with running a Unifi controller in a Jail and are they able to find their data/site folder at all?
Thanks for you time.
I'm currently running Freenas FreeNAS-11.2-U7. I'm facing many hurdles since this is my first time using FreeNAS. My end goal is using my FreeNAS server as a way to merge my current QNAP and Current Microserver (which is running FreeNAS) into one at some point. Hence i'm currently testing and seeing if i can get everything to work.
My first goal is getting a Unifi Controller up and running (so far so good). Unifi Controller (5.11.35) is running in a Jail (11.3-Release-p5). I've used this guide to setup my jail combined with this forum post for getting the latest PKG. Controller works like a charm, but here's the trick. In my home situation (currently living in the Netherlands) our ISP provided hardware can be changed with full Unifi hardware. For this i'm using this guide. This guide specifies that at some point you need to ssh into a docker ( or jail in my case) and i quote: "In case the Controller has an SSH deamon running. Connect with SFTP and cd /usr/lib/unifi/data/sites/default and push config.gateway.json "
At first i was unable to ssh at all. I fixed that by using this piece of documentation chapter 14.3.2., When i login to my jail using Filezilla over SFTP i get send to the /usr/home/Unifi folder (Unifi being my user which has been added to the wheel group) and i can only change (read/write) within this folder. This makes sense since this folder belongs to the Unifi user. I then tried to look for the specified folder (/usr/lib/unifi/data/sites/default ) which is not found anywere near that spot but rather found at /usr/local/share/java/unifi/data. However with this user i am unable to read this folder. This prompted me to SFTP in my FreeNAS rather then straight to my jail and i started looking into this folder which is now located under: /mnt/TestLab_Pool/iocage/jails/Unifi Controller/root/usr/local/share/java/unifi/data (TestLab_Pool being my ZFS Pool) however this folder is empty as far as the data/site folder goes. I want to confirm that this folder is the same folder as /usr/local/share/java/unifi (when im logged in straight to my jail over STFP as my Unifi user). The fact that this data folder is not present has been noted by some other users as can be seen here but has not been picked up or properly answered by anyone as to why this folder is not present.
So to sum up some questions:
- Is /mnt/TestLab_Pool/iocage/jails/Unifi Controller/root/usr/local/share/java/unifi/data (logged into FreeNAS SFTP) the same as /usr/local/share/java/unifi (Logged into Kail SFTP) i'm assuming they are (but assumption is the mother of al ....).
- Why does my Unifi user (which has been added to the wheel group) not have the right permissions to look into these folders.
- Is running everything in a docker more suitable for my whole usecase (want to run a Teamspeak server/Unifi NVR software/Plex when my network is up and running)
- Is anyone familiar with running a Unifi controller in a Jail and are they able to find their data/site folder at all?
Thanks for you time.