1.5.0 RC1 ver 6 unable to go into a host details, server stops responding
-
Server
- FOG Version: 1.5.0 RC1 (working branch) version 6
- OS: Debian 8
Description
Having updated to the latest working branch I am now able to display all hosts via Hosts -> List All Hosts (previously not working for me on 1.5.0 RC1) (however it does take a long time to load the list when compared to running FOG 1.4, I only have under 600 hosts). Now I am having issues when I click on any host in the list, the web page returns ‘fog-server is currently unable to handle this request …HTTP ERROR 500’
Also in Configuration -> FOG Log Viewer -> File the drop down is now blank
-
Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/plugins/accesscontrol/hooks/addaccesscontrolapi.hook.php on line 115, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558195 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP Stack trace:, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558207 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 1. {main}() /var/www/fog/management/index.php:0, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558220 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 2. FOGPageManager->render() /var/www/fog/management/index.php:58, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558232 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 3. HostManagementPage->edit() /var/www/fog/lib/fog/fogpagemanager.class.php:220, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558254 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 4. HostManagementPage->hostVirus() /var/www/fog/lib/pages/hostmanagementpage.class.php:3170, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558270 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 5. Route::listem() /var/www/fog/lib/pages/hostmanagementpage.class.php:2501, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558282 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 6. HookManager->processEvent() /var/www/fog/lib/router/route.class.php:503, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.558292 2017] [:error] [pid 10595] [client 10.110.80.225:55885] PHP 7. AddAccessControlAPI->adjustMassInfo() /var/www/fog/lib/fog/hookmanager.class.php:87, referer: https://fog-server/fog/management/index.php?node=host&sub=list [Tue Jul 18 23:31:28.561261 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP Strict standards: Only variables should be passed by reference in /var/www/fog/lib/fog/fogcontroller.class.php on line 666 [Tue Jul 18 23:31:28.561274 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP Stack trace: [Tue Jul 18 23:31:28.561281 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 1. {main}() /var/www/fog/management/index.php:0 [Tue Jul 18 23:31:28.561287 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 2. FOGBase::getClass() /var/www/fog/management/index.php:23 [Tue Jul 18 23:31:28.561293 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 3. ReflectionClass->newInstanceArgs() /var/www/fog/lib/fog/fogbase.class.php:451 [Tue Jul 18 23:31:28.561299 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 4. FOGPageManager->__construct() /var/www/fog/lib/fog/fogbase.class.php:451 [Tue Jul 18 23:31:28.561305 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 5. FOGPageManager->loadPageClasses() /var/www/fog/lib/fog/fogpagemanager.class.php:79 [Tue Jul 18 23:31:28.561310 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 6. array_map() /var/www/fog/lib/fog/fogpagemanager.class.php:386 [Tue Jul 18 23:31:28.561316 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 7. FOGPageManager->{closure:/var/www/fog/lib/fog/fogpagemanager.class.php:350-385}() /var/www/fog/lib/fog/fogpagemanager.class.php:386 [Tue Jul 18 23:31:28.561322 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 8. ProcessLogin->__construct() /var/www/fog/lib/fog/fogpagemanager.class.php:381 [Tue Jul 18 23:31:28.561328 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 9. FOGPage->__construct() /var/www/fog/lib/pages/processlogin.class.php:57 [Tue Jul 18 23:31:28.561337 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 10. FOGPage->requestClientInfo() /var/www/fog/lib/fog/fogpage.class.php:249 [Tue Jul 18 23:31:28.561343 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 11. FOGBase::getClass() /var/www/fog/lib/fog/fogpage.class.php:2922 [Tue Jul 18 23:31:28.561348 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 12. ReflectionClass->newInstanceArgs() /var/www/fog/lib/fog/fogbase.class.php:451 [Tue Jul 18 23:31:28.561354 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 13. FOGClient->__construct() /var/www/fog/lib/fog/fogbase.class.php:451 [Tue Jul 18 23:31:28.561359 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 14. FOGBase::getHostItem() /var/www/fog/lib/client/fogclient.class.php:71 [Tue Jul 18 23:31:28.561364 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 15. FOGBase::parseMacList() /var/www/fog/lib/fog/fogbase.class.php:514 [Tue Jul 18 23:31:28.561369 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 16. FOGBase::getSetting() /var/www/fog/lib/fog/fogbase.class.php:1634 [Tue Jul 18 23:31:28.561382 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP 17. FOGController->load() /var/www/fog/lib/fog/fogbase.class.php:1990 [Tue Jul 18 23:31:28.564261 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP Strict standards: Only variables should be passed by reference in /var/www/fog/lib/fog/fogcontroller.class.php on line 666 [Tue Jul 18 23:31:28.564272 2017] [:error] [pid 11583] [client 10.110.50.30:56353] PHP Stack trace:```
-
I have removed the access control plugin (although no restrictions applied to my account) and no longer have an issue accessing a hosts management page.
However loading the host list/ going into a hosts management page takes a long time, anything i can check/do to speed this up?
-
Mind giving a shot updating again? You should notice a significant speed increase and a lot less memory usage.
-
@Tom-Elliott thanks Tom, definitely feels a lot quicker now when going through host management stuff.
Just went through some Reports etc, and the inventry report is 100 times better now. Although Imaging Log & user tracking return the same error I had before with the http 500
Also in the log viewer I cant select any log files
At the moment I only have the one production install, will see if I can spin up another fresh FOG VM to help test more
-
Please update memory usage for the Imaging Log/User Tracking (or truncate the tables though you would lose information).
Please update working branch again to get log files back, sorry about missing it. Had to clean up a bunch in the API side and this was one of those cleanups. (Just an oversight, but partially intended while trying to debug slowness)
-
@Tom-Elliott thanks just updated, I have upped the memory limit in General Settings (is that what you mean?) The user tracking is displaying now, will have to look at truncating the image log when I get into the office (on mobile atm)