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

Stop at boot.php when creating capture task

Scheduled Pinned Locked Moved Solved
FOG Problems
6
27
4.5k
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.
  • C
    christianu
    last edited by Jun 20, 2016, 6:59 PM

    This is what i get when i call it without capture task

    #!ipxe
    set fog-ip 192.168.22.76
    set fog-webroot fog
    set boot-url http://${fog-ip}/${fog-webroot}
    cpuid --ext 29 && set arch x86_64 || set arch i386
    goto get_console
    :console_set
    goto MENU
    :alt_console
    goto MENU
    :get_console
    console --picture http://192.168.22.76/fog/service/ipxe/ --left 100 --right 80 && goto console_set || goto alt_console
    :MENU
    menu
    item --gap Host is registered as BPY-LAP-028!
    item --gap -- -------------------------------------
    item fog.local Boot from hard disk
    item fog.memtest Run Memtest86+
    item fog.keyreg Update Product Key
    item fog.quickimage Quick Image
    item fog.multijoin Join Multicast Session
    item fog.quickdel Quick Host Deletion
    item fog.sysinfo Client System Information (Compatibility)
    choose --default fog.local --timeout 0 target && goto ${target}
    :fog.local
    sanboot --no-describe --drive 0x80 || goto MENU
    :fog.memtest
    kernel memdisk iso raw
    initrd memtest.bin
    boot || goto MENU
    :fog.keyreg
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param keyreg 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.quickimage
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param qihost 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.multijoin
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param sessionJoin 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.quickdel
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param delhost 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.sysinfo
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=192.168.22.76/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=sysinfo
    imgfetch init_32.xz
    boot || goto MENU
    :bootme
    chain -ar http://192.168.22.76/fog/service/ipxe/boot.php##params ||
    goto MENU
    autoboot
    
    W 1 Reply Last reply Jun 20, 2016, 7:01 PM Reply Quote 0
    • W
      Wayne Workman @christianu
      last edited by Jun 20, 2016, 7:01 PM

      @christianu Does the issue only happen on upload/download? Can you queue a task for this MAC and then see what this URL produces?

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • C
        christianu
        last edited by Jun 20, 2016, 7:02 PM

        Yeah just the first 4 lines

        #!ipxe
        set fog-ip 192.168.22.76
        set fog-webroot fog
        set boot-url http://${fog-ip}/${fog-webroot}
        
        G 1 Reply Last reply Jun 20, 2016, 7:06 PM Reply Quote 0
        • G
          george1421 Moderator @christianu
          last edited by george1421 Jun 20, 2016, 1:07 PM Jun 20, 2016, 7:06 PM

          @christianu When you get these 4 lines. What does the apache error log say. Not sure where it is on debian, let me see if I can find Sebastian’s signature.

          [edit]Web GUI issue? Please take a look at your apache error log file (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log)

          Tail the above log file. My bet there is an error thown.

          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!

          1 Reply Last reply Reply Quote 1
          • C
            christianu
            last edited by christianu Jun 20, 2016, 1:15 PM Jun 20, 2016, 7:12 PM

            This comes when creating the task

            PHP Warning: curl_setopt_array() expects exactly 2 parameters, 1 given in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 107, referer: http://fog.mgmt.offber/fog/management/index.php?node=host&sub=deploy&id=2&type=2

            G 1 Reply Last reply Jun 20, 2016, 7:45 PM Reply Quote 1
            • C
              christianu
              last edited by christianu Jun 20, 2016, 1:20 PM Jun 20, 2016, 7:15 PM

              And this when calling the url

              PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Type: 2, File: /var/www/html/fog/lib/fog/fogurlrequests.class.php, Line: 108, Message: curl_multi_add_handle() expects parameter 1 to be resource, null given, Host: fogserver, Username: fog’ in /var/www/html/fog/lib/fog/fogftp.class.php:51\nStack trace:\n#0 /var/www/html/fog/lib/fog/storagenode.class.php(102): FOGFTP->connect()\n#1 /var/www/html/fog/lib/fog/fogcontroller.class.php(245): StorageNode->loadImages()\n#2 /var/www/html/fog/lib/fog/fogcontroller.class.php(48): FOGController->loadItem(‘images’)\n#3 /var/www/html/fog/lib/fog/storagenode.class.php(41): FOGController->get(‘images’)\n#4 /var/www/html/fog/lib/fog/storagegroup.class.php(44): StorageNode->get(‘images’)\n#5 [internal function]: StorageGroup->{closure}(Object(StorageNode))\n#6 /var/www/html/fog/lib/fog/storagegroup.class.php(52): array_map(Object(Closure), Array)\n#7 /var/www/html/fog/lib/fog/bootmenu.class.php(641): StorageGroup->getOptimalStorageNode(‘1’)\n#8 /var/www/html/fog/lib/fog/bootmenu.class.php(1 in /var/www/html/fog/lib/fog/fogftp.class.php on line 51

              I call it a night and will continue tomorrow 🙂

              1 Reply Last reply Reply Quote 0
              • G
                george1421 Moderator @christianu
                last edited by Jun 20, 2016, 7:45 PM

                @christianu said in Stop at boot.php when creating capture task:

                This comes when creating the task

                PHP Warning: curl_setopt_array() expects exactly 2 parameters, 1 given in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 107, referer: http://fog.mgmt.offber/fog/management/index.php?node=host&sub=deploy&id=2&type=2

                That may be what is know and an unexpected programming occurrence. @Senior-Developers ?

                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!

                1 Reply Last reply Reply Quote 0
                • C
                  christianu
                  last edited by christianu Jun 21, 2016, 4:32 AM Jun 21, 2016, 9:05 AM

                  Actually this is strange

                   parameter 1 to be resource, null given, Host: fogserver, Username: fog
                  

                  “fogserver” is in this case the old fogserver ip instead of the new one - where can i change this?

                  Update: Found it - the nfsGroubmembers where still using the old ip.

                  On a side note - your boot menu config is gone (no bg nothing just blue and red) where can i restore this with bg and all?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Jun 21, 2016, 6:17 PM

                    @christianu said:

                    On a side note - your boot menu config is gone (no bg nothing just blue and red) where can i restore this with bg and all?

                    In the code you posted below you can see that the image filename is missing:

                    :get_console
                    console --picture http://192.168.22.76/fog/service/ipxe/ --left 100 --right 80 && goto console_set || goto alt_console
                    :MENU
                    

                    Check FOG_IPXE_BG_FILE in the FOG configuration on the web GUI.

                    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 0
                    • C
                      christianu
                      last edited by Jun 22, 2016, 7:22 AM

                      Yeah the settings are completely gone … even with the colors 😄

                      1 Reply Last reply Reply Quote 0
                      • C
                        christianu
                        last edited by Jun 22, 2016, 8:50 AM

                        You can actually solve this issue - the problem was the wrong ip address - thanks guys for the support 🙂

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 2 / 2
                        2 / 2
                        • First post
                          26/27
                          Last post

                        130

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project