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

    [1.3.0-RC-9] Debug mode menu option causes input/output error

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    2
    920
    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

      Server
      • Version: 1.3.0-RC9
      • OS: Centos 7
      Description

      When you list debug mode as a default item on the fog menu, boot.php gives input output error.

      Checking boot.php manually, nearly all information, except

      set fog-ip 192.168.1.154
      set fog-webroot fog
      set boot-url http://${fog-ip}/${fog-webroot}
      

      is missing.

      Here’s some apache logs:

      [Mon Sep 05 15:17:08.567338 2016] [:error] [pid 12379] [client 192.168.1.189:14976] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/html/fog/lib/fog/bootmenu.class.php on line 1053
      [Mon Sep 05 15:17:08.567395 2016] [:error] [pid 12379] [client 192.168.1.189:14976] PHP Fatal error: Uncaught exception 'Exception' with message 'Key must be a string or index' in /var/www/html/fog/lib/fog/fogbase.class.php:720\nStack trace:\n#0 /var/www/html/fog/lib/fog/bootmenu.class.php(952): FOGBase->arrayInsertAfter(2, Array, 'extra', 'param extraargs...')\n#1 /var/www/html/fog/lib/fog/bootmenu.class.php(1051): BootMenu->menuOpt(Object(PXEMenuOptions), 'mode=onlydebug')\n#2 [internal function]: BootMenu->{closure}(Object(PXEMenuOptions))\n#3 /var/www/html/fog/lib/fog/bootmenu.class.php(1053): array_map(Object(Closure), Array)\n#4 /var/www/html/fog/lib/fog/bootmenu.class.php(208): BootMenu->printDefault()\n#5 [internal function]: BootMenu->__construct(Object(Host))\n#6 /var/www/html/fog/lib/fog/fogbase.class.php(376): ReflectionClass->newInstance(Object(Host))\n#7 /var/www/html/fog/service/ipxe/boot.php(36): FOGBase::getClass('BootMenu', Object(Host))\n#8 {main}\n thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 720
      [Mon Sep 05 15:17:42.133556 2016] [:error] [pid 12353] [client 192.168.1.189:24270] PHP Warning: array_map(): An error occurred while invoking the map callback in /var/www/html/fog/lib/fog/bootmenu.class.php on line 1053
      [Mon Sep 05 15:17:42.133616 2016] [:error] [pid 12353] [client 192.168.1.189:24270] PHP Fatal error: Uncaught exception 'Exception' with message 'Key must be a string or index' in /var/www/html/fog/lib/fog/fogbase.class.php:720\nStack trace:\n#0 /var/www/html/fog/lib/fog/bootmenu.class.php(952): FOGBase->arrayInsertAfter(2, Array, 'extra', 'param extraargs...')\n#1 /var/www/html/fog/lib/fog/bootmenu.class.php(1051): BootMenu->menuOpt(Object(PXEMenuOptions), 'mode=onlydebug')\n#2 [internal function]: BootMenu->{closure}(Object(PXEMenuOptions))\n#3 /var/www/html/fog/lib/fog/bootmenu.class.php(1053): array_map(Object(Closure), Array)\n#4 /var/www/html/fog/lib/fog/bootmenu.class.php(208): BootMenu->printDefault()\n#5 [internal function]: BootMenu->__construct(Object(Host))\n#6 /var/www/html/fog/lib/fog/fogbase.class.php(376): ReflectionClass->newInstance(Object(Host))\n#7 /var/www/html/fog/service/ipxe/boot.php(36): FOGBase::getClass('BootMenu', Object(Host))\n#8 {main}\n thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 720
      
      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Found and fixed. Will be available for RC 10. Sorry it was left unknowingly.

        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

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

        197

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project