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
User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

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

Post by alexey123 »

Connect over ssh
Go to blabla/thebrig/conf/bin folder and check permissions for file ftp.
ls - l ftp
Must be - 755.
Image
Maximum execute

Code: Select all

 chmod 755 ftp
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

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

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

Post by mrjrussell »

ugh so I upgraded the NAS4Free embedded to 9.2.0.1 - Shigawire (revision 925) so I could install the new php virtual box and now i cant get the brig to install


when I install from the advanced commands page or ssh I get the same error

Attempting to create a new destination directory.....
Retrieving the testing branch as a zip file
Unpacking the tarball...
X-Powered-By: PHP/5.5.7
Content-type: text/html


Parse error: syntax error, unexpected '<' in /bin/sh on line 90
You use fresh version


I am also having a hard time deleting the old directory for the old jail installs.
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

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

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

Post by mrjrussell »

Should I install TheBrig and then install virtuabox inside a jail or would that have performance issues?
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

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

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

Post by alexey123 »

I dont know about performance Virtualbox inside jail, you'll be the first to check :D
I know , that for compille minidlna with jail (64 bit) , I need ~6 hours, but if I compile x86 under Virtual box I need more than 28 hours.
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

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

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

Post by mrjrussell »

alexey123 wrote:I dont know about performance Virtualbox inside jail, you'll be the first to check :D
I know , that for compille minidlna with jail (64 bit) , I need ~6 hours, but if I compile x86 under Virtual box I need more than 28 hours.

I was thinking about a Mini itx e350 and put the computer next to my TV on a shelf.
I am using a SGI rackable Arima nm46x dual opteron 2400 (4x cores) 16 gigs ram. I am using the kernel performance setting to dialed down the performance settings so I can run her quiet on a set of PWM fans. I was also considering mounting the computer in a home made wooden box so it would look like a piece of av equipment.
I did the complete serviio install with ffmpeg in a jail in about 2-3 hours when I had the performance set to max.
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

User avatar
westoztux
NewUser
NewUser
Posts: 7
Joined: 23 Nov 2014 14:14
Status: Offline

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

Post by westoztux »

Hi
I am having some trouble installing TheBrig, I have followed this guide but the install hangs at the output is below but im not sure why. Any help appreciated. Thank you

./thebrig_install.sh /mnt/N4FPool1/Jail 2
Retrieving the testing branch as a zip file
fetch: https://github.com/fsbruva/thebrig/archive/working.zip: size of remote file is not known
working.zip 248 kB 184 kBps 00m01s
Unpacking the tarball...
x README
x conf/
x conf/bin/
x conf/bin/change_ver.php
x conf/bin/ftp_amd64
x conf/bin/ftp_i386
x conf/bin/jail.sh
x conf/bin/thebrig_fetch.sh
x conf/bin/thebrig_ports_cron.php
x conf/bin/thebrig_start.php
x conf/bin/thebrig_start.sh
x conf/bin/thebrig_stop.sh
x conf/bin/thebrig_update_cron.php
x conf/ext/
x conf/ext/thebrig/
x conf/ext/thebrig/extensions_thebrig.php
x conf/ext/thebrig/extensions_thebrig_check.php
x conf/ext/thebrig/extensions_thebrig_config.php
x conf/ext/thebrig/extensions_thebrig_download.php
x conf/ext/thebrig/extensions_thebrig_edit.php
x conf/ext/thebrig/extensions_thebrig_fstab.php
x conf/ext/thebrig/extensions_thebrig_log.php
x conf/ext/thebrig/extensions_thebrig_manager.php
x conf/ext/thebrig/extensions_thebrig_ports.php
x conf/ext/thebrig/extensions_thebrig_tarballs.php
x conf/ext/thebrig/extensions_thebrig_tools.php
x conf/ext/thebrig/extensions_thebrig_update.php
x conf/ext/thebrig/fstab.png
x conf/ext/thebrig/functions.inc
x conf/ext/thebrig/lang.inc
x conf/ext/thebrig/menu.inc
x conf/ext/thebrig/off_small.png
x conf/ext/thebrig/on_small.png
x conf/freebsd-update.conf
x conf/freebsd-update_thin.conf
x conf/make.conf
x conf/periodic.conf
x conf/portsnap.conf
x conf/sbin/
x conf/sbin/freebsd-update
x conf/sbin/portsnap
x thebrig_install.sh

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

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

