This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install TheBrig - one Jail manager for N4F

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
pdcjlw1
NewUser
NewUser
Posts: 6
Joined: 01 Feb 2015 22:02
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by pdcjlw1 »

When I type in su it responds with su: Sorry

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

Please check if you current user is in the wheel group

You can do it using the groups command

groups {your_user}

pdcjlw1
NewUser
NewUser
Posts: 6
Joined: 01 Feb 2015 22:02
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by pdcjlw1 »

Ok I've got the jail installed, but I am having trouble configuring a Jail. When I click on the plus sign I get a message saying I need at least one tarball. When I try and download one the bar starts at 2% and then never moves. The file never downloads. You've been good with the suggestions so far do you know what is happening with this?

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

I think the page simply doesn't refresh properly (are you using Chrome?) click again on the "Tarball Management" tab, you should notice the bar growing up.

Inviato premendo il bottone "invia"

nasrocks
Starter
Starter
Posts: 53
Joined: 05 Nov 2014 03:39
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by nasrocks »

I am having some difficulties in removing jails on 0.8 Thebrig. When I remove the jail it just hangs for hours. I am forced to reboot and nothing changes. What am I doing wrong.

Thanks

pdcjlw1
NewUser
NewUser
Posts: 6
Joined: 01 Feb 2015 22:02
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by pdcjlw1 »

It doesn't seem to matter which browser I use. It starts out with a bar at 1% then never progresses. As soon as I refresh the bar disappears and it acts as if I have not even attempted a download. Is there a privilege or something that the account I use needs?

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by sb00nk »

pdcjlw1 wrote:Is there a privilege or something that the account I use needs?
Nothing special, you only need to login in the webgui as admin, but i think you already do it

Probably it's a silly question but, have you got any entry in the "Official freeBSD flavor" section?
tarball.png
You do not have the required permissions to view the files attached to this post.

Code: Select all

NASSERVER
firmware: 	11.1.0.4 - Atomics (revision 4528)
setup:		x64-embedded on 16GB microSD (Samsung MB-MP16D/EU)
case:		Cooler Master Silencio 550
mb:		ASROCK C2550D4I
cpu:		Intel Avoton C2550 @ 2.40GHz
ram:		32GB DDR3 ECC (4x Kingston KVR16E11/8)
hds:		4x2TB RaidZ (WD20EFRX)
cold spare:	1x WD20EFRX

BACKUP
NETGEAR ReadyNAS Duo
hds:		2x500GB Raid1 (WD5000AADS)
cold spare:	1x WD5000AADS

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by sb00nk »

nasrocks wrote:When I remove the jail it just hangs for hours. I am forced to reboot and nothing changes.
Explain me better what do you mean for system "hangs"
- the entire system become unresponsive?
- can you still use ssh/ftp/torrent/other services you usually run?
- the webgui seems to be loading but it actually does nothing?
- if you open a second page to the webgui, it works?

and finally, which browser do you use normally?

Code: Select all

NASSERVER
firmware: 	11.1.0.4 - Atomics (revision 4528)
setup:		x64-embedded on 16GB microSD (Samsung MB-MP16D/EU)
case:		Cooler Master Silencio 550
mb:		ASROCK C2550D4I
cpu:		Intel Avoton C2550 @ 2.40GHz
ram:		32GB DDR3 ECC (4x Kingston KVR16E11/8)
hds:		4x2TB RaidZ (WD20EFRX)
cold spare:	1x WD20EFRX

BACKUP
NETGEAR ReadyNAS Duo
hds:		2x500GB Raid1 (WD5000AADS)
cold spare:	1x WD5000AADS

pdcjlw1
NewUser
NewUser
Posts: 6
Joined: 01 Feb 2015 22:02
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by pdcjlw1 »

Sorry I guess I didn't explain things very well. I am new to the NAS4Free software. I installed version 9.2 on to my computer. I installed TheBrig jail manager. I then went to setup my first Jail. On that screen it said

There are no tarballs available. Please choose some archives and download them using the button below.

I press the query button and have the choice of four files.

base.txz src.txz doc.txzlib32.txz

I choose base.txz and txzlib32.txz.

I guess I should have mentioned I installed the 64 bit version since I have a 64 bit processor.

