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!

Jail not working after restart

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Roelf
Starter
Starter
Posts: 25
Joined: 22 Mar 2014 23:54
Status: Offline

Jail not working after restart

Post by Roelf »

I setup TheBrig, and the jail worked. I also installed Plex inside the jail.

Once i restarted N4F, the jail did not start again.

I cannot get the jail to start again (also the "Stop", "start" button on TheBrig does not seem to work)

Any help appreciated !

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

Re: Jail not working after restart

Post by alexey123 »

devfs must be checked.

In all cases, you can start alcatraz jail aover command line

Code: Select all

/etc/rc.d/thebrig start {jailname}
and check current status

Code: Select all

/etc/rc.d/thebrig status
Also please goto backup/restore page, save jail's config and publish it here
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

Roelf
Starter
Starter
Posts: 25
Joined: 22 Mar 2014 23:54
Status: Offline

Re: Jail not working after restart

Post by Roelf »

If i run the commands you gave me, I get:

nas4free: / # etc/rc.d/thebrig start Plex
Starting jails: security.jail.enforce_statfs: 0 -> 0
Plex Plex already exists

Though it says it exists, if I type "jls" i get this:

nas4free: / # jls
JID IP Address Hostname Path
nas4free: / #


Here's the info from the Config.

-<thebrig> <rootfolder>/mnt/Viking/Twin/Jail/</rootfolder> <template>/mnt/Viking/Twin/Jail/template/</template> -<basejail> <folder>/mnt/Viking/Twin/Jail/basejail/</folder> </basejail> <version>0.9</version> -<content> <uuid>ab5f2ea7-d97d-4d88-b810-24d681e34038</uuid> <enable/> <jailno>1</jailno> <jailname>Plex</jailname> <jail_type>full</jail_type> <param>allow.mount</param> <param>allow.mount.devfs</param> <param>allow.mount.procfs</param> <param>allow.mount.zfs</param> <jailpath>/mnt/Viking/Twin/Jail/Plex/</jailpath> <allowedip>em0|192.168.0.61/24</allowedip> <epair_a_ip>192.168.1.251</epair_a_ip> <epair_a_mask>24</epair_a_mask> <epair_b_ip>192.168.1.251</epair_b_ip> <epair_b_mask>24</epair_b_mask> <if>em0</if> <rule/> <jail_mount/> <statfs>0</statfs> <devfs_enable/> <proc_enable/> <fdescfs_enable>yes</fdescfs_enable> <auxparam>/mnt /mnt/Viking/Twin/Jail/plex/mnt/Media nullfs rw 0 0</auxparam> <cmd/> <exec_start>/bin/sh /etc/rc</exec_start> <exec_stop>/bin/sh /etc/rc.shutdown</exec_stop> <desc>Plex Jail</desc> <base_ver>10.1-RELEASE</base_ver> <zfs_datasets>/mnt/Viking/Twin|/media</zfs_datasets> <zfs_enable/> <fib/> </content> <gl_statfs>0</gl_statfs> <thebrig_enable/> -<update> <cmd>bin/host</cmd> <cmd>bin/comm</cmd> <cmd>bin/join</cmd> <cmd>bin/lam</cmd> <cmd>bin/look</cmd> <cmd>bin/bspatch</cmd> <cmd>bin/openssl</cmd> <cmd>libexec/make_index</cmd> <cmd>libexec/phttpget</cmd> </update> </thebrig>

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

Re: Jail not working after restart

Post by alexey123 »

Roelf wrote:If i run the commands you gave me, I get:

nas4free: / # etc/rc.d/thebrig start Plex
Starting jails: security.jail.enforce_statfs: 0 -> 0
Plex Plex already exists

Though it says it exists, if I type "jls" i get this:

nas4free: / # jls
JID IP Address Hostname Path
nas4free: / #
go to /var/run and finfd file jail_Plex.id (or something )/ Remove it manually.
Then edit jail and check mout devfs
then try to start/stop jail over command line
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

Roelf
Starter
Starter
Posts: 25
Joined: 22 Mar 2014 23:54
Status: Offline

Re: Jail not working after restart

Post by Roelf »