Post by alexey123 »

So, installer fetch tarball, extracted it and stopped?

You connect over ssh or use webinterface for command?
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

User avatar
westoztux
NewUser
NewUser
Posts: 7
Joined: 23 Nov 2014 14:14
Status: Offline

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

Post by westoztux »

Thanks alexy
yes the install just hung at the last line of the output i posted . i connected via ssh to my server which is running 9.2.0.1

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

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

Post by alexey123 »

Veri strangle - I tried more then 20 times, but not have problem

Code: Select all

nasbox: ~ # fetch https://raw.githubusercontent.com/fsbruva/thebrig/working/thebrig_install.sh
thebrig_install.sh                            100% of 4053  B 6166 kBps 00m00s
nasbox: ~ # sh thebrig_install.sh /mnt/disk/app 2
Attempting to create a new destination directory.....
Retrieving the testing branch as a zip file
fetch: https://github.com/fsbruva/thebrig/archive/working.zip: size of remote file is not known
working.zip                                            248 kB   57 kBps 00m04s
Unpacking the tarball...
x README
x conf/
x conf/bin/
x conf/bin/change_ver.php
x conf/bin/ftp_amd64
x conf/bin/ftp_i386
x conf/bin/jail.sh
x conf/bin/thebrig_fetch.sh
x conf/bin/thebrig_ports_cron.php
x conf/bin/thebrig_start.php
x conf/bin/thebrig_start.sh
x conf/bin/thebrig_stop.sh
x conf/bin/thebrig_update_cron.php
x conf/ext/
x conf/ext/thebrig/
x conf/ext/thebrig/extensions_thebrig.php
x conf/ext/thebrig/extensions_thebrig_check.php
x conf/ext/thebrig/extensions_thebrig_config.php
x conf/ext/thebrig/extensions_thebrig_download.php
x conf/ext/thebrig/extensions_thebrig_edit.php
x conf/ext/thebrig/extensions_thebrig_fstab.php
x conf/ext/thebrig/extensions_thebrig_log.php
x conf/ext/thebrig/extensions_thebrig_manager.php
x conf/ext/thebrig/extensions_thebrig_ports.php
x conf/ext/thebrig/extensions_thebrig_tarballs.php
x conf/ext/thebrig/extensions_thebrig_tools.php
x conf/ext/thebrig/extensions_thebrig_update.php
x conf/ext/thebrig/fstab.png
x conf/ext/thebrig/functions.inc
x conf/ext/thebrig/lang.inc
x conf/ext/thebrig/menu.inc
x conf/ext/thebrig/off_small.png
x conf/ext/thebrig/on_small.png
x conf/freebsd-update.conf
x conf/freebsd-update_thin.conf
x conf/make.conf
x conf/periodic.conf
x conf/portsnap.conf
x conf/sbin/
x conf/sbin/freebsd-update
x conf/sbin/portsnap
x thebrig_install.sh
No need updates 
You use fresh version
nasbox: ~ # 
Hmm? you connect to NAS as root and begin to install TheBrig? Do you have full version or embedded ?
If embedded? please checkfree space, Need ~ 1.2M

Code: Select all

df -h | grep md0
My output

Code: Select all

nasbox: ~ # df -h |grep md0
/dev/md0                             223M    220M    3.7M    98%    /
nasbox: ~ #
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

User avatar
westoztux
NewUser
NewUser
Posts: 7
Joined: 23 Nov 2014 14:14
Status: Offline

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

Post by westoztux »

I checked for enough free space and it was ok , after reading your reply I think it was a problem with permissions. I rebooted the server and retried again but same result using an admin user , I then logged in with root user and the script worked immediatley . I should have tried this but overlooked it not relizing the admin in the wheel group did not have enough rights.
Thanks Alexy for your help here to find my mistake.

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

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

Post by mrjrussell »

I saw a linux option is there info on how to make this work?
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

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

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

Post by alexey123 »

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

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

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