Once I have put checkmarks in the two files mentioned above I press Fetch button.

I see

FreeBSD amd64 9.2 RELEASE lib32 and a bar that shows the progress. I then press the TarBall Management button.

The screen refreshes and looks exactly as it did when I first go to this screen. I am able to click any button and the screen responds. There is no lockup. It is as if I had just got to this screen for the first time. I can even attempt to download the tarball again. I always get the same result.

I normally use IE.

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

Have you done the "rudimentary config" once installed the brig?
Il yes, are the folders in a persistent place with enough free space? (some hundreds of megabytes)



Inviato premendo il bottone "invia"

nasrocks
Starter
Starter
Posts: 53
Joined: 05 Nov 2014 03:39
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by nasrocks »

can you still use ssh/ftp/torrent/other services you usually run?---
Yes SSH still works
- the webgui seems to be loading but it actually does nothing?
It says contacting my nas ip and then waiting for my nas ip.
- if you open a second page to the webgui, it works?
Yes
and finally, which browser do you use normally?
I have tried Chrome and I.E,

However .. I left it for 3 or 4 hours and it worked... I am back to only one jail.
Previously I left it just as long.. but this time it worked.
Ready to try owncloud install again!
Thanks for your reply

Rudenko
NewUser
NewUser
Posts: 4
Joined: 19 Jan 2015 11:04
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by Rudenko »

I have faced some issues while installing TheBrig.
Running NAS4Free 9.3.0.2 - Nayla embedded, WebGUI language English.

I did fetch... chmod... /bin/sh... as per initial post in shell as a root right on the NAS. Naturally, I changed paths accordingly.
fetch & chmod behave as expected.
Script run with errors. Here are last few lines from the script's output:

Code: Select all

...
x conf/sbin/portsnap
x thebrig_install.sh

Warning: file(/var/tmp/temporary/conf/ext/thebrig/lang.inc): failed to open stream: No such file or directory in /root/temporary/conf/bin/change_ver.php on line 6
Hello new user, We will install TheBrig now
Renaming 64 bit ftp binary
Congratulations! TheBrig installed . Navigate to rudimentary config tab and push Save
rmdir: temprorary: No such file or directory
There is 1 warning and an error reported by rmdir.

BTW, WebGUI shows Extensions|TheBrig with all submenus. I clicked Save in rudimentary config. No errors were reported.

My questions:
1) Can I proceed with creating jails (I'd like to install owncloud) or should I uninstall TheBrig and try over?
2) If I try over should I change or check something in script?
nas4free 9.3.0.2 - Nayla x64-embedded / RAM 4GB / HDD 2x3TB WD30EZRX RaidZ1

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

That warning say "I would like to remove the temporary folder because now it's useless but I can't" so it's not a real problem, the installation is done properly.

If I remember well, this folder is located in your data main folder (/mnt/{some_name}) you can remove it by yourself

Code: Select all

cd /mnt/{some_name}
ls -la
The temporary folder is there? Remove it!

Code: Select all

rm -r temporary

General hint:
PLEASE, DOUBLE CHECK WHAT YOU WRITE BEFORE HITTING ENTER
Because you are removing file from your valuable data storage.



Inviato premendo il bottone "invia"

Rudenko
NewUser
NewUser
Posts: 4
Joined: 19 Jan 2015 11:04
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by Rudenko »

Thanks. Please note that the output quoted is a result of the script run. I neither patched any installation files nor intervened the process.

However, my real concern is about this line from the quotation:
Warning: file(/var/tmp/temporary/conf/ext/thebrig/lang.inc): failed to open stream: No such file or directory in /root/temporary/conf/bin/change_ver.php

I feel it's no good that there is a file missing. Though this file doesn't look as it is so critically important. Esp. taking into consideration that WebGUI looks OK.
nas4free 9.3.0.2 - Nayla x64-embedded / RAM 4GB / HDD 2x3TB WD30EZRX RaidZ1

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

Sorry, I just looked at the last line about rmdir, I don't know about lang.inc file, I may guess it's supposed to be for translation but I don't know for sure.

You probably can use jails and forget about it =)



Inviato premendo il bottone "invia"

pdcjlw1
NewUser
NewUser
Posts: 6
Joined: 01 Feb 2015 22:02
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by pdcjlw1 »

