Page 18 of 25

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

Posted: 21 Mar 2016 07:17
by ernie
Hello

I have nas4free Prester 2433.
There is also the rrdgraph, extended webgui and Btsync extensions.

I installed the brig Alcatraz with no issue.
I created a jail and installed owncloud with no issue.

Then I used ftsab menu in order to link my data with owncloud. I stopped the jail, I modified the section fstab (via edit menu) and I saved. Then I cannot click on the button start: if I try, nothing happens.

If I returned back in fstab menu and I deleted all, I saved, then I can launch the jail.

I tried also via the specific button to acces directly to a window for fstab, not sucessful.

Any idea ?

Thanks

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

Posted: 21 Mar 2016 20:41
by alexey123
Fixed cosmetic issue in 2433 - gui icon.
https://github.com/fsbruva/thebrig/comm ... 6a19f970d5
Then I used ftsab menu in order to link my data with owncloud. I stopped the jail, I modified the section fstab (via edit menu) and I saved. Then I cannot click on the button start: if I try, nothing happens.

If I returned back in fstab menu and I deleted all, I saved, then I can launch the jail.
Ernie, I will check your issue

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

Posted: 03 Apr 2016 13:25
by ernie
Hello

I tried to install thebrig. The installation was fine but when I refresh the webgui, nothing happens.
I reboot and I see the brig menu but when I select it, I have:

Code: Select all

Warning: file_get_contents(/tmp/thebrig.tmp): failed to open stream: No such file or directory in /mnt/pool1/jail/conf/ext/thebrig/extensions_thebrig.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at /mnt/pool1/jail/conf/ext/thebrig/extensions_thebrig.php:25) in /mnt/pool1/jail/conf/ext/thebrig/extensions_thebrig.php on line 26 Warning: require_once(/conf/ext/thebrig/functions.inc): failed to open stream: No such file or directory in /mnt/pool1/jail/conf/ext/thebrig/extensions_thebrig.php on line 32 Fatal error: require_once(): Failed opening required '/conf/ext/thebrig/functions.inc' (include_path='.:/etc/inc:/usr/local/www') in /mnt/pool1/jail/conf/ext/thebrig/extensions_thebrig.php on line 32
I managed this installation after a uninstallation of the brig via the menu the brig.

How can I delete correctly in order to install it ?

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

Posted: 20 Apr 2016 23:08
by alexey123

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

Posted: 22 Apr 2016 21:03
by ernie
alexey123 wrote:I correct face for new images https://github.com/fsbruva/thebrig/comm ... 04b389311a
sorry for my noob question but do I need only to install thebrig with the standard fetch command as follow ?

Code: Select all

fetch https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh
Or do I need to use other link ?

I tested the standard installation and I have same issue with 2433 release (fstab for owncloud).

I will test in a vm with only nas4free without any extension except the brig.

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

Posted: 23 Apr 2016 22:34
by alexey123
Hi, ernie
I cannot see any problem with fstab.
I add to fstab one folder for test. I was add line over fstab-editor
Image
Folder as device have fail2ban extension
Image
Then I start jail and have under jail OK
Image

Please check pathes

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

Posted: 24 Apr 2016 18:14
by ernie
Hello Axeley.

I checked the path and it is OK. I am trying to mount a repertory which is in a dataset. It worked in the standard branch of thebrig. Perhaps now with Alcatraz I need to activate an option. I seen the checkbox enable mount zfs dataset on you picture. Do I need to activate it ?

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

Posted: 25 Apr 2016 01:27
by alexey123
Ernie, you right. TheBrig have problem with mount datasets. I'll repair it.

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

Posted: 28 Apr 2016 17:04
by ernie
Good News that you identified the issue. I will wait your update

Thanks for your work

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