Post by alexey123 »

TheBrig work with new 9.3.0.2.1176 as is..

You can upgrade binaries over freebsd update procedure

Image


OLD 9.2 binaries also work with 9.3 kernel


We begin work on new release for give more option, such VNET, jail multi IP and so.. Just wait...
VNET
Image
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

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

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

Post by MikeMac »

I try to install The Brig on 9.3.0.2 - Nayla (revision 1176), bare metal test hardware

There is certificate error
nayla: Jails # uname -a
FreeBSD nayla.local 9.3-RELEASE-p6 FreeBSD 9.3-RELEASE-p6 #0 r275701M: Thu Dec 11 14:56:33 CET 2014 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64

nayla: Jails # fetch https://raw.github.com/fsbruva/thebrig/ ... install.sh
Certificate verification failed for /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
4243:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:997:
fetch: https://raw.github.com/fsbruva/thebrig/ ... install.sh: Authentication error
By the way on 9.2.0.1 - Shigawire (rev 943) fetch works
nas4free Pool/ root~$ uname -a
FreeBSD nas4free.local 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0 r260900M: Mon Jan 20 07:22:46 CET 2014 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64


nas4free Pool/ root~$ fetch https://raw.github.com/fsbruva/thebrig/ ... install.sh
thebrig_install.sh 100% of 4053 B 24 MBps 00m00s

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

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

Post by alexey123 »

This is FreeBSD 9.3 and higher bug.
Before install anything from github execute

Code: Select all

setenv SSL_NO_VERIFY_PEER
Then install ca_root_nss on any jail, grab sertificate to main server and use ssl without crutch

UPD - problem solved rev 1182 https://sourceforge.net/p/nas4free/code/1182/
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

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

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

Post by MikeMac »

alexey123 wrote:

Code: Select all

setenv SSL_NO_VERIFY_PEER
Thank you, works. With 1182 will be better

Iolar
NewUser
NewUser
Posts: 6
Joined: 10 Jun 2013 16:06
Status: Offline

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

Post by Iolar »

alexey123 wrote: We begin work on new release for give more option, such VNET, jail multi IP and so.. Just wait...
VNET
Hey Alexey,

I was just wondering if there is anyway to manually configure the VNET settings for an active jail at this time? I'm having a comms issue between a DLNA client and server and I believe its a multicast issue, specifically to do with the server receiving multicast messages. I was hoping to run a test with VNET enabled but I can't seem to be able to get it working. The settings don't have to be persistent for the moment. I also running the latest versions of Nas4Free and TheBrig. I would appreciate any advice you could give.

Thanks! :D

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

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

Post by alexey123 »

Hi Iolar.
Thebrig not allow use VNET now , but we work on new version, which will know vnet, multi-ip , multi -if, ip4/ip6, mount zfs datasets, mount nullfs inside jail, more flexible jail commands.
All scripts for vnet, zfs are include into thebrig.

New version not ready for regular users today, sorry, just wait.

Screenshots from new Thebrig - all it work.
First page
Image

Edit page
General
Image
mounts:
Image
Network with vnet:
Image

Not work - updates freebsd-update and port update ( work but not stable, not work update itself ) and Thebrig need be compatible with 1 and 2 version - now it not compatible . :oops:
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

Iolar
NewUser
NewUser
Posts: 6
Joined: 10 Jun 2013 16:06
Status: Offline

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

Post by Iolar »

Hi,

That's excellent, the screenshots look promising. I'm more than happy to wait. Thank you for your continued development of TheBrig. I just hope the VNET capabilities sort out the issue I'm experiencing ;)

spoocky68
Starter
Starter
Posts: 24
Joined: 29 Dec 2014 13:54
Status: Offline

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

Post by spoocky68 »

Hi, I have an issue when I try to execute a jail.

I access NAS4FREE thru ssh, and in a console, I type that command: jexec 1 csh, 1 it's the number of the jail. But this message appears "jexec: jail_attach(1): Invalid argument"

What am I doing wrong?

Edit:

To kill my self. I gave IP with 192.168.x.x/32 format, and my network its x.x.x.x/24 !!!!! Change that and all goes fine!

Sorry!

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 282
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

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

