Failed boot.php



  • Server
    • FOG Version:
    • OS:
    Client
    • Service Version:
    • OS:
    Description

    unable to boot:
    Hey Guys
    Fog server does not start another time !

    Could you help me to solve the problem ? ( input / output error )
    0_1500623716278_Capture1.JPG



  • @george1421 This fixed my problem, thank you!


  • Moderator

    @grungeman OS that FOG is installed on?

    Just shooting in the dark, but it sounds like FOG can no longer access the mysql database.

    If you are running FOG on ubuntu 16.04 this post may apply: https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy



  • @george1421 said in Failed boot.php:

    http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

    the result is:
    #!ipxe
    set fog-ip 192.168.1.140
    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
    colour --rgb 0x00567a 1 ||
    colour --rgb 0x00567a 2 ||
    colour --rgb 0x00567a 4 ||
    cpair --foreground 7 --background 2 2 ||
    goto MENU
    :alt_console
    cpair --background 0 1 ||
    cpair --background 1 2 ||
    goto MENU
    :get_console
    console --picture http://192.168.1.140/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
    :MENU
    menu
    colour --rgb 0xff0000 0 ||
    cpair --foreground 1 1 ||
    cpair --foreground 0 3 ||
    cpair --foreground 4 4 ||
    item --gap Host is NOT registered!
    item --gap – -------------------------------------
    item fog.local Boot from hard disk
    item fog.memtest Run Memtest86+
    item fog.reginput Perform Full Host Registration and Inventory
    item fog.reg Quick Registration and Inventory
    item fog.deployimage Deploy Image
    item fog.multijoin Join Multicast Session
    item fog.sysinfo Client System Information (Compatibility)
    item fog.advanced Advanced Menu
    choose --default fog.local --timeout 3600000 target && goto ${target}
    :fog.local
    chain -ar ${boot-url}/service/ipxe/grub.exe --config-file=“rootnoverify (hd0);chainloader +1” || goto MENU
    :fog.memtest
    kernel memdisk initrd=memtest.bin iso raw
    initrd memtest.bin
    boot || goto MENU
    :fog.reginput
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=192.168.1.140/fog/ consoleblank=0 rootfstype=ext4 storage=192.168.1.140:/images/ storageip=192.168.1.140 loglevel=4 mode=manreg
    imgfetch init_32.xz
    boot || goto MENU
    :fog.reg
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=192.168.1.140/fog/ consoleblank=0 rootfstype=ext4 storage=192.168.1.140:/images/ storageip=192.168.1.140 loglevel=4 mode=autoreg
    imgfetch init_32.xz
    boot || goto MENU
    :fog.deployimage
    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.sysinfo
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=192.168.1.140/fog/ consoleblank=0 rootfstype=ext4 storage=192.168.1.140:/images/ storageip=192.168.1.140 loglevel=4 mode=sysinfo
    imgfetch init_32.xz
    boot || goto MENU
    :fog.advanced
    chain -ar http://192.168.1.140/fog/service/ipxe/advanced.php || goto MENU
    :bootme
    chain -ar http://192.168.1.140/fog/service/ipxe/boot.php##params ||
    goto MENU
    autoboot

    after reinstalled fog server, the web page is accesible but the iso into advanced menu does not start! 0_1500630247467_Capture1.JPG



  • You seem to be on track. http://192.168.2.2/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

    Gives me “A valid database connection could not be made”

    But mysql is atleast active


  • Moderator

    @grungeman It would help to know the host OS you are running FOG on. There was an issue with ubuntu pushing out some automatic updates that broke FOG a while ago.

    Without much detail its difficult to solve this one, but it sounds like mysql is not running or unaccessible.

    You could try to call your fog server using a web browser at this url and post the results here: http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00
    That url call should give you the text of the ipxe menu which I suspect maybe incomplete.



  • propably it was resolved,
    I have reinstalled fog …
    but it’s strange !



  • Seems like we got some similiar issues today. I didnt have time to investigate it yet. I got a call that its no longer working to boot with iPXE. IP loan is issued but PXE seem to fail.
    If anyone else seen this and have a solution some input would be appreciated.

    /Peter



  • I think the problem is PHP / Apachi server does not works ,
    after Ubuntu updates …
    could you check ?


Log in to reply
 

443
Online

38955
Users

10706
Topics

101581
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.