7703 - Groups Bugged
-
I’m completely unable to replicate.
-
Cloud version 7703. Clean version/clean install from earlier.
Attempting to add two hosts at once to group:
https://gyazo.com/4c97671dc8c6419c4a8548497dafcef9Attempting to add one (remaining) host to group once another is added:
https://gyazo.com/b3c70787a8237c46a8d32cfd4fb2f500 -
@RLane Anything in the apache error logs (see my signature on where to find those) or mysql log?
-
If you update to latest, does this still occur?
-
@Tom-Elliott Yep, still happening. Cloud version 7721.
Log file in /var/log/httpd –
[Wed May 18 11:50:06.074840 2016] [:error] [pid 18892] [client 10.8.25.28:50936] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:06.122281 2016] [:error] [pid 2158] [client 10.16.35.59:51790] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:06.427792 2016] [:error] [pid 18888] [client 10.24.35.37:62497] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:06.455295 2016] [:error] [pid 2304] [client 10.8.25.100:60798] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:06.611621 2016] [:error] [pid 18258] [client 10.14.30.6:50758] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:06.712366 2016] [:error] [pid 17930] [client 10.16.35.15:50813] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.046508 2016] [:error] [pid 18030] [client 10.16.25.52:52745] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.155950 2016] [:error] [pid 18891] [client 10.20.25.44:50325] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.171003 2016] [:error] [pid 21814] [client 10.8.25.103:50434] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.176058 2016] [:error] [pid 18895] [client 10.18.25.208:50142] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.180787 2016] [:error] [pid 18892] [client 10.16.35.12:54998] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.186660 2016] [:error] [pid 2158] [client 10.20.25.8:54479] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.342011 2016] [:error] [pid 18888] [client 10.16.35.39:58513] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.579433 2016] [:error] [pid 2304] [client 10.16.35.0:51004] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:07.823192 2016] [:error] [pid 18258] [client 10.20.25.17:50065] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.358389 2016] [:error] [pid 17930] [client 10.8.35.126:50828] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.363369 2016] [:error] [pid 18030] [client 10.8.25.27:51625] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.533935 2016] [:error] [pid 18891] [client 10.8.25.3:53233] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.538989 2016] [:error] [pid 21814] [client 10.24.35.19:60850] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.543871 2016] [:error] [pid 18895] [client 10.20.35.54:59584] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.548327 2016] [:error] [pid 18892] [client 10.24.25.41:65345] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.714671 2016] [:error] [pid 2158] [client 10.16.25.32:55206] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.912733 2016] [:error] [pid 18888] [client 10.8.25.15:50456] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.954307 2016] [:error] [pid 2304] [client 10.16.25.65:52124] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:08.997191 2016] [:error] [pid 18258] [client 10.20.25.46:50666] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:09.182825 2016] [:error] [pid 17930] [client 10.26.25.92:62552] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:09.333855 2016] [:error] [pid 18030] [client 10.16.25.41:63239] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:09.360363 2016] [:error] [pid 18895] [client 10.16.25.63:50758] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:09.957596 2016] [:error] [pid 21814] [client 10.16.25.9:54324] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.191404 2016] [:error] [pid 18891] [client 10.16.25.44:52939] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.195967 2016] [:error] [pid 18892] [client 10.20.35.38:52029] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.428240 2016] [:error] [pid 2158] [client 10.16.35.59:51791] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.531180 2016] [:error] [pid 18888] [client 10.8.25.21:54550] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.585172 2016] [:error] [pid 2304] [client 10.16.25.48:51567] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.640471 2016] [:error] [pid 18258] [client 10.8.35.29:60093] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.698370 2016] [:error] [pid 17930] [client 10.8.35.78:50545] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:10.813393 2016] [:error] [pid 18030] [client 10.8.35.124:54646] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.028272 2016] [:error] [pid 18895] [client 10.16.25.38:52996] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.032742 2016] [:error] [pid 18891] [client 10.16.35.61:50738] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.037434 2016] [:error] [pid 21814] [client 10.8.25.169:49991] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.284009 2016] [:error] [pid 18892] [client 10.16.25.86:50464] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.443284 2016] [:error] [pid 2158] [client 10.20.25.11:59146] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.448680 2016] [:error] [pid 18888] [client 10.16.35.15:50814] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.453531 2016] [:error] [pid 2304] [client 10.16.35.49:57779] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.458900 2016] [:error] [pid 18258] [client 10.20.25.24:55654] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.463281 2016] [:error] [pid 17930] [client 10.20.35.16:63926] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:11.859636 2016] [:error] [pid 18030] [client 10.8.25.71:50140] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.222709 2016] [:error] [pid 18895] [client 10.18.25.205:64150] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.356354 2016] [:error] [pid 18891] [client 10.8.25.69:50100] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.433315 2016] [:error] [pid 21814] [client 10.20.25.37:49306] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.483019 2016] [:error] [pid 18892] [client 10.8.35.101:55135] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.487640 2016] [:error] [pid 18888] [client 10.8.35.121:55857] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.838838 2016] [:error] [pid 2158] [client 10.26.25.92:62555] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:12.843976 2016] [:error] [pid 2304] [client 10.5.25.3:60742] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:13.172281 2016] [:error] [pid 18258] [client 10.8.35.95:53054] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:13.177011 2016] [:error] [pid 17930] [client 10.8.25.111:54092] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:13.217487 2016] [:error] [pid 18030] [client 10.12.20.10:51065] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:13.564121 2016] [:error] [pid 18895] [client 10.8.35.22:51491] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:13.862222 2016] [:error] [pid 18891] [client 10.16.35.18:50641] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:14.148095 2016] [:error] [pid 21814] [client 10.8.25.60:50933] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:14.152985 2016] [:error] [pid 18892] [client 10.8.35.48:51012] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:14.168874 2016] [:error] [pid 18888] [client 10.8.35.25:56146] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2
[Wed May 18 11:50:14.173603 2016] [:error] [pid 2158] [client 10.20.35.24:50451] PHP Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/www/html/fog/lib/fog/config.class.php on line 2 -
@RLane What’s in your /var/www/fog/lib/fog/config.class.php
-
@Tom-Elliott define(‘DATABASE_HOST’,‘p:127.0.0.1’);
define(‘DATABASE_NAME’,‘fog’);
define(‘DATABASE_USERNAME’,‘root’);
define(‘DATABASE_PASSWORD’,“”);
}
/** @function svc_setting() Defines the service settings
* (e.g. FOGMulticastManager)
* @return void
/
private static function svc_setting() {
define(‘UDPSENDERPATH’,‘/usr/local/sbin/udp-sender’);
define(‘MULTICASTINTERFACE’,‘ens160’);
define(‘UDPSENDER_MAXWAIT’,null);
}
/* @function init_setting() Initial values if fresh install are set here
* NOTE: These values are only used on initial
* installation to set the database values.
* If this is an upgrade, they do not change
* the values within the Database.
* Please use FOG Configuration->FOG Settings
* to change these values after everything is
* setup.
* @return void
*/
private static function init_setting() {
define(‘TFTP_HOST’, “10.5.1.20”);
define(‘TFTP_FTP_USERNAME’, “fog”);
define(‘TFTP_FTP_PASSWORD’, “VqafHBSMk0WMSiwwXUnU41isjEkDj/jrx5CQh5LuVPI=”);
define(‘TFTP_PXE_KERNEL_DIR’, “/var/www/html/fog//service/ipxe/”);
define(‘PXE_KERNEL’, ‘bzImage’);
define(‘PXE_KERNEL_RAMDISK’,127000);
define(‘USE_SLOPPY_NAME_LOOKUPS’,true);
define(‘MEMTEST_KERNEL’, ‘memtest.bin’);
define(‘PXE_IMAGE’, ‘init.xz’);
define(‘PXE_IMAGE_DNSADDRESS’, “10.5.1.12”);
define(‘STORAGE_HOST’, “10.5.1.20”);
define(‘STORAGE_FTP_USERNAME’, “fog”);
define(‘STORAGE_FTP_PASSWORD’, “VqafHBSMk0WMSiwwXUnU41isjEkDj/jrx5CQh5LuVPI=”);
define(‘STORAGE_DATADIR’, ‘/images/’);
define(‘STORAGE_DATADIR_UPLOAD’, ‘/images/dev’);
define(‘STORAGE_BANDWIDTHPATH’, ‘/fog/status/bandwidth.php’);
define(‘STORAGE_INTERFACE’,‘ens160’);
define(‘UPLOADRESIZEPCT’,5);
define(‘WEB_HOST’, “10.5.1.20”);
define(‘WOL_HOST’, “10.5.1.20”);
define(‘WOL_PATH’, ‘/fog/wol/wol.php’);
define(‘WOL_INTERFACE’, “ens160”);
define(‘SNAPINDIR’, “/opt/fog/snapins/”);
define(‘QUEUESIZE’, ‘10’);
define(‘CHECKIN_TIMEOUT’,600);
define(‘USER_MINPASSLENGTH’,4);
define(‘USER_VALIDPASSCHARS’,‘1234567890ABCDEFGHIJKLMNOPQRSTUVWZXYabcdefghijklmnopqrstuvwxyz_()^!#-’);
define(‘NFS_ETH_MONITOR’, “ens160”);
define(‘UDPCAST_INTERFACE’, “ens160”);
define(‘UDPCAST_STARTINGPORT’, 63100 ); // Must be an even number! recommended between 49152 to 65535
define(‘FOG_MULTICAST_MAX_SESSIONS’,64);
define(‘FOG_JPGRAPH_VERSION’, ‘2.3’);
define(‘FOG_REPORT_DIR’, ‘./reports/’);
define(‘FOG_UPLOADIGNOREPAGEHIBER’,true);
define(‘FOG_DONATE_MINING’, “0”);
}
}When you and I were troubleshooting the original error, was something changed in this file? Perhaps that is why it is not working as properly.
-
@RLane Something was changed somewhere.
However, if you’ve updated, this shouldn’t even be a problem.
Are you doing updates from git or svn?
-
@Tom-Elliott SVN on CentOS7 x64
-
@RLane can you delete the folder and re-checkout?
mv trunk trunk_old
svn co https://svn.code.sf.net/p/freeghost/code/trunk
-
@Tom-Elliott said in 7703 - Groups Bugged:
Still have the same issue, since this is not the production FOG server I use daily, I will delete and rebuild from scratch… especially if nobody else is having these issues.
-
I am having the same issue. I am running Fedora workstation 23 with Fog Git version 7795. This is from an upgrade from Fog version .32. I can not add more than one host to a group.
-
@mclapper68 As bad as it sounds, you will likely have to delete the groups, and re-add them. It shouldn’t be impacting anything severly as you can’t use the group currently anyway.
-
I deleted all of my groups. Created a new test group then selected the dozen hosts I wanted. Unfortunately, only one host is in my list. If I add a new host to the group it replaces the one that is in the list.
-
Are you trying it on a Debian 8.4? If so I had to touch the groupMembers
UNIQUE KEY
gmHostID
(gmHostID
,gmGroupID
),because it was originally UNIQUE KEY
gmHostID
(gmGroupID
),Hope it helps
-
Thanks for posting this.
I’ve added this as a schema update as I think you’re correct in what the issue is.
Hopefully this will help both of the users and it’s in the base code so no more “tricks” to try to get it to work.
-
Thanks to the both of you (Tom and URfog) for the help. But I am not sure what I am to do to correct the problem. Do I need to update fog again or make a change to my fog database?
-
It’s just a revision update @mclapper68
-
I updated to the latest revision 7853 then updated the database scheme. Deleted all my groups. Created a new test group and tried to add some hosts, but now it will not add any hosts to the groups.
-
Just tested this on 7853 with Fedora 23, all seems fine for me.
Since that’s the same version you tried, there is probably something wrong in the DB.
Can you describe, click-for-click, how you are adding them to the group?