Page 10 of 25

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

Posted: 02 Mar 2015 20:34
by pup26
Hi
Regarding 2. I tried to install one of this but there is not ID and it appears to be in Stopped status. Am I doing something wrong?

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

Posted: 02 Mar 2015 22:26
by zakroma
Hey!

I have an annoying bug on the Brig page: I got 2 jails duplicated and 1 stopped jail being some kind of a ghost Jail with no info.
Image

jls returns correct values:

Code: Select all

   JID  IP Address      Hostname                      Path
     1  192.168.1.75    filebot.local                 /mnt/Salmon/Jail/filebot
     2  192.168.1.74    flexget.local                 /mnt/Salmon/Jail/flexget
     3  192.168.1.76    torrentmonitor.local          /mnt/Salmon/Jail/torrentmonitor

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

Posted: 05 Mar 2015 20:29
by pup26
Hi

Kinda stuck here, would appreciate the help. thanks!

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

Posted: 08 Mar 2015 20:31
by fsbruva
@pup26 - What is your question? Please use Google translate if English is the issue. When you tried to create a jail out of nothing (no base tarball), TheBrig warned you that you were asking the impossible. TheBrig doesn't automatically fetch the tarballs needed because you have a choice of what version FreeBSD you want to use. Did you download a base tarball? Or did you attempt to create a "custom" jail with no files? The ID is empty because the jail is stopped. Nas4Free will assign a new ID every time a jail is started. Also, if you are using Nas4Free 9.3, there might problems with getting jails to start. This is why Alexey and I are re-writing TheBrig.

@zakroma - It appears you somehow got some bad entries into your config.xml. Please send me a PM with the section of your config.xml under <thebrig> key. If you need help with this, send me a PM.

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

Posted: 16 Mar 2015 06:34
by ernie
Hello,

In the webgui, I cannot delete a jail. The nas works during a very long time (more than 6 hours ) in order to delete. I stop it.
I decided to delete as explained here : http://wiki.nas4free.org/doku.php?id=do ... owto:jails

But I don t find the jail_list file.
Where I can find it ?
Thanks

Edit

In fact if I follow the Tuto except the jail_list file, I can delete the jail in the webgui. Sure there is no content but the jail disappears of the webgui.

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

Posted: 28 Mar 2015 04:08
by Cataligh
I'm trying to recreate my jail. Basically copy it into another jail. I archived the jail folder and built a new jail using that archive. It started, and all my files seem to be there, but the usr/local/bin folder is not there. Am I doing something wrong? I was surprised that the "python" command and the "mysql" command did not work and then realized that the entire usr/local/bin folder was not there.

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

Posted: 29 Mar 2015 00:52
by mrjrussell
Has anyone ran into this issue ?

my jail is still running but messed up in the brig
Capture.JPG
any idea how to fix it or remove it from the list and recreate my jail ?

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

Posted: 03 Apr 2015 17:55
by lukinoway
Hello,

sorry that i bother you with my question, but I couldn't find any good answer for this.

how can I setup the lo0 device in my jail?
is there any way to setup this in the web interface?

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

Posted: 03 Apr 2015 23:21
by StanEsmith
Lo0 device? Are talking about the internet device itself? Mine is labled differently. You can find the device information in the webgui under interfaces. Shouldn't need to be configured as it should be set by default.

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

Posted: 12 Apr 2015 07:10
by cp.engr
Judging by the colons (':') with nothing following, there seems to be several missing pictures in the first several posts - which makes much of them unclear.

Can the OP fix this?

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

Posted: 12 Apr 2015 10:39
by cp.engr
I installed N4F embedded in a (VirtualBox) VM, to experiment. I installed thebrig, and setup a jail.

The jail couldn't resolve any DNS names, so for instance, I couldn't pkg install. I fixed that issue by copying /etc/resolv.conf from the host to the jail.

Why was that necessary? Is it expected? Is there an option to specify on jail creation to do that?

Thanks.


References:

DNS in jail not working
Why does my jail not resolve hostnames? (archived version of broken link from the first forum thread)

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

Posted: 13 Apr 2015 15:35
by Iolar
Hey,

I need some assistance with an issue I'm experiencing. I can't seem to be able to upgrade my jail, it shows a newer version downloaded but it says there are no upgrades needed and I can't install the downloaded version (with the usual fetch error). Has anyone experienced this before? Any words of wisdom would be great!
Jail_Update.PNG

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

