• Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Solved Boot.php input/output error

    FOG Problems
    2
    3
    1347
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      Quazz Moderator last edited by Quazz

      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
      
      Tom Elliott 1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator @Tom Elliott last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • Tom Elliott
          Tom Elliott @Quazz last edited by

          @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 115

          I’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?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          Q 1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          223
          Online

          10.4k
          Users

          16.4k
          Topics

          150.6k
          Posts

          Copyright © 2012-2023 FOG Project