Well I did figure it out. I had not changed the default folder location to what I had named mine too. You know when you save the basic configuration after you have run the install script. So I ran the install script again under root. This gave me the option to save the basic configuration again. It was then I notice the difference in the file path. Once I changed that the tarballs downloaded fine and I was able to configure a jail. Thank you for your help. I guess I should have read the installation instructions more closely.

KingB
Starter
Starter
Posts: 15
Joined: 11 Feb 2015 14:07
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by KingB »

Hi,

i am on the latest NAS4Free Version (9.3.0.2 - Nayla (Revision 1349)) and the latest TheBrig Version 0.8.

I installed the extensions successfully and set up a working jail with a nice working Owncloud in it.

But i can only get one Jail to work.

I can set up 2 Jails, i have one for Owncloud and one for Plex Server, but i cant start the Plex one. Doesnt matter if delete all Jails and reconfigure them, or Install the brig again, the second Jail can not be started. The site stays loading but nothing happens. I let it load for an hour but i does not start. Even no change after a reboot, only the first one starts, but both should start after a reboot.

Any Idea?

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by ernie »

Hello

In the brig, menu current jails, is the option 'Start all jails in parallel' activated ?
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

KingB
Starter
Starter
Posts: 15
Joined: 11 Feb 2015 14:07
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by KingB »