Posted: 04 May 2015 04:02
by bxOddu2hGL3D
I am getting this error:

$ /bin/sh /tmp/thebrig_install.sh /mnt/XXXXXX/
Retrieving the most recent version of TheBrig
Unpacking the tarball...
X-Powered-By: PHP/5.6.7
Content-type: text/html; charset=UTF-8


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

Previous steps:
fetch -o /tmp/thebrig_install.sh https://github.com/fsbruva/thebrig/raw/ ... install.sh
chmod a+x /tmp/thebrig_install.sh

embedded 9.3.0.2 - Nayla (revision 1391)

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

Posted: 04 May 2015 07:31
by raulfg3
widely answered on this forum, please add a "2" at the end of the command:

/bin/sh /tmp/thebrig_install.sh /mnt/XXXXXX/jails 2


and please be sure that /mnt/XXXXXX/ exist

XXXXXX must be your mount point and XXXXXX/jails a folder inside your mount point to install jails and "thebrig".

I really think that is well explained here: viewtopic.php?f=79&t=3894

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

Posted: 11 May 2015 02:23
by ExTruckie
I get to the point in the install where you refresh the browser and see extensions. I do not have an extension tab. I have this in my file manager
nas filemanager 2.png
What did I do wrong??

Thanks

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

Posted: 11 May 2015 02:25
by alexey123

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

Posted: 11 May 2015 02:34
by ExTruckie
alexey123 wrote:See this viewtopic.php?f=56&t=8870

I don't understand. How does this help?

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

Posted: 11 May 2015 03:17
by ExTruckie
Reran using the suggested method and got this in the middle.
install.png
It seems that there is something wrong with the file. Is there another source?

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

Posted: 11 May 2015 14:45
by geaves
Hi, just picking up on your 2 posts, as I'm not as tech minded as some of the guys on here, I followed https://www.youtube.com/watch?v=5AnUkYh2kzA to actually installed The Brig and stopped at the point of starting an install for OwnCloud, then followed his video for Plex, you should enable SSH and use Putty for the installation, rather than the WebGui.

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

Posted: 11 May 2015 17:39
by ExTruckie
I actually have tried to install the jail both thru the cmd line here and thru putty. At least this tells me why it is failing. I will look at it again after work.


Sent from my iPhone using Tapatalk

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

Posted: 12 May 2015 00:33
by ExTruckie
Still Trying
Get this when trying to remove the previous attempt.
May 11 18:18:55 nas4free-server root: cannot destroy 'TestRaid/Jail': filesystem has children use '-r' to destroy the following datasets: TestRaid/Jail@auto-20150510-200000
How do I remove it? Sadly code is my downfall, if I can't cut and paste, forget it!

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

Posted: 12 May 2015 00:37
by ExTruckie
geaves wrote:Hi, just picking up on your 2 posts, as I'm not as tech minded as some of the guys on here, I followed https://www.youtube.com/watch?v=5AnUkYh2kzA to actually installed The Brig and stopped at the point of starting an install for OwnCloud, then followed his video for Plex, you should enable SSH and use Putty for the installation, rather than the WebGui.
I did try it too and it stills fails. I don't get the response from the putty window locally as the video shows so I know something is amiss.

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

Posted: 12 May 2015 01:04
by ExTruckie
This is the log from the last putty attempt.
It's not installing
This is the code used in the video tutorial

[mark@nas4free-server ~]$ cd /mnt/TestRaid/Jail
[mark@nas4free-server ~/TestRaid/Jail]$ fetch https://github.com/fsbruva/thebrig/raw/ ... install.sh
thebrig_install.sh 100% of 4053 B 19 MBps 00m00s
[mark@nas4free-server ~/TestRaid/Jail]$ chmod a+x /tmp/thebrig_install.sh
[mark@nas4free-server ~/TestRaid/Jail]$
[mark@nas4free-server ~/TestRaid/Jail]$ chmod a+x /tmp/thebrig_install.sh
[mark@nas4free-server ~/TestRaid/Jail]$ chmod a+x thebrig_install.sh
[mark@nas4free-server ~/TestRaid/Jail]$ ./thebrig_install.sh /mnt/TestRaid/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 2578 kBps 00m00s
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