Posted: 17 May 2016 16:30
by StanEsmith
I've recently updated my setup to Nas4Free 10.2.0.2 but I am having trouble with TheBrig. I've had this same issue each time I come to this release to try it out. I wanted to move everything to 10.2 now but I can't get past this issue: TheBrig start button keeps freaking out and wont work. I had a jail setup and I was installing the components and then it wouldn't start the jail, subsonic, processes so I restarted the machine. Now when I go back to the jail the start button doesn't work. I delete the jail to start over and I can't start the jail to even begin the process. I looked to delete the .id file but this hasn't been created yet without the jail even starting for the first time. Any idea?

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

Posted: 17 May 2016 19:40
by raulfg3
post command you use to install thebrig.


PD; in 10.2 thebrig is alcatraz so probably you need to install alcatraz and not thebrig

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

Posted: 18 May 2016 18:44
by StanEsmith
I did install alcatraz.

Edit: I have confirmed that is something to do with the fstab because the jail launches fine once I remove the fstab entries. Here is a copy of the fstab entry I am using:

/mnt/Scrap/Music /mnt/Scrap/Extensions/Subsonic60/mnt/Music nullfs rw 0 0
/mnt/Scrap/ImportantDocuments/Music/FakeBooks /mnt/Scrap/Extensions/Subsonic60/mnt/Fakebooks nullfs rw 0 0

Edit#2: I found the mistake. There was a "SPACE" in the file name for one of my directories that wasn't handled well inside of linux aka didn't have the right syntax to make the space valid. Lesson learned that the fstab is a very picky tool and will be a source of issue if I don't get the wording correctly.

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

Posted: 02 Jul 2016 11:57
by djiceman
Hey guys,

if you like me experience the following issue:
After install and refresh of the webgui, Extensions doesn't show. After server reboot and klick on the theBrig, you get something like:
Warning: file_get_contents(/tmp/thebrig.tmp): failed to open stream: No such file or directory in /jails/conf/ext/thebrig/extensions_thebrig.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at /jails/conf/ext/thebrig/extensions_thebrig.php:25) in /jails/conf/ext/thebrig/extensions_thebrig.php on line 26 Warning: require_once(/conf/ext/thebrig/functions.inc): failed to open stream: No such file or directory in /jails/conf/ext/thebrig/extensions_thebrig.php on line 32 Fatal error: require_once(): Failed opening required '/conf/ext/thebrig/functions.inc' (include_path='.:/etc/inc:/usr/local/www') in /jails/conf/ext/thebrig/extensions_thebrig.php on line 32
Just make sure, you're using a fresh install!!!
In my case I had restored an old configuration that contained some traces of an old thebrig installation. :oops:

Cheers.
Frank

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

Posted: 23 Jul 2016 22:56
by vaskos
Hi all ,

I used NAS4Free 10.2.0.2, but after upgrade to 10.3.0.3 I can’t use jails START / STOP buttons. It worked in 10.2.0.2. Anybody experiencing the same problem ?

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

Posted: 23 Jul 2016 23:01
by alexey123
Update your thebrig from webgui- I repaired problem few days ago

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

Posted: 23 Jul 2016 23:10
by vaskos
Thanks ! after update it works !

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