Yes, with and without the option the second jail does not start :-(.

The Browser keeps loading trying to do the start order for the second jail.

Also i cant to anything else on the webgui, i have to start a new chrome session to get back acces! :(
Please try Firefox and confirm if still fail to know if is chrome related bug

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

Have you edited the fstab file in the plex jail?
If yes, how?



Inviato premendo il bottone "invia"

KingB
Starter
Starter
Posts: 15
Joined: 11 Feb 2015 14:07
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by KingB »

no i did nothing in the owncloud jail and nothing in the Plex Jail.I want to start the plex one first

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by sb00nk »

So, how it's configured your plex jail?

expecially: jail type, ip address and freebsd flavor involved

Code: Select all

NASSERVER
firmware: 	11.1.0.4 - Atomics (revision 4528)
setup:		x64-embedded on 16GB microSD (Samsung MB-MP16D/EU)
case:		Cooler Master Silencio 550
mb:		ASROCK C2550D4I
cpu:		Intel Avoton C2550 @ 2.40GHz
ram:		32GB DDR3 ECC (4x Kingston KVR16E11/8)
hds:		4x2TB RaidZ (WD20EFRX)
cold spare:	1x WD20EFRX

BACKUP
NETGEAR ReadyNAS Duo
hds:		2x500GB Raid1 (WD5000AADS)
cold spare:	1x WD5000AADS

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by fsbruva »

The reason the website hangs is because it is waiting for confirmation that the jail started successfully. If that never happens, then the process is hung, which is why you need another chrome tab.

I am guessing there is something fatally wrong with your plex jail, and TheBrig is displaying symptoms that have their roots in your jail's software. If you could answer the following:
1. Have you ever gotten the Plex jail to start (from command-line, or alone with the webgui)?
2. What IP addresses did you use for the two jails?
3. If you disable plex from the jail's /etc/rc.conf, does the jail start?
4. What ports does plex attempt to bind?
5. What addresses do you have lighttpd/apache/nginx bound to for your owncloud jail?

KingB
Starter
Starter
Posts: 15
Joined: 11 Feb 2015 14:07
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by KingB »

sb00nk wrote:So, how it's configured your plex jail?

expecially: jail type, ip address and freebsd flavor involved
I tried Full and Slim Jail. Doesnt matter.
Official FreeBSD Flavor: FreeBSD-amd64-9.3-RELEASE-base.txz and FreeBSD-amd64-9.3-RELEASE-lib32.txz.
fsbruva wrote:The reason the website hangs is because it is waiting for confirmation that the jail started successfully. If that never happens, then the process is hung, which is why you need another chrome tab.

I am guessing there is something fatally wrong with your plex jail, and TheBrig is displaying symptoms that have their roots in your jail's software. If you could answer the following:
1. Have you ever gotten the Plex jail to start (from command-line, or alone with the webgui)?
2. What IP addresses did you use for the two jails?
3. If you disable plex from the jail's /etc/rc.conf, does the jail start?
4. What ports does plex attempt to bind?
5. What addresses do you have lighttpd/apache/nginx bound to for your owncloud jail?
1. Have you ever gotten the Plex jail to start (from command-line, or alone with the webgui)?

I had a Plex Jail working when it is the only Jail. If i delete both Jails (plex and owncloud), and add Plex again, its working.

2. What IP addresses did you use for the two jails?
The NAS4free ip is 192.168.178.79/24
Owncloud Jail Ip: 192.168.178.151/24, reachable with port 81 locally.
Plex Jail 192.168.178.152/24.

3. If you disable plex from the jail's /etc/rc.conf, does the jail start?

How? I can access the rc.conf file inside the Jail with putty, but dont know what i should disable? I cant install Plex, i cant fire up the Jail, so nothing to disable?

I can install Plex only if i delete Owncloud Jail and create a new Jail for Plex and it must be the only Jail configured.

The rc.conf looks like this, i think its fu**ed up because it dont run correct, the other ones are much longer :D

Code: Select all

sendmail_enable="NONE"
syslogd_flags="-ss"
rpc_bind="NO"
network_interfaces=""
cron_flags="$cron_flags -J 15"
4. What ports does plex attempt to bind?

No Port, no Plex installed.

5. What addresses do you have lighttpd/apache/nginx bound to for your owncloud jail?

What :D? i configured the lighttpd.confg at /usr/local/etc/lighttpd/lighttpd.conf
with the Jail IP and the Port 81, link in this how to.
viewtopic.php?f=94&t=7080

Thanks to google translate :D Dont unterstand french.

sb00nk
experienced User
experienced User
Posts: 79
Joined: 16 Jul 2013 23:55
Status: Offline

Post by sb00nk »

To me, if the jails works separately but not together the problem is in the brig installation..
Have you installed it in your storage or somewhere else like data partition of the system?



Inviato premendo il bottone "invia"

KingB
Starter
Starter
Posts: 15
Joined: 11 Feb 2015 14:07
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by KingB »

I did it like described in this guide: viewtopic.php?f=79&t=3894

My Brig installation is under /mnt/Pool1/www/Extensions

And my Jails are unter /mnt/Pool1/www/Jail.

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by fsbruva »

What version of Nas4Free are you using?
Send me a PM with your rc.conf.local contents, along with the /etc/fstab.plex and /etc/fstab.owncloud.
The only thing I can think is that mounting the fstab is causing some sort of deadlock that is preventing the jails from starting...

jasch
experienced User
experienced User
Posts: 136
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by jasch »

Hi fsbruva , i having a small Problem(possible its a Bug in Webgui).
I am using a Jail with Bacula, to get HW access of LTO Drive i use custom devfsrules.
This is working, but i have to add entry manually to rc.conf.local.

Code: Select all

jail_Bacula_devfs_ruleset="devfsrules_jail_bacula"
It works but if i make changes on jails and save i have to add the entry again.

Can u please add a way to define ruleset via Webgui.
(Addition Parameters works like it should but cannot be used for setting ruleset)


MFG Alex
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

pup26
Starter
Starter
Posts: 16
Joined: 10 Feb 2013 21:03
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by pup26 »

Hi

First time installing theBrig on my machine (just steped into nas4free after years of good old freenas).

two issues here:
1. installation:
It seemed to be ok but at the last step I got:
failed to open stream: No such file or directory in /root/temporary/conf/bin/change_ver.php on line 6
the extension seemed to be installed though, i have the extensions gui

2. creating new Jails:
When going to theBrig extension, I see the brig is up but no ID is current, when trying to create a new Jail i get the following:
Creating a jail requires at least one "base" tarball. Please visit the Tarball Management page and download one.
Should I do that> isn't the installation supposed to create a base one?

Thanks guys...

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Post by fsbruva »

@ jasch
Defining a ruleset is being added to the next version of TheBrig. It will be ready for testing soon.

@ pup26
1. Since you did a fresh install - the change_ver script couldn't find one of the files it needed to upgrade. This is not a problem, and this bug has already been fixed in the next version.

2. The warning offered from the gui is meant to be helpful, not misleading. Just do what it says.

Post Reply

Return to “Jails”