Boot.php input/output error
-
svn 6663, ubuntu 15.10
I wanted to capture an image for an existing host so I created the task, but then when I booted the client it is unable to actually start the process due to input/output error on boot.php
Apache error log throws the following error when this occurs :
[Thu Mar 10 12:04:47.819983 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Fatal error: Uncaught exception 'Exception' with message 'Type: 2, File: /var/www/fog/lib/fog/storagenode.class.php, Line: 57, Message: array_values() expects parameter 1 to be array, null given' in /var/www/fog/lib/fog/fogftp.class.php:51\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(64): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(214): StorageNode->loadImages()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(46): FOGController->loadItem('images')\n#3 /var/www/fog/lib/fog/storagenode.class.php(39): FOGController->get('images')\n#4 /var/www/fog/lib/fog/storagegroup.class.php(38): StorageNode->get('images')\n#5 /var/www/fog/lib/fog/bootmenu.class.php(601): StorageGroup->getOptimalStorageNode('11')\n#6 /var/www/fog/lib/fog/bootmenu.class.php(133): BootMenu->getTasking()\n#7 [internal function]: BootMenu->__construct(Object(Host))\n#8 /var/www/fog/lib/fog/fogbase.class.php(65): ReflectionClass->newInstanceArgs(Array)\n#9 /var/www/fog/service/ipxe/boot.php(13): FOGBase->getClass('BootMenu', Object in /var/www/fog/lib/fog/fogftp.class.php on line 51 [Thu Mar 10 12:04:46.820806 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/fog/lib/fog/storagenode.class.php on line 57 [Thu Mar 10 12:04:46.820802 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Warning: array_unique() expects parameter 1 to be array, null given in /var/www/fog/lib/fog/storagenode.class.php on line 57 [Thu Mar 10 12:04:46.820783 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/fog/lib/fog/storagenode.class.php on line 57 [Thu Mar 10 12:04:44.814442 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Strict Standards: Only variables should be passed by reference in /var/www/fog/lib/fog/bootmenu.class.php on line 116 [Thu Mar 10 12:04:44.814217 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Strict Standards: Only variables should be passed by reference in /var/www/fog/lib/fog/bootmenu.class.php on line 115
-
@Quazz said:
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Type: 2, File: /var/www/fog/lib/fog/storagenode.class.php, Line: 57, Message: array_values() expects parameter 1 to be array, null given’ in /var/www/fog/lib/fog/fogftp.class.php:51\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(64): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(214): StorageNode->loadImages()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(46): FOGController->loadItem(‘images’)\n#3 /var/www/fog/lib/fog/storagenode.class.php(39): FOGController->get(‘images’)\n#4 /var/www/fog/lib/fog/storagegroup.class.php(38): StorageNode->get(‘images’)\n#5 /var/www/fog/lib/fog/bootmenu.class.php(601): StorageGroup->getOptimalStorageNode(‘11’)\n#6 /var/www/fog/lib/fog/bootmenu.class.php(133): BootMenu->getTasking()\n#7 [internal function]: BootMenu->__construct(Object(Host))\n#8 /var/www/fog/lib/fog/fogbase.class.php(65): ReflectionClass->newInstanceArgs(Array)\n#9 /var/www/fog/service/ipxe/boot.php(13): FOGBase->getClass(‘BootMenu’, Object in /var/www/fog/lib/fog/fogftp.class.php on line 51
[Thu Mar 10 12:04:46.820806 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/fog/lib/fog/storagenode.class.php on line 57
[Thu Mar 10 12:04:46.820802 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Warning: array_unique() expects parameter 1 to be array, null given in /var/www/fog/lib/fog/storagenode.class.php on line 57
[Thu Mar 10 12:04:46.820783 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/fog/lib/fog/storagenode.class.php on line 57
[Thu Mar 10 12:04:44.814442 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Strict Standards: Only variables should be passed by reference in /var/www/fog/lib/fog/bootmenu.class.php on line 116
[Thu Mar 10 12:04:44.814217 2016] [:error] [pid 1816] [client 192.168.1.53:37634] PHP Strict Standards: Only variables should be passed by reference in /var/www/fog/lib/fog/bootmenu.class.php on line 115I’ve pushed a fix to hopefully address the random errors but I doubt it will fix the issue directly. If anything it will help us hopefully find the problem more directly. From the looks of the first error, it looks as though maybe the node doesn’t have the image?
-
@Tom-Elliott Thanks for the quick response. After updating to the latest it was able to start capturing the image and no more errors show up when booting the device.