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 alcatraz error message on upgrade

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
vdpollm
NewUser
NewUser
Posts: 2
Joined: 21 Mar 2013 19:24
Status: Offline

thebrig alcatraz error message on upgrade

Post by vdpollm »

hi,

when i install the Alcatraz upgrade, i get the following errors:

Warning: preg_grep() expects parameter 2 to be array, null given in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 963

Warning: preg_grep() expects parameter 2 to be array, null given in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 971

Warning: preg_grep() expects parameter 2 to be array, null given in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 994

Warning: Invalid argument supplied for foreach() in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 995

Warning: preg_grep() expects parameter 2 to be array, null given in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 1000

Warning: Invalid argument supplied for foreach() in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 1001

Warning: preg_grep() expects parameter 2 to be array, null given in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 1051

Warning: Invalid argument supplied for foreach() in /mnt/VolumeOne/jails/conf/ext/thebrig/functions.inc on line 1052
.......

please advise where i can go look for a fix?

regards
Marc

gtallan
NewUser
NewUser
Posts: 1
Joined: 09 Jan 2016 09:03
Status: Offline

Re: thebrig alcatraz error message on upgrade

Post by gtallan »

This probably too late to help you but I got the same errors after finally upgrading to NAS4Free 10.2 and alcatraz 9.1.

You can see what's going on by referring to the php error lines - they are all trying to operate on config values which are undefined.
Maybe this is caused by the upgrade from thebrig v0.8?

I "fixed" it by defining these commands for each of my jails: prestart, afterstart_for_main, etc - I just run "/bin/test 1" for each.
That gets rid of the errors - or at least all but one:
Warning: file_put_contents(): Filename cannot be empty in /mnt/jails/conf/ext/thebrig/extensions_thebrig.php on line 63

That line is
file_put_contents($brig_test, "brig is enabled and retval is:{$retval} \n");

but I can't see that $brig_test is defined anywhere. Maybe a bug, or I just didn't know where to look.

Ceaus
NewUser
NewUser
Posts: 7
Joined: 14 Sep 2013 21:07
Status: Offline

Re: thebrig alcatraz error message on upgrade

Post by Ceaus »

For those interested: The reason for these problems are configuration changes between the two brigs versions. What I did to overcome this *AND* keep my owncloud jail intact:
Go to your new brig install, and create a test jail. Then export the jail config. In the XML the jails are tagged <jail>.
Now cut and paste the jails from your NAS4Free configuration file into the brig export file. (Note: the jails are tagged <content> in the NAS4Free config, so you have to rename the tags)
After that you can reimport your jails config back into TheBrig.

Networking needs to be reconfigured for each jail (as that has changed and settings are not preserved), but all your jails should be / become back online.

Post Reply

Return to “Jails”