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!

TheBrig - webgui extension for jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by alexey123 »

Fire wrote:i did as you told me, but "Enable mount devfs" Settings Checkbox still not saved :(
What browser you use? May be chrome ?
It store, you can check into config.xml, but webpage display wrong value.
<thebrig>
<content>
<jailname>Your jailname</jailname>
<jail_mount/>
<devfs_enable/>
In all cases - Thank you, You find bug, I go to repair page
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Fire
Starter
Starter
Posts: 26
Joined: 05 Oct 2013 23:20
Status: Offline

Re: TheBrig - webgui extension for jail

Post by Fire »

setting is saved, you are right!

if i check and save: "<devfs_enable />" appears,
if i save unchecked it disappears

i checked Chrome 32, Firefox 27 and IE11, behaviour is the same on all three

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by alexey123 »

I attached file. Check pls, how it work.
You must save this file into /usr/local/www/ext/thebrig folder.
If all work as expected, save this file into /mnt/<path_to_your_thebrig>/conf/ext/thebrig
Working branch corrected also
You do not have the required permissions to view the files attached to this post.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Fire
Starter
Starter
Posts: 26
Joined: 05 Oct 2013 23:20
Status: Offline

Re: TheBrig - webgui extension for jail

Post by Fire »

works as expected! settings saved and checkbox set, thank you :)

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by MikeMac »

Hi, alexey123!

I am trying to move jails from prevoius intstallations to new one. No success.

Extensions|TheBrig|maintenance|backup/restore, here in Jail archiver I choise folder and receive tar named "snatched_<<date stamp>>"
(Side note. Why do not use folder name at the beginning of tar name?)

Then I come to Current Jails and try to make new one from this tar. I set as Installation Source "snatched_<<date stamp>>" tarbal. Jail is created, but could not be started. If I use both "snatched_<<date stamp>>" and official FreeBSD archives - jail starts, but one looks vanilla fresh. No software from archived jail could be used.

That I am doing wrong?

PS Brig version - i just have found strange behaviour.
I had recently upgraded to .7 by
fetch https://raw.github.com/fsbruva/thebrig/ ... install.sh
sh thebrig_install.sh /mnt/Pool/Jail 2

and had made sure, version grows from .6 то .7

But today I had found, version is back .6 at Extensions|TheBrig|Manager

I try to upgrade another time,

fetch https://raw.github.com/fsbruva/thebrig/ ... install.sh
sh thebrig_install.sh /mnt/Pool/Jail 2

but message afret it is:

No need updates
You use fresh version

Extensions|TheBrig|Manager shows .6 even after browser cash flush

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by alexey123 »

but message afret it is:

No need updates
You use fresh version
Hi
TheBrig working branch was have big bug. This bug happened because of my windows client issue. Bug make impossible update any from webgui.
I repaired it, before 2 weeks, now all work. But I not change version number, I want give to work TheBrig self updater and prepare thebrig to create openvpn jails.

Now I change version number, and you can update TheBrig without problem. Openvpn and webupdater will work next time :oops:

How to update jails:
Under NAS4Free 9.1.0.1
1. Update Thebrig

Code: Select all

fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
sh thebrig_install.sh /mnt/path/to/brig 2
2. Update binaries for all jails over Extensions|TheBrig|FreeBSD Update tab
After update you have 9.1-RELEASE-p10
3. Upgrade jails to FreeBSD 9.2
enter to each jail and type command

Code: Select all

freebsd-update upgrade -r 9.2-RELEASE
freebsd-update install
After upgrade you have jails with 9.2-RELEASE world
4. Just now upgrade base NAS4Free system from 9.1 to 9.2
5. Update binaries from over Extensions|TheBrig|FreeBSD Update tab again.
6. Update ports .
If you use cental ports - one ports folder for all jail, update over webgui page Extensions|TheBrig|Central Ports
If you use standart ports - use

Code: Select all

portsnap fetch update
for each jail or remove old ports and install new
7. Upgrade software inside jail by portupgrade or portmaster tool.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Fire
Starter
Starter
Posts: 26
Joined: 05 Oct 2013 23:20
Status: Offline

Re: TheBrig - webgui extension for jail

Post by Fire »

how can i move my jails from one location to another? like from /mnt/pool1/jails to /mnt/data/jails ?

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by MikeMac »