Posted: 24 Jul 2016 17:41
by athell
I too did an update to 10.3.0.3 and jails won't start. Updated TheBrig but still the Start-buttons won't work :(

Code: Select all

$ sh /tmp/thebrig_install.sh /mnt/juice/thebrig/ &
Retrieving the alcatraz branch as a zip file
Unpacking the tarball...
Done!
Detecting current configuration...
Detecting current configuration...
Look like update thebrig
Congratulations! You have fresh TheBrig version.
Looked at the thebrig.log and I see this

Code: Select all

[2016/07/24 17:25:56]: TheBrig ERROR: /etc/rc.d/thebrig: not found
Pls halp!

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

Posted: 24 Jul 2016 19:39
by alexey123
Try reboot server

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

Posted: 26 Jul 2016 03:02
by MaT
athell wrote:I too did an update to 10.3.0.3 and jails won't start. Updated TheBrig but still the Start-buttons won't work :(

Code: Select all

$ sh /tmp/thebrig_install.sh /mnt/juice/thebrig/ &
Retrieving the alcatraz branch as a zip file
Unpacking the tarball...
Done!
Detecting current configuration...
Detecting current configuration...
Look like update thebrig
Congratulations! You have fresh TheBrig version.
Looked at the thebrig.log and I see this

Code: Select all

[2016/07/24 17:25:56]: TheBrig ERROR: /etc/rc.d/thebrig: not found
Pls halp!
Same Here

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

Posted: 29 Jul 2016 20:56
by alexey123
I repair delegate zfs dataset to jail https://github.com/fsbruva/thebrig/comm ... 718a87b1a8

NOTE
1. Enforce statfs value must be 0
2. Must be checked mount devfs
3. Add rule for devfs

Code: Select all

add path zfs unhide
4 mount point into jail must be exists folder
5. zfs dataset must be unjailed. If dataset is unwanted jailed ( check into zfs dataset information ) just execute

Code: Select all

zfs set jailed=off pool1/set1
- where pool1/set1 is your dataset name
6. When jail is started, delegated dataset not visible under main system, it mounted to jail mountpoint.
Jails root user can manage delegated dataset

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

Posted: 30 Jul 2016 16:23
by alexey123
I added the ability to create jails in personal datasets
https://github.com/fsbruva/thebrig/comm ... 023aced697

Image

HOWTO Use
Dropdown Jail folder type - you can use simple as typical build, when jail will create in regular folder
In case zfs dataset for this - jail will build into personal zfs dataset, you must choice pool and compression
Dataset will mount to:
a) thebrig homefolder : PATH/TO/BRIG/jailname - as regular
b) where you want, for example at /usr/jail, if you define Path to jail textinput

Yoiu can manage created dataset over DISK/ZFS GUI, just syncronize system

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

Posted: 31 Jul 2016 09:25
by ernie
Thanks axeley123
I will test it next week as I am using datasets for jail.

For the upgrading of Alcatraz, do I use the maintenance menu of Alcatraz ? Or it is better to uninstall and install the new version ?

Thanks

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

Posted: 31 Jul 2016 11:50
by alexey123
You can upgrade over webgui -Thebrig manager

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

Posted: 03 Aug 2016 01:38
by Emeds
Hello, thank you for creating this! I used Finch at first and wasn't able to get Emby/Plex running inside. Now I want to install TheBrig because I hear other people have had success with it. Should I remove Finch beforehand? Or can I install it without any conflict? Thank you

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

Posted: 03 Aug 2016 05:44
by alexey123
TheBrig and finch no have any conflict

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

Posted: 04 Aug 2016 21:13
by bocman
Hello!
I have installed The Brig 0.94 and have created jail with FreeBsd 10.3 and the button "Start" doesn't work...
What can I do?
And how can I start jail from command line?

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

Posted: 05 Aug 2016 07:29
by alexey123
bocman wrote:Hello!
I have installed The Brig 0.94 and have created jail with FreeBsd 10.3 and the button "Start" doesn't work...
What can I do?
And how can I start jail from command line?
Try start jail manually

Code: Select all

service thebrig start JAILNAME
Where jailname is name of your jail.
If jail start success, you update Thebrig over Thebrig manager page.

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

Posted: 05 Aug 2016 08:20
by bocman
alexey123 wrote: Try start jail manually
I have tryed, but with negative result

Code: Select all

root@nas:~# service thebrig start main
Cannot 'start' thebrig. Set thebrig_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
root@nas:~# service thebrig onestart main
Starting jails: security.jail.enforce_statfs: 2 -> 2
main jls: jail "main" not found
 cannot start jail "main": 
See my The Brig settings on screenshot

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

Posted: 05 Aug 2016 09:30
by alexey123
Check "Allow start all jails!"
I will add manual to thebrig today

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

Posted: 05 Aug 2016 11:15
by bocman
I have checked "Allow start all jails!" and tryed to execute, but recieve same result:

Code: Select all

# service thebrig start
Starting jails: security.jail.enforce_statfs: 2 -> 2
main jls: jail "main" not found
 cannot start jail "main":