I did that - it does not give the same error - but it says "no such file or directory" - and that is because of it being "plex" instead of "Plex" - but i cannot find the place to correct it...

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

Re: Jail not working after restart

Post by alexey123 »

when I return at home, I check your config
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

Roelf
Starter
Starter
Posts: 25
Joined: 22 Mar 2014 23:54
Status: Offline

Re: Jail not working after restart

Post by Roelf »

thanks

Roelf
Starter
Starter
Posts: 25
Joined: 22 Mar 2014 23:54
Status: Offline

Re: Jail not working after restart

Post by Roelf »

OK - so i've corrected that problem - in the fstab.plex
I found it in the folder /mnt/Viking/Twin/Jail/conf/jails

Now however i seem to have a problem with a way i specified the mounts.

nas4free: run # /etc/rc.d/thebrig start Plex
Starting jails: security.jail.enforce_statfs: 0 -> 0
Plex mount_nullfs: /mnt (/mnt) and /mnt/Viking/Twin/Jail/Plex/mnt/Media are not distinct paths
jail: Plex: /sbin/mount -t nullfs -o rw /mnt /mnt/Viking/Twin/Jail/Plex/mnt/Media: failed

Roelf
Starter
Starter
Posts: 25
Joined: 22 Mar 2014 23:54
Status: Offline

Re: Jail not working after restart

Post by Roelf »

i have now managed to get it all running - after various re-installs and jail reconfiguring

I also now have Plex running. However I am having difficulty with the mount points.

I can see the directories in Plex (when adding a directory for movies) but I cannot get "into" the directories. I suspect it a permission problem. After reading through pages and pages on FreeBSD site i cannot figure it out...

I have the following in TheBrig under the "fstab for current jail"
/mnt/Viking/Twin/Media /mnt/Viking/Twin/Jail/Plex/mnt/Twin nullfs rw 0 0
/mnt/Alien/Singleton/Media /mnt/Viking/Twin/Jail/Plex/mnt/Singleton nullfs rw 0 0

And the permissions for those files are:
root@Plex:/mnt # ls -l
total 34
drwxr-xr-x 6 1000 wheel 6 Jan 17 06:04 Singleton
drwxr-xr-x 6 1000 wheel 6 Sep 29 2014 Twin

Dr.Telnet
NewUser
NewUser
Posts: 1
Joined: 06 Oct 2013 17:58
Status: Offline

Re: Jail not working after restart

Post by Dr.Telnet »

Hallo Roelf / Alexey,
I got the same issue; jail doesn't start; START/STOP button are not working. Any editing and actualization of jail has no effect on proper execution. Only complete deletion TheBrig (Alcatraz), deleting jail "owncloud" and reinstalling both results in success. Great feeling: TheBrig and jail owncloud are working properly !!!
But!, but rebooting nas4free, the old error occurs again and again.
As I reviewed the jail-config.xml I got ip subnet mismatch 192.168.1.251/24, whereas I'm using subnet 192.168.178.0/24.
Looking for the reason I found the script extensions_thebrig_edit.php as cauze. This script contains fix ip address 192.168.1.251/252 likely used by author. Unfortunatly I'm not familiar with php-scripting, but I guess these preseted epair_a and epair_b addresses may be the cause, aren't they?
But even editing the script obviously user defined ip addresses are overwritten cauzing this ip mismatch and preventing proper operation repeatedly.
Until now I could not find additional origin of 192.168.1.251(252)/24.
Help appreciated

supercazzola
Starter
Starter
Posts: 29
Joined: 30 Dec 2012 05:54
Status: Offline

Re: Jail not working after restart

Post by supercazzola »

alexey123 wrote:devfs must be checked.

In all cases, you can start alcatraz jail aover command line

Code: Select all

/etc/rc.d/thebrig start {jailname}
and check current status

Code: Select all

/etc/rc.d/thebrig status
Sorry, Alex, when I try the status, I get an error

Code: Select all

nas4free: # /etc/rc.d/thebrig status 
/etc/rc.d/thebrig: unknown directive 'status'.
Usage: /etc/rc.d/thebrig [fast|force|one|quiet](start|stop|restart|rcvar|enabled)

Post Reply

Return to “Jails”