Boot File too large?



  • It seems our system had been functioning fine, but no longer will provide PXE booting or any services. Logging into the system through Hyper-V only shows an error pertaining to the boot drive out of space. And I haven’t been able to fix this error.

    Is this something that would prevent FOG from operating? Any good advice on fixing it?


  • Developer

    @BiologyBen Ok, I’ll mark this solved then. Please open a fresh post for when you tackle the update and run into an issue.



  • Thank you for your help - I’m going to take this first fix and get some machines reimaged before tackling the updates after all the clients are taken care of.

    Very much appreciate it!


  • Developer

    @BiologyBen said:

    So should I update to 1.4.4? Should I allow Ubuntu to update? Or leave well enough alone?

    Well that’s up to you. I myself would not want to have an unpatched server OS running in my network for too long. On the other hand you might need to get you hands dirty to get things up for 1.4.4 from what we just saw when you can the old installer script. Could be fine as well but we don’t know before you try. Up to you.

    PS: I am off for today and won’t be able to help on short notice. But I guess others are around and will give you a hand in case.


  • Developer

    @BiologyBen Sorry, should have told you that this is for the later versions of the installer. This was probably not fixed in 1.4.0 yet. So please follow the detailed instructions:

    The “fix” if you must do it manually is to open a terminal and obtain root:

    Still I wonder why your installer is failing on so many packets. Did FOG ever work for you? Maybe the autocleanup did mess things up, although it’s very unlikely.



  • So I continued on in the instruction and ran the code to make changes to the MYSQL root user entries which ultimately fixed the issue - I have the management console back! Thank you!

    So should I update to 1.4.4? Should I allow Ubuntu to update? Or leave well enough alone?



  • The instructions indicated to rerun the installer. I had the installer on the system from the original install.

    I have did not know if downloading and installing the newest version would cause any issues, if Fog 1.4.0 needed to be uninstalled first, etc. Just following the instructions as written - ‘rerun the Fog Installer’


  • Developer

    @biologyben said in Boot File too large?:

    Version: 1.4.0 Installer/Updater

    Why not at least going with the latest official release that is 1.4.4??



  • @sebastian-roth So I tried reinstalling. But it says it failed. Did I do something wrong?

    admin@fog-Virtual-Machine:~$ sudo -i
    root@fog-Virtual-Machine:~# cd fog_1.4.0/bin
    root@fog-Virtual-Machine:~/fog_1.4.0/bin# ./installfog.sh
    Installing LSB_Release as needed
     * Attempting to get release information.......................Done
    systemd
    
    
       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 1.4.0 Installer/Updater
    
      What version of Linux would you like to run the installation for?
    
              1) Redhat Based Linux (Redhat, CentOS, Mageia)
              2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
              3) Arch Linux
    
      Choice: [2] 
    
    
    
      Starting Debian based Installation
    
    
     *** Detected a potential need to reinstall apache and php files.
     *** This will remove the /etc/php* and /etc/apache2* directories
     ***  and remove/purge the apache and php files from this system.
     *** If you're okay with this please type Y, anything else will
     ***  continue the installation, but may mean you will need to
     ***  remove the files later and make proper changes as 
     ***  necessary. (Y/N): 
    N
      FOG Server installation modes:
          * Normal Server: (Choice N) 
              This is the typical installation type and
              will install all FOG components for you on this
              machine.  Pick this option if you are unsure what to pick.
    
          * Storage Node: (Choice S)
              This install mode will only install the software required
              to make this server act as a node in a storage group
    
      More information:  
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? [N/s (Normal/Storage)] N
    
      What is the IP address to be used by this FOG Server? [192.168.1.4]192.168.1.4
    
      Would you like to change the default network interface from eth0?
      If you are not sure, select No. [y/N] N
    
      Would you like to setup a router address for the DHCP server? [Y/n] N
    
      Would you like DHCP to handle DNS? [Y/n] N
    
      Would you like to use the FOG server for DHCP service? [y/N] N
    
      This version of FOG has internationalization support, would  
      you like to install the additional language packs? [y/N] N
    
       ######################################################################
       #     FOG now has everything it needs for this setup, but please     #
       #   understand that this script will overwrite any setting you may   #
       #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
       ######################################################################
       # It is not recommended that you install this on a production system #
       #        as this script modifies many of your system settings.       #
       ######################################################################
       #             This script should be run by the root user.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #           ** Notice ** FOG is difficult to setup securely          #
       #        SELinux and IPTables are usually asked to be disabled       #
       #           There have been strides in adding capabilities           #
       #          The recommendations would now be more appropriate         #
       #    to set SELinux to permissive and to disable firewall for now.   #
       #  You can find some methods to enable SELinux and maintain firewall #
       #   settings and ports. If you feel comfortable doing so please do   #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Server IP Address: 192.168.1.4
     * Server Subnet Mask: 255.255.255.0
     * Interface: eth0
     * Installation Type: Normal Server
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: No
     * DHCP will NOT be setup but you must setup your
     | current DHCP server to use FOG for PXE services.
    
     * On a Linux DHCP server you must set: next-server and filename
    
     * On a Windows DHCP server you must set options 066 and 067
    
     * Option 066/next-server is the IP of the FOG Server: (e.g. 192.168.1.4)
     * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
    
    
     * Are you sure you wish to continue (Y/N) Y
    
     * Installation Started
    
     * Installing required packages, if this fails
     | make sure you have an active internet connection.
    
     * Adding needed repository....................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
    	apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php5 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php5 php5-bcmath php5-cli php5-curl php5-fpm php5-gd php5-json php5-mcrypt php5-mysql php5-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g 
    
    
     * Skipping package: apache2...................................(Already Installed)
     * Skipping package: bc........................................(Already Installed)
     * Skipping package: build-essential...........................(Already Installed)
     * Skipping package: cpp.......................................(Already Installed)
     * Skipping package: curl......................................(Already Installed)
     * Skipping package: g++.......................................(Already Installed)
     * Skipping package: gawk......................................(Already Installed)
     * Skipping package: gcc.......................................(Already Installed)
     * Skipping package: gzip......................................(Already Installed)
     * Skipping package: htmldoc...................................(Already Installed)
     * Skipping package: lftp......................................(Already Installed)
     * Installing package: libapache2-mod-php5.....................Failed! (Will try later)
     * Skipping package: libc6.....................................(Already Installed)
     * Skipping package: libcurl3..................................(Already Installed)
     * Skipping package: m4........................................(Already Installed)
     * Skipping package: mysql-client..............................(Already Installed)
     * Skipping package: mysql-server..............................(Already Installed)
     * Skipping package: net-tools.................................(Already Installed)
     * Skipping package: nfs-kernel-server.........................(Already Installed)
     * Skipping package: openssh-server............................(Already Installed)
     * Installing package: php5....................................Failed! (Will try later)
     * Skipping package: php5-bcmath...............................(Does not exist)
     * Skipping package: php5-cli..................................(Does not exist)
     * Skipping package: php5-curl.................................(Does not exist)
     * Skipping package: php5-fpm..................................(Does not exist)
     * Skipping package: php5-gd...................................(Does not exist)
     * Skipping package: php5-json.................................(Does not exist)
     * Skipping package: php5-mcrypt...............................(Does not exist)
     * Skipping package: php5-mysql................................(Does not exist)
     * Skipping package: php5-mysqlnd..............................(Does not exist)
     * Skipping package: php-gettext...............................(Already Installed)
     * Skipping package: sysv-rc-conf..............................(Already Installed)
     * Skipping package: tar.......................................(Already Installed)
     * Skipping package: tftpd-hpa.................................(Already Installed)
     * Skipping package: tftp-hpa..................................(Already Installed)
     * Skipping package: unzip.....................................(Already Installed)
     * Skipping package: vsftpd....................................(Already Installed)
     * Skipping package: wget......................................(Already Installed)
     * Skipping package: xinetd....................................(Already Installed)
     * Skipping package: zlib1g....................................(Already Installed)
     * Updating packages as needed.................................OK
     * Installing now everything is updated........................Failed!
    
    

  • Developer



  • [Wed Sep 27 07:35:05.570443 2017] [mpm_prefork:notice] [pid 35918] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Wed Sep 27 07:35:05.570613 2017] [core:notice] [pid 35918] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Sep 27 11:41:44.660472 2017] [php7:error] [pid 43102] [client 192.168.1.2:55176] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(176): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent('SEARCH_PAGES', Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
    [Wed Sep 27 11:45:53.325143 2017] [php7:error] [pid 43268] [client 192.168.1.4:41208] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(176): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent('SEARCH_PAGES', Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
    [Wed Sep 27 11:51:42.860788 2017] [mpm_prefork:notice] [pid 35918] AH00169: caught SIGTERM, shutting down
    [Wed Sep 27 11:52:35.118713 2017] [mpm_prefork:notice] [pid 1074] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Wed Sep 27 11:52:35.128385 2017] [core:notice] [pid 1074] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Sep 27 11:56:43.258574 2017] [php7:error] [pid 1304] [client 192.168.1.2:55309] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(176): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent('SEARCH_PAGES', Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
    [Wed Sep 27 11:56:48.257785 2017] [php7:error] [pid 1144] [client 192.168.1.2:55313] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(176): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent('SEARCH_PAGES', Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
    [Wed Sep 27 13:23:48.588303 2017] [php7:error] [pid 1304] [client 192.168.1.4:35028] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(176): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpagemanager.class.php(82): HookManager->processEvent('SEARCH_PAGES', Array)\n#3 [internal function]: FOGPageManager->__construct()\n#4 /var/www/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#6 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 443
    

  • Developer

    @BiologyBen Check /var/log/apache2/error.log on the FOG server and post here.



  • It took forever, but the command finished. Afterwards, the system indicated that updates were needed and those were installed. No error about no space on the /boot partition!

    Unfortunately, after reboot, Still get an http 500 error when browsing to the ipaddress/fog


  • Moderator

    On Ubuntu/Debian, a simple apt-get -y autoclean;apt-get -y autoremove is cleaner and will get more junk out.



  • Running your ‘fancy’ command now - I’ll update when it’s finished.

    Also, any way to expand the boot partition or automagically remove the old files and solve this for good?


  • Senior Developer

    kernelver=$(uname -r | sed -r 's/-[a-z]+//')
    dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver
    

    And if you really want to get fancy:

    sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
    

  • Senior Developer

    @biologyben Try these instructions:

    https://askubuntu.com/questions/89710/how-do-i-free-up-more-space-in-boot

    In particular, do not remove the kernel that is output from uname -rm



  • FOG Version: 1.4.0
    OS: Ubuntu 16.04 as a VM on a Windows 2012r2 Server
    2012r2 server functions as DC, AD DS, DNS, DHCP


  • Senior Developer

    What OS are you running?

    /boot is likely out of space, as you described.

    Knowing the OS FOG is running on would be extremely helpful.


Log in to reply
 

498
Online

39.4k
Users

11.1k
Topics

105.4k
Posts

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