Page 1 of 1
JAIL will not start
Posted: 16 Jan 2014 20:55
by infinion
Yesterday i have installed TheBrig addon, created one working jail for Sabnzbd; works fine. Except that TheBrig seems really buggy.
The FSTAB entry does not work, so i made them manually in the file it created in /etc/fstab.SABNZBD
Exactly the same way i created another jail, but this one will not start; it gives the following error in the log:
root: /etc/rc.d/jail: ERROR: jail: No hostname has been defined for AUTOSUB
Anyone knows why this is but also where it can be solved? Thanks in advance

Re: JAIL will not start
Posted: 16 Jan 2014 21:06
by raulfg3
do you instal master or working branch?
Please install working branch and repeat test.
Re: JAIL will not start
Posted: 16 Jan 2014 21:52
by alexey123
Go to Backup/restore Extensions|TheBrig|Tools tab
Push "Export" button
Thebrig make his config - send it to forum
Re: JAIL will not start
Posted: 17 Jan 2014 17:21
by infinion
How can i upload the config? The forum won't accept the extension.
Re: JAIL will not start
Posted: 17 Jan 2014 17:31
by alexey123
Archive it as zip
Re: JAIL will not start
Posted: 17 Jan 2014 19:15
by infinion
Doh, here you go

Re: JAIL will not start
Posted: 17 Jan 2014 19:53
by alexey123
I see entry <subnet>32</subnet>
So, You not need network connect from jails?
Fstab entries is true, must be work. Check into /etc folder 2 fstabs
Re: JAIL will not start
Posted: 17 Jan 2014 20:03
by infinion
The jails are connected to the network, the one that is working also has network connectivity. It displays its IP as: 192.168.2.7 / 32 so a single IP.
In the /etc folder there is: fstab and fstab.SABNZBD
Re: JAIL will not start
Posted: 17 Jan 2014 20:07
by alexey123
where is AUTOSUB ? It marked as start on boot
Go to edit page and push Save.
is valid entries fstab.SABNZBD???
Netmask 32 - how to your jail connect to router????
Re: JAIL will not start
Posted: 17 Jan 2014 20:19
by infinion
AUTOSUB is in the same Jail folder as SABNZBD is. /mnt/Data_0/Jail I have saved it and rebooted several times, it keeps saying the HOSTNAME is not there. While i can see it displayed in webgui config....
The entries are valid in fstab, but the entries from the GUI are not loaded. I made them the same so no matters.
Netmask 32 is normal when pointing out a single IP, and TheBrig is assigning it automatically when entering the IP on creating the jail. Why would i assign a range of ip adresses to a jail? It just uses on address to connect to the network.
Re: JAIL will not start
Posted: 17 Jan 2014 21:01
by alexey123
infinion wrote:AUTOSUB is in the same Jail folder as SABNZBD is. /mnt/Data_0/Jail
I see it into config
I have saved it and rebooted several times, it keeps saying the HOSTNAME is not there. While i can see it displayed in webgui config....
You see this message under webgui tab Extensions|TheBrig| Log ?
This is true message, freebsd need set hostname over rc.conf, but for jail main NAS4Free server do it itself.
The entries are valid in fstab, but the entries from the GUI are not loaded. I made them the same so no matters.
such behavior can not beю
I explain:
fstab files must be placed under
main NAS4Free /etc folder, and have names /etc/fstab.<jailname>
into some folder you can observe /etc/rc.conf.local with entries about your jail
Netmask 32 is normal when pointing out a single IP, and TheBrig is assigning it automatically when entering the IP on creating the jail.
It assign automatically because I define it for my experiments. Users not familiar with network-tricks need define it some as NAS4Free main netmask.
Netmask 32 not give connectivity to network. Jail must know router, name server, broadcast address, and any another adress for connect. If you define netmask=32, host must connect itself only.
Re: JAIL will not start
Posted: 18 Jan 2014 14:31
by infinion
I have no log option in the TheBrig menu, only the Nas4Free log file.
Does TheBrig not place the fstab files there? What is the use of the fstab option in creating a jail?
When i look at /etc/rc.conf.local i can only see the Jail called SABNZBD in there.
What do i need todo to get this working? It seems its not very smooth and straight forward as it should be.
Re: JAIL will not start
Posted: 18 Jan 2014 19:48
by infinion
Ok, this is messy.
I have looked into rc.conf.local and copied the data from SABNZBD jail and pasted it again below the last line and replaced SABNZBD with AUTOSUB (jail names)
Then i added a file named fstab.AUTOSUB in /etc/
Now the jail starts... how come TheBrig does not do this for me? Can i enable a more detailed level of logging somewhere?
Only one other thing, it has no IP; where do i add that manually?
Re: JAIL will not start
Posted: 19 Jan 2014 08:19
by alexey123
infinion, not need add any to thebrig files manually - after reboot all files will rewrite.
What version nas4free you use - full or embedded ? I can not find any at my installation - TheBrig create all files without problem.
If you use old master branch try upgrade TheBrig to working. You not need rebuild jail, only replace TheBrig
Code: Select all
fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
for your nas
Code: Select all
sh thebrig_install.sh /mnt/Data_0/Jail 2
Re: JAIL will not start
Posted: 20 Jan 2014 14:56
by infinion
Hi Alexey,
Thanks for the instructions. But it still does not work using the working branch, Same issue.
FSTAB is not added, IP is not added, HOSTNAME is not added. Only the first jail i created works as it should, except for fstab.
This seems to alpha/buggy to me, how can this be promoted as THE jail for nas4free? And still be taken seriously?
The system has been running perfect for over a year, including the updates of the new releases.
Version is: 9.1.0.1 - Sandstorm (revision 847) x64-full