I change version number
Thanks, now UG works.
freebsd-update upgrade -r 9.2-RELEASE
I had already upgraded nas4free to 9.2, so this does not work

Code: Select all

root@www:/ # freebsd-update upgrade -r 9.2-RELEASE
freebsd-update: Cannot upgrade from 9.2-RELEASE to itself
Should I revert to 9.1 version? Now everyting looks workable.

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by alexey123 »

If all work - NOT TOUCH! See news into Jail edit page: Jail prestart command and Addition Parameters .
Fire wrote:how can i move my jails from one location to another? like from /mnt/pool1/jails to /mnt/data/jails ?
1. Stop jail
2. Go to page Extensions|TheBrig|Tools and navigate to Jail Archiver.
Archiver will create archive file into folder work
3. Go to add jail, and as source use your archive.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

schleepy
NewUser
NewUser
Posts: 1
Joined: 14 Feb 2014 12:54
Status: Offline

Re: TheBrig - webgui extension for jail

Post by schleepy »

Hey alexey123,

first of all, thanks for your work.

I set up my own NAS some days ago using the release of NAS4free 9.2.0.1 - Shigawire (Revision 943).

When I enter your command lines

Code: Select all

fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
and

Code: Select all

sh thebrig_install.sh /mnt/ZFSMount/Apps/thebrig 2
something seems to fail, because I always get an error back:

Code: Select all

$ sh thebrig_install.sh /mnt/ZFSMount/Apps/thebrig 2
Retrieving the testing branch as a zip file
Unpacking the tarball...
Status: 404 Not Found
X-Powered-By: PHP/5.5.8
Content-type: text/html

No input file specified.
You use fresh version
After this I only find "thebrig.log" in the thebrig folder, stating "[2014-02-14 14:07:24]: TheBrig installer!: installer: successfully".

EDIT: It actually worked, when I used putty. Only thing is that I still cannot start the Jail. When I press the start button in the WebGUI the site refreshes but nothing happens.

EDIT2: I now switched to Jail type "full" instead of "slim"... and it seems to work

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Bugreport: "User command 0" is not executed

Post by MikeMac »

Bugreport: "User command 0" is not executed

TheBrig version 0.8
Let's create test jail and set two simple user commands
Image

Then start jail and see if commands were executed
Image

We could see mark1 file as result of User command 1, but no mark0 file, so User command 0 was not executed

axc27
NewUser
NewUser
Posts: 5
Joined: 24 Sep 2013 07:48
Status: Offline

Re: TheBrig - webgui extension for jail

Post by axc27 »

alexey123 wrote: Hi
TheBrig working branch was have big bug. This bug happened because of my windows client issue. Bug make impossible update any from webgui.
I repaired it, before 2 weeks, now all work. But I not change version number, I want give to work TheBrig self updater and prepare thebrig to create openvpn jails.

Now I change version number, and you can update TheBrig without problem. Openvpn and webupdater will work next time :oops:

How to update jails:
Under NAS4Free 9.1.0.1
1. Update Thebrig

Code: Select all

fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
sh thebrig_install.sh /mnt/path/to/brig 2
2. Update binaries for all jails over Extensions|TheBrig|FreeBSD Update tab
After update you have 9.1-RELEASE-p10
3. Upgrade jails to FreeBSD 9.2
enter to each jail and type command

Code: Select all

freebsd-update upgrade -r 9.2-RELEASE
freebsd-update install
After upgrade you have jails with 9.2-RELEASE world
4. Just now upgrade base NAS4Free system from 9.1 to 9.2
5. Update binaries from over Extensions|TheBrig|FreeBSD Update tab again.
6. Update ports .
If you use cental ports - one ports folder for all jail, update over webgui page Extensions|TheBrig|Central Ports
If you use standart ports - use

Code: Select all

portsnap fetch update
for each jail or remove old ports and install new
7. Upgrade software inside jail by portupgrade or portmaster tool.
Hi Alex!

I tried this one, as I wanted to upgrade to current 9.2. However, it doesn't work for slim jails I have created with TheBrig 0.7...

I'll quote myself here, just to make the post clearer... PROBLEM SOLVED (see EDIT3 below)
First tried it as shown here, but after point 2. the jails do not show as "9.1-RELEASE-p10", they stay at "Downloaded Version" "No Tag".
Then I tried it in the jail:

Code: Select all

# freebsd-update fetch
and the jail shows as "Downloaded Version" "9.1-RELEASE-p10", but when I want to actually update it with

Code: Select all

# freebsd-update install
I get:

Code: Select all

root@minidlna:/ # freebsd-update install
Installing updates...chflags: ///lib/libc.so.7: Read-only file system
Do you have a tip how to circumvent this? Of course, one could do it the hard way: Jail by Jail, always mouting an own copy of the basejail rw, but that wouldn't match the idea of slim jails...
I created a new test jail in TheBrig 0.8, however, and this one works. I can update it just the way you described. What files are missing in the older Jails that prevent the update from working? I'd love to update these Jails without having to recreate them, as it too quite some time to get everything configured in there.

And an additional question:
After this attempt to update the jails, the mounting of basejail got lost -- the basejail isn't mounted automatically anymore, even after reboot. After manually mounting the basejail, however, jails run fine again.
Where is the correct place to put the mount commands for the basejail, to get this back to original state?

EDIT:
I just checked in comparison to the new test jail, in the /etc/fstab.{jailname} created for the older jails, the entry for the basejail is missing now...

EDIT2:
Found the solution for this problem, somehow the config file may have changed with the update, but my old jails till had:
<type>slim</type>
in the config, but the the following is needed:
<jail_type>slim</jail_type>

EDIT3:
Its me again. It was indeed only the problem with the config file not being correctly updated on TheBrig update. After manully adapting the config file (see EDIT2), the jails finally update as they should. currently running the "freebsd-update upgrade -r 9.2-RELEASE" on all my three jails.

EDIT4:
OK, cheered too soon...

Code: Select all

root@madsonic:/ # freebsd-update install
Installing updates...chflags: ///bin/rcp: Read-only file system
So I am stuck in Step 3...

EDIT5:
Getting closer...
Using the {Jails_basedir}/conf/freebsd-update_thin.conf and adding "/usr/lib" under "IgnorePaths" (as this is also in the basejail), the files to be changed after "freebsd-update upgrade -r 9.2-RELEASE" look reasonable. Only planed changes in /etc, /root and /var left over. However, I still cannot finish the upgrade to 9.2-RELEASE:

Code: Select all

root@test:/ # freebsd-update install
Installing updates...mkdir: /boot/kernel.old: Read-only file system
mtree: /boot/kernel.old: No such file or directory
touch: /boot/kernel.old/.freebsd-update: No such file or directory
Could not create kernel backup directory
EDIT6:
Finally, I got it working!
In addition to adding "/usr/lib" under "IgnorePaths" I had to add "BackupKernel no". Then, finally "freebsd-update install" finished.

Code: Select all

root@test:/ # freebsd-update install
Installing updates... done.
root@test:/ # 
axc27
Last edited by axc27 on 22 Feb 2014 15:35, edited 12 times in total.

bafforosso
Starter
Starter
Posts: 18
Joined: 05 Jun 2013 23:01
Status: Offline

Re: Bugreport: "User command 0" is not executed

Post by bafforosso »

MikeMac wrote:Bugreport: "User command 0" is not executed

TheBrig version 0.8
Let's create test jail and set two simple user commands

Then start jail and see if commands were executed

We could see mark1 file as result of User command 1, but no mark0 file, so User command 0 was not executed
I'm experiencing the same (using TheBrig v0.8 on Nas4Free 9.2.0.1.943) : I just set up a jail for Deluge torrent client + Flexget, when I enter the Flexget daemon start command in User command 0 the daemon doesn't start, if i enter it in User command 1 it works.
System 1:
  • Case: Lian Li PC-Q25B Mini-ITX
    Motherboard + CPU: ASRock C2550D4I with Intel Quad-Core Avoton C2550 @2.4GHz
    RAM: 2x 8GB 1600MHz ECC DDR3L
    Hard Drives: 6x 2TB SATA3 in Raid-Z2

System 2:
  • Case: CoolerMaster Force 500
    Motherboard + CPU: SuperMicro X9SCL with Intel Xeon E3-1230 @ 3.2GHz
    RAM: 3x 4GB 1600MHz DDR3
    Hard Drives: 6x 3TB SATA3 in Raid-Z2

