Page 9 of 25

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

Posted: 02 Feb 2015 01:16
by pdcjlw1
When I type in su it responds with su: Sorry

Posted: 02 Feb 2015 12:52
by sb00nk
Please check if you current user is in the wheel group

You can do it using the groups command

groups {your_user}

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

Posted: 04 Feb 2015 01:01
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?

Posted: 04 Feb 2015 08:49
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"

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

Posted: 06 Feb 2015 21:12
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

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

Posted: 06 Feb 2015 22:10
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?

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

Posted: 06 Feb 2015 22:44
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

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

Posted: 06 Feb 2015 22:53
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?

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

Posted: 07 Feb 2015 05:46
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.

Posted: 07 Feb 2015 12:14
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"

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

Posted: 08 Feb 2015 01:02
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

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

Posted: 08 Feb 2015 20:59
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?

Posted: 09 Feb 2015 11:28
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"

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

Posted: 09 Feb 2015 12:13
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.

Posted: 10 Feb 2015 22:28
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"

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

Posted: 14 Feb 2015 18:56
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.

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

Posted: 14 Feb 2015 23:22
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?

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

Posted: 15 Feb 2015 09:23
by ernie
Hello

In the brig, menu current jails, is the option 'Start all jails in parallel' activated ?

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

Posted: 15 Feb 2015 10:31
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

Posted: 15 Feb 2015 11:50
by sb00nk
Have you edited the fstab file in the plex jail?
If yes, how?



Inviato premendo il bottone "invia"

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

Posted: 15 Feb 2015 16:59
by KingB
no i did nothing in the owncloud jail and nothing in the Plex Jail.I want to start the plex one first

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

Posted: 15 Feb 2015 18:59
by sb00nk
So, how it's configured your plex jail?

expecially: jail type, ip address and freebsd flavor involved

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

Posted: 16 Feb 2015 04:46
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?

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

Posted: 16 Feb 2015 13:40
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.

Posted: 17 Feb 2015 09:32
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"

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

Posted: 17 Feb 2015 17:55
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.

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

Posted: 19 Feb 2015 05:18
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...

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

Posted: 25 Feb 2015 10:55
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

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

Posted: 01 Mar 2015 20:23
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...

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

Posted: 02 Mar 2015 08:58
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.