So what am I missing??
I is a persistent one I is

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

Posted: 12 May 2015 09:30
by geaves
The output looks Ok as the tarball has extracted, do you not get at the end, congratulations you have successfully installed The Brig. I have done mine twice only because I decided to change the ZFS volume it was going to be installed into and each time it worked by following that video.

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

Posted: 12 May 2015 11:49
by ExTruckie
geaves wrote:The output looks Ok as the tarball has extracted, do you not get at the end, congratulations you have successfully installed The Brig. I have done mine twice only because I decided to change the ZFS volume it was going to be installed into and each time it worked by following that video.
Then I am beginning to think that the problem is the way I have my data volume set up. At work now and won't be able to do anything about this until I get home.



Sent from my iPhone using Tapatalk

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

Posted: 12 May 2015 12:46
by Cataligh
I'm having trouble copying an existing brig jail. I first archive the entire jail folder. Then I create a new slim jail using the archive as the source. This creates a jail that I can start, and it has all of my personal files, but I cannot run any commands and /usr/local/bin is completely missing. I can't even run "pkg install." I try to use it and it says it's not installed, would I like to install it, I choose yes, it says it's already installed, and that repeats every time I try to use the "pkg" command.

What am I doing wrong here? It seems to make a perfect jail, it starts, but it's missing all of my important system files. All the programs I installed are not there, for example, python, mysql, gcc, they are all missing, the entire bin folder is missing. Any advice for copying an existing brig jail?

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

Posted: 12 May 2015 14:15
by geaves
ExTruckie wrote:This is the log from the last putty attempt.
It's not installing
This is the code used in the video tutorial

[mark@nas4free-server ~]$ cd /mnt/TestRaid/Jail
[mark@nas4free-server ~/TestRaid/Jail]$ fetch https://github.com/fsbruva/thebrig/raw/ ... install.sh
thebrig_install.sh 100% of 4053 B 19 MBps 00m00s
[mark@nas4free-server ~/TestRaid/Jail]$ chmod a+x /tmp/thebrig_install.sh
[mark@nas4free-server ~/TestRaid/Jail]$
[mark@nas4free-server ~/TestRaid/Jail]$ chmod a+x /tmp/thebrig_install.sh
[mark@nas4free-server ~/TestRaid/Jail]$ chmod a+x thebrig_install.sh
[mark@nas4free-server ~/TestRaid/Jail]$ ./thebrig_install.sh /mnt/TestRaid/Jail 2

So what am I missing??
I is a persistent one I is
Sorry buy I think I can now 'see' why it's not working, you need to login as root via putty...this is my output just to mount where I have created the dataset and should be the same for a folder...the output of mine is a direct copy from the Putty window.

login as: root
root@192.168.1.92's password:
Last login: Tue May 12 12:56:55 2015 from 192.168.1.95
Welcome to NAS4Free!
nas4free: ~ # cd /mnt/Volume1/Jail
nas4free: Jail #

Yours is showing mark@nas4free-server....personally if you have named your nas box as nas4free-server I would lose the -server, and you can rename it in the WebGui.

If I open a terminal on my linux box I get geoff@mint-pc ~ $ because I am the one logged in therefore it displays my name, if I open a terminal window and login/change to root I get mint-pc ~ #.....can you see the difference? Therefore the difference between my nas4free login and yours.

[HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 12 May 2015 15:35
by ExTruckie
I see! That has to be it! Too bad I can't do anything about this yet. I don't get home for another 7 hours and don't have remote access or port forwarding set up yet. One of the things I want to do after I get ownCloud set up is to be able to access all my pictures on the server remotely. I will post results later.


Sent from my iPhone using Tapatalk

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

Posted: 13 May 2015 00:17
by ExTruckie
Geaves!!

Your the man!! :D :D :D That was it. I was not logged in root when trying to install the jail. :D :D :D :D

I hope others see this that are having trouble and it helps someone else too.

Thank you

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

Posted: 13 May 2015 09:38
by geaves
ExTruckie wrote:Geaves!!

Your the man!! :D :D :D That was it. I was not logged in root when trying to install the jail. :D :D :D :D

I hope others see this that are having trouble and it helps someone else too.

Thank you
Great, hopefully you'll get owncloud installed without a hitch, but don't forget to login as root to install ;)