wookl
NewUser
NewUser
Posts: 10
Joined: 31 Mar 2013 23:00
Status: Offline

Re: TheBrig - webgui extension for jail

Post by wookl »

Crossing my fingers that Alexey finds a solution for openvpn and brig.
I have tried a while ago to create jail using both wikimethod and brig, but are not able to get openvpn running inside a jail, and jails are not connected to the internet if i install openvpn using this method http://www.lifehacker.com.au/2012/12/tu ... ng-machine, not having internet on my jails was not problematic before i started to use owncloud. Tried a couple of solutions from the freebsd forum, but my freebsd knowledge is limited https://forums.freebsd.org/viewtopic.php?&t=38287 https://forums.freebsd.org/viewtopic.php?t=22143
11.1.0.4 - 4952 x64-full on Intel(R) Xeon(R) CPU L5640 @ 2.27GHz ASUSTeK Computer INC. P6T7 WS

russb123
NewUser
NewUser
Posts: 12
Joined: 25 Aug 2013 18:18
Status: Offline

Re: TheBrig - webgui extension for jail

Post by russb123 »

Hello I am having trouble updating the brig. The update worked the first time I ran it but when I restarted my server it reverted back to the old version for some reason.

I tried to run the update again but it gives the message:

No need updates
You use fresh version

Any idea what I did wrong? I am running revision 943 of nas4free and did not upgrade my jails from 9.1 before upgrading nas4free.

Thanks for any help.

laster13
PowerUser
PowerUser
Posts: 995
Joined: 01 Jun 2013 19:15
Location: France-Marseille
Status: Offline

Re: TheBrig - webgui extension for jail

Post by laster13 »

Hello
Now I change version number, and you can update TheBrig without problem. Openvpn and webupdater will work next time
Is it possible to install openvpn un the jail via thebrig today?

Thanks

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by alexey123 »

laster13 wrote:Hello
Is it possible to install openvpn un the jail via thebrig today?
Thanks
Short answer - not. I plan create openvpn extension ( it work over command line, need create webpage for manage openvpn).
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Cordel
NewUser
NewUser
Posts: 7
Joined: 28 Apr 2014 12:50
Status: Offline

Re: TheBrig - webgui extension for jail

Post by Cordel »

axc27 wrote:
alexey123 wrote: Hi
TheBrig working branch was have big bug. This bug happened because of my windows client issue. Bug make impossible update any from webgui.
I repaired it, before 2 weeks, now all work. But I not change version number, I want give to work TheBrig self updater and prepare thebrig to create openvpn jails.

Now I change version number, and you can update TheBrig without problem. Openvpn and webupdater will work next time :oops:

How to update jails:
Under NAS4Free 9.1.0.1
1. Update Thebrig

Code: Select all

fetch https://raw.github.com/fsbruva/thebrig/working/thebrig_install.sh
sh thebrig_install.sh /mnt/path/to/brig 2
2. Update binaries for all jails over Extensions|TheBrig|FreeBSD Update tab
After update you have 9.1-RELEASE-p10
3. Upgrade jails to FreeBSD 9.2
enter to each jail and type command

Code: Select all

freebsd-update upgrade -r 9.2-RELEASE
freebsd-update install
After upgrade you have jails with 9.2-RELEASE world
4. Just now upgrade base NAS4Free system from 9.1 to 9.2
5. Update binaries from over Extensions|TheBrig|FreeBSD Update tab again.
6. Update ports .
If you use cental ports - one ports folder for all jail, update over webgui page Extensions|TheBrig|Central Ports
If you use standart ports - use

Code: Select all

portsnap fetch update
for each jail or remove old ports and install new
7. Upgrade software inside jail by portupgrade or portmaster tool.
Hi Alex!

I tried this one, as I wanted to upgrade to current 9.2. However, it doesn't work for slim jails I have created with TheBrig 0.7...

I'll quote myself here, just to make the post clearer... PROBLEM SOLVED (see EDIT3 below)
First tried it as shown here, but after point 2. the jails do not show as "9.1-RELEASE-p10", they stay at "Downloaded Version" "No Tag".
Then I tried it in the jail:

Code: Select all

# freebsd-update fetch
and the jail shows as "Downloaded Version" "9.1-RELEASE-p10", but when I want to actually update it with