Post by lindsay »

Thanks alexey123

Code: Select all

setenv SSL_NO_VERIFY_PEER
Now the brig finally works for me looking forward to the new version though ;)
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

Loka_muc
NewUser
NewUser
Posts: 1
Joined: 16 Jan 2015 11:53
Status: Offline

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

Post by Loka_muc »

Hi all,

sorry iam a realy Linux nub and not that familiar with all that stuff, even i am very familiar and expirienced with Windowsbased systems. I have done all and all worked until i rebooted.

Now my "Extension" Tab in the WebGUI is missing and I am failing to get it back. I have read that, due to the fact, that i have an Embedded USB system, this extension was not made persistent right? on the filesystem all files seems to be there, but I am failing to to the little trick of "reinitialise" the stuf, that it apears automatically after I reboot my NAS

Please anyone can give me a helping hand, where and what to do, edit whatever to solve my issue?

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

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

Post by raulfg3 »

Loka_muc wrote:Now my "Extension" Tab in the WebGUI is missing and I am failing to get it back. I have read that, due to the fact, that i have an Embedded USB system, this extension was not made persistent right?
False, "Extension" Tab is persistent on full & Embeded install, perhaps you have a liveCD or LiveUSB install (you boot from a liveCd or LiveUSB image) in this case is normal that "Extension" Tab dissapear (is a live OS)
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

korl
NewUser
NewUser
Posts: 4
Joined: 17 Jan 2015 22:19
Status: Offline

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

Post by korl »

Ok I have read evrything so far and can't seem to find an answer. Everything Seemed to install fine for TheBrig. I got to next step to Query Tarballs and I get this:

Code: Select all

Warning: stream_select(): No stream arrays were passed in /usr/local/www/ext/thebrig/extensions_thebrig_tarballs.php on line 121
Pressed button again and same error. It displays this message approx 10times then return to WebGUI with this error:

Code: Select all

The following input errors were detected:
There seems to be a networking issue. I can't reach ftp.freebsd.org. Please check DNS and other networking settings. If networking is working, then ensure the ftp binary is present.
Alternatively, try it again to see if there was some transient network problem.
Also TheBrig Log shows below:

[2015/01/18 19:32:58]: TheBrig error!: ftp: Reading from network: Bad file descriptor
[2015/01/18 19:32:58]: TheBrig error!: ftp: Writing `-': Bad file descriptor

Ping FTP.FreeBSD.Org from console gives:(I am on a Satellite connection)

Code: Select all

PING ftp.geo.freebsd.org (96.47.72.72): 56 data bytes
64 bytes from 96.47.72.72: icmp_seq=0 ttl=52 time=726.687 ms
Any Ideas?

dreamcat4
experienced User
experienced User
Posts: 111
Joined: 21 Mar 2014 21:59
Status: Offline

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

Post by dreamcat4 »

korl wrote:Ping FTP.FreeBSD.Org from console gives:(I am on a Satellite connection)

Code: Select all

PING ftp.geo.freebsd.org (96.47.72.72): 56 data bytes
64 bytes from 96.47.72.72: icmp_seq=0 ttl=52 time=726.687 ms
Your ping round trip time is over 10x greater than mine. Although 350ms doesn't sound half so bad going each way. It being over a satellite.

PING ftp.geo.freebsd.org (213.138.116.78): 56 data bytes
64 bytes from 213.138.116.78: icmp_seq=0 ttl=53 time=66.341 ms

Perhaps the error is related to some kind of a networking issue due to your satellite connection. On FreeBSD, FTP defaults to passive mode and will give up if there is an error. It may be that passive mode FTP won't work on your link. There are simple ways to check and verify if that is true or not. But opening up the ftp.freebsd.org url in a regular FTP Client (in PASSIVE mode, of course), and then seeing if you can download any files manually or not.

You see, PASSIVE uses UDP protocol. Which may mean individual packets get marked as lost if they take too long a time to reach their destination. Or in some circumstances, UDP packets may end up being dropped entirely. If something like that is your issue, you may want to try to set / hack in somewhere (probably inside the Brig script itself) the following environment variable:

export FTP_PASSIVE_MODE=NO

That will force the freebsd `fetch` command to use FTP active mode instead of the default passive mode. OR you can replace in the brig script all of the URLs like "ftp://ftp.freebsd.org/..." --> "http://ftp.freebsd.org/...". That would download the freebsd archives over HTTP protocol instead (which is also a good choice being TCP also). So either of those approaches are recommended for you over the default FTP passive mode.

Already fixed such issues for someone else in my Finch tool. Sorry i can't help with 'theBrig'.

These were the Finch fixes:
https://github.com/dreamcat4/finch/issues/2
https://github.com/dreamcat4/finch/comm ... 963be1ee3c

korl
NewUser
NewUser
Posts: 4
Joined: 17 Jan 2015 22:19
Status: Offline

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

Post by korl »

700MS times round trip from the research I did seems normal. Thanks I will look into it.

korl
NewUser
NewUser
Posts: 4
Joined: 17 Jan 2015 22:19
Status: Offline

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

Post by korl »

Changing read Timeout in File "extensions_thebrig_tarballs.php" from 10 to 100 worked(Line 79)

korl
NewUser
NewUser
Posts: 4
Joined: 17 Jan 2015 22:19
Status: Offline

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

Post by korl »

One more question. I can ping the jail's IP, I can ping my router from inside the jail but the jail itself does not seem to want to connect to the internet. Tried reading as much as I can on the subject(s) here and elsewhere and cannot seem to find an answer on why I can't access internet. Can anyone help?

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 »

I am having trouble getting the script to complete. I see all of the text I am supposed to see, but it just hangs there. Never completes. If I look for the jail in the webpage I do not see it. Why won't the script complete?

$ /bin/sh /tmp/thebrig_install.sh /mnt/VPool/Jail 2
Retrieving the testing branch as a zip file
working.zip 100% of 248 kB 174 kBps 00m02s
Unpacking the tarball...
x README
x conf/
x conf/bin/
x conf/bin/change_ver.php
x conf/bin/ftp_amd64
x conf/bin/ftp_i386
x conf/bin/jail.sh
x conf/bin/thebrig_fetch.sh
x conf/bin/thebrig_ports_cron.php
x conf/bin/thebrig_start.php
x conf/bin/thebrig_start.sh
x conf/bin/thebrig_stop.sh
x conf/bin/thebrig_update_cron.php
x conf/ext/
x conf/ext/thebrig/
x conf/ext/thebrig/extensions_thebrig.php
x conf/ext/thebrig/extensions_thebrig_check.php
x conf/ext/thebrig/extensions_thebrig_config.php
x conf/ext/thebrig/extensions_thebrig_download.php
x conf/ext/thebrig/extensions_thebrig_edit.php
x conf/ext/thebrig/extensions_thebrig_fstab.php
x conf/ext/thebrig/extensions_thebrig_log.php
x conf/ext/thebrig/extensions_thebrig_manager.php
x conf/ext/thebrig/extensions_thebrig_ports.php
x conf/ext/thebrig/extensions_thebrig_tarballs.php
x conf/ext/thebrig/extensions_thebrig_tools.php
x conf/ext/thebrig/extensions_thebrig_update.php
x conf/ext/thebrig/fstab.png
x conf/ext/thebrig/functions.inc
x conf/ext/thebrig/lang.inc
x conf/ext/thebrig/menu.inc
x conf/ext/thebrig/off_small.png
x conf/ext/thebrig/on_small.png
x conf/freebsd-update.conf
x conf/freebsd-update_thin.conf
x conf/make.conf
x conf/periodic.conf
x conf/portsnap.conf
x conf/sbin/
x conf/sbin/freebsd-update
x conf/sbin/portsnap
x thebrig_install.sh

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 »

# /bin/sh /tmp/thebrig_install.sh /mnt/NAS-A/Jail 2
$ /bin/sh /tmp/thebrig_install.sh /mnt/VPool/Jail 2
Please note the difference between
# -> executed by root
$ -> executed by users

to change your user you have to use the su command

Code: Select all

su {new_user}
in case of the root, the {new_user} can be omitted

Code: Select all

su
control+d will get you back to the previous user

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

Post Reply

Return to “Jails”