Code: Select all

# freebsd-update install
I get:

Code: Select all

root@minidlna:/ # freebsd-update install
Installing updates...chflags: ///lib/libc.so.7: Read-only file system
Do you have a tip how to circumvent this? Of course, one could do it the hard way: Jail by Jail, always mouting an own copy of the basejail rw, but that wouldn't match the idea of slim jails...
I created a new test jail in TheBrig 0.8, however, and this one works. I can update it just the way you described. What files are missing in the older Jails that prevent the update from working? I'd love to update these Jails without having to recreate them, as it too quite some time to get everything configured in there.

And an additional question:
After this attempt to update the jails, the mounting of basejail got lost -- the basejail isn't mounted automatically anymore, even after reboot. After manually mounting the basejail, however, jails run fine again.
Where is the correct place to put the mount commands for the basejail, to get this back to original state?

EDIT:
I just checked in comparison to the new test jail, in the /etc/fstab.{jailname} created for the older jails, the entry for the basejail is missing now...

EDIT2:
Found the solution for this problem, somehow the config file may have changed with the update, but my old jails till had:
<type>slim</type>
in the config, but the the following is needed:
<jail_type>slim</jail_type>

EDIT3:
Its me again. It was indeed only the problem with the config file not being correctly updated on TheBrig update. After manully adapting the config file (see EDIT2), the jails finally update as they should. currently running the "freebsd-update upgrade -r 9.2-RELEASE" on all my three jails.

EDIT4:
OK, cheered too soon...

Code: Select all

root@madsonic:/ # freebsd-update install
Installing updates...chflags: ///bin/rcp: Read-only file system
So I am stuck in Step 3...

EDIT5:
Getting closer...
Using the {Jails_basedir}/conf/freebsd-update_thin.conf and adding "/usr/lib" under "IgnorePaths" (as this is also in the basejail), the files to be changed after "freebsd-update upgrade -r 9.2-RELEASE" look reasonable. Only planed changes in /etc, /root and /var left over. However, I still cannot finish the upgrade to 9.2-RELEASE:

Code: Select all

root@test:/ # freebsd-update install
Installing updates...mkdir: /boot/kernel.old: Read-only file system
mtree: /boot/kernel.old: No such file or directory
touch: /boot/kernel.old/.freebsd-update: No such file or directory
Could not create kernel backup directory
EDIT6:
Finally, I got it working!
In addition to adding "/usr/lib" under "IgnorePaths" I had to add "BackupKernel no". Then, finally "freebsd-update install" finished.

Code: Select all

root@test:/ # freebsd-update install
Installing updates... done.
root@test:/ # 
axc27
@axc27
Thank you very much for this post as you have saved me a ton of work! :D
I updated to version 0.8 and found that I couldn't start any of my jails.

[*]/etc/fstab.[jail] files I found to have dropped the mount for the basejail and had to be manually added to most.

[*]The config had indeed changed the jail type from <type>slim</type> to <jail_type /> and had to be corrected. Using the import config didn't work and I have to mount cf as rw to correct this… i.e. "umount /cf && mount -o rw /cf" make changes, then "umount /cf && mount -o ro /cf".

[*]I also found that ticking the "Allow SystemV IPC use from within a jail" is not working, I only need in one of my jails so I added it in /etc/rc.conf.local as an option for the one jail:
jail_[jail_name]_parameters="allow.sysvipc=1"

Now to figure out what the heck happened…

knotworking
Starter
Starter
Posts: 21
Joined: 17 Nov 2012 13:35
Status: Offline

Re: TheBrig - webgui extension for jail

Post by knotworking »

I'm running into a roadblock with a new install, 9.2.0.1 - Shigawire (revision 972) on a x64-embedded on AMD FX(tm)-6300 Six-Core Processor. I was able to set everything up in less than 5 minutes on my old build. I go through all the installation steps to get the working branch installed with no problems, setup my first jail, but then it won't start. Log errors:

[2014/04/30 07:47:33]: TheBrig error!: mount: /mnt/Tank_1/Jail/plex/dev: No such file or directory
[2014/04/30 07:47:33]: TheBrig error!: df: /mnt/Tank_1/Jail/plex/dev: No such file or directory
[2014/04/30 07:47:33]: TheBrig error!: mount: /mnt/Tank_1/Jail/plex/dev: No such file or directory
[2014/04/30 07:47:33]: TheBrig error!: /etc/rc.d/jail: WARNING: devfs_domount(): Unable to mount devfs on /mnt/Tank_1/Jail/plex/dev
[2014/04/30 07:47:33]: TheBrig error!: /etc/rc.d/jail: WARNING: devfs_mount_jail: devfs was not mounted on /mnt/Tank_1/Jail/plex/dev
[2014/04/30 07:47:33]: TheBrig error!: ln: /mnt/Tank_1/Jail/plex/dev/log: No such file or directory

I don't recall having to create those directories when I previously installed, but I went ahead and created them inside the plex folder to see if that would fix the problem. No luck, I get the exact same error messages...

knotworking
Starter
Starter
Posts: 21
Joined: 17 Nov 2012 13:35
Status: Offline

Re: TheBrig - webgui extension for jail

Post by knotworking »

Still can't figure out what's wrong, I've removed & reinstalled the extension and read every thread google can return (unfortunately, there's not a lot of relevant info readily available). Has a fresh install of this extension on 9.2 been tested (seems everything relates to upgrading from 9.1)?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by raulfg3 »

Please be patient until alexey123 have time to revise thebrig.

Until done, You can use finch instead.

viewtopic.php?f=79&t=6260&hilit=Finch#p34467
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

knotworking
Starter
Starter
Posts: 21
Joined: 17 Nov 2012 13:35
Status: Offline

Re: TheBrig - webgui extension for jail

Post by knotworking »

Sure thing, I was just worried it was something I had wrong with my new build. Just so I'm clear, you are confirming there is a current issue with thebrig & the latest N4F release??

Thanks Raul!

mrjrussell
Starter
Starter
Posts: 48
Joined: 26 Jun 2012 04:31
Status: Offline

Re: TheBrig - webgui extension for jail

Post by mrjrussell »

I am having an issue after deleting a jail the folder is gone but it still shows on the brig home page . is there a way i can delete it form the config file?
SGI Rackable NM46X, x64 Dual Processor - embedded on Dual-Core AMD Opteron(tm) Processor 8216 HE 16GB Ram -9.2.0.1 - Shigawire (rev 925)
My setup posting.php?mode=edit&f=63&t=179&p=363

karlandtanya
Starter
Starter
Posts: 49
Joined: 23 Jan 2014 15:31
Location: nelson twp, OH, USA
Status: Offline

Please Help with workaround for latency

Post by karlandtanya »

fsbruva wrote:If it doesn't work the first time, just try clicking it again. The error encountered is sometimes due to a network latency issue that is hard to narrow down within PHP. It has to do with the only way I could figure out to have php query the FTP server for the available distributions.

I will amend the error message so it is more informative in the next release. This is, after all, still in alpha stage. No one should be installing it thinking it will work well. :roll:
Thank you for this suggestion it makes sense in my case:
I also see many of these in thebrigerror.txt:
ftp: Reading from network: Bad file descriptor
ftp: Writing `-': Bad file descriptor

My internet is by satellite at home with lots of latency!
But I can download the files using the brig in a VM at when I am at the office. Then manually place them in /mnt/data/thebrig/work.

When I do that they appear as "Custom Flavor (Homegrown)".
Does this affect function in any way?
How can I tell thebrig that these are really Official FreeBSD Flavor?

Thank you again for an excellent extension. This makes it very easy to learn about jails and have many features in embedded N4F!

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: Please Help with workaround for latency

Post by MikeMac »

karlandtanya wrote:How can I tell thebrig that these are really Official FreeBSD Flavor?
try to rename official files with TheBrig naming convention, as example for base archive use
FreeBSD-amd64-9.2-RELEASE-base.txz

Also I am not sure second step is nessesary, but had downloaded also manifest named exactly as "9.2-RELEASE_amd64_MANIFEST"

karlandtanya
Starter
Starter
Posts: 49
Joined: 23 Jan 2014 15:31
Location: nelson twp, OH, USA
Status: Offline

Re: Please Help with workaround for latency

Post by karlandtanya »

MikeMac wrote:
karlandtanya wrote:How can I tell thebrig that these are really Official FreeBSD Flavor?
try to rename official files with TheBrig naming convention, as example for base archive use
FreeBSD-amd64-9.2-RELEASE-base.txz

Also I am not sure second step is nessesary, but had downloaded also manifest named exactly as "9.2-RELEASE_amd64_MANIFEST"
Yes, thank you very much; that worked like a champ!
I downloaded the files in a VM at work using thebrig, then copied the txz and manifest to my home machine.
They are recognized perfectly.

karlandtanya
Starter
Starter
Posts: 49
Joined: 23 Jan 2014 15:31
Location: nelson twp, OH, USA
Status: Offline

Should fstab editor append or replace /etc/fstab.myjail?

Post by karlandtanya »

I have run across something I don't quite understand:

While using thebrig vers 0.8 (github says this is the latest as of today), I add the following to one a slim jail:
Image

After this, the jail will no longer start!
However, when I look at /etc/fstab.mysql I see:

Code: Select all

# cat /etc/fstab.mysql 
/mnt/data/backups/SQL/GizmoNAS /mnt/data/thebrig/mysql/mnt/data/backups/SQL/GizmoNAS nullfs rw 0 0
/mnt/data/scripts /mnt/data/thebrig/mysql/mnt/data/scripts nullfs ro 0 0
but in my other brig (which I have not added any fstab entries), I see this:

Code: Select all

# cat /etc/fstab.dnsmasq                                                                                                                                       
/mnt/data/thebrig/basejail /mnt/data/thebrig/dnsmasq/basejail nullfs ro 0 0
devfs /mnt/data/thebrig/dnsmasq/dev devfs rw 0 0
procfs /mnt/data/thebrig/dnsmasq/proc procfs rw 0 0
OK, it's very obvious why it won't start; the slim jail can't find the base jail!
So, copypaste and edit back into mysql brig...
Image

And, now the jail will start again (yaaay!)
And inspecting /etc/fstab.mysql, I see...

Code: Select all

 # cat /etc/fstab.mysql 
/mnt/data/thebrig/basejail /mnt/data/thebrig/mysql/basejail nullfs ro 0 0
devfs /mnt/data/thebrig/mysql/dev devfs rw 0 0
procfs /mnt/data/thebrig/mysql/proc procfs rw 0 0
/mnt/data/backups/SQL/GizmoNAS /mnt/data/thebrig/mysql/mnt/data/backups/SQL/GizmoNAS nullfs rw 0 0
/mnt/data/scripts /mnt/data/thebrig/mysql/mnt/data/scripts nullfs ro 0 0

So, I guess the function of the fstab editor is "replace" not "append".

Clearly it works just fine if I put the whole thing in there, so I am very happy: :D
I only ask is it meant to append or replace?

knotworking
Starter
Starter
Posts: 21
Joined: 17 Nov 2012 13:35
Status: Offline

Re: TheBrig - webgui extension for jail

Post by knotworking »

raulfg3 wrote:Please be patient until alexey123 have time to revise thebrig.

Until done, You can use finch instead.

viewtopic.php?f=79&t=6260&hilit=Finch#p34467
Hi Raul, do you know if Alexey has had a chance to look into any issues with BSD10/9.2 (fresh installs) and theBrig?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: TheBrig - webgui extension for jail

Post by raulfg3 »

knotworking wrote:Hi Raul, do you know if Alexey has had a chance to look into any issues with BSD10/9.2 (fresh installs) and theBrig?
still no changes in gitHUB: https://github.com/fsbruva/thebrig/commits/working

so no, Alexey123 still do not revise the code.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

karlandtanya
Starter
Starter
Posts: 49
Joined: 23 Jan 2014 15:31
Location: nelson twp, OH, USA
Status: Offline

Thank you for your excellent work!

Post by karlandtanya »

I want to leave a note that's not complaining about some problem I can't figure out!

Thank you for this excellent software addon for nas4free. It's easy to use for a complete freebsd noob and allows me to install additional packages while still using an "embedded" nas4free system. Also makes a great opportunity to learn about jails.

I use it very easily for mysql server in nas4free.
Working on dnsmasq in a jail and have learned a lot about freebsd and jails security prohibitions (but not functioning yet.).

Anyhow, thanks very much for your contribution for all of us to benefit.

Post Reply

Return to “Jails”