Migrated from 0.32 to 1.2, need some help with /images



  • Hi everyone, I have been using FOG for a bit over 3 years, version 0.32. I decided a couple of days ago to move to Ubuntu 14 (previously on 12.0.4) and FOG 1.2

    I have been able to install FOG, add sysrescuecd to the pxe menu and boot from it, imported the old host database and even copied an image from the original server and could deploy a host using instructions from http://fogproject.org/forum/threads/transfer-images-from-0-32-to-fresh-1-2-0-1-2-0-cant-see-images.11671/

    My images resided on an external drive in the old server so I moved the driver over, mounted it and added it to /images and it does mount and show up BUT* even after manually creating an image that exactly matches the old image name, checking permissions etc, when I try to associate a host with an image it does not take and if I try to deploy the host I get this:

    “Download task failed to create for [U]LU092652[/U] with image
    Image is not valid”

    Getting my images to be recognized is all that’s left for me_ and yes, they are set to partimage. Believe me I looked everywhere before deciding to post here but right now I’m stuck so any help will be much appreciated. Thanks!


  • Moderator

    Simple question again, have you looked in storage management to ensure that the storage node you’re using has the right path & credentials?

    The credentials on my FOG machine is set to the user “fog”, which is also a Linux user as well. The credentials should match for both.



  • @Wayne Workman, post: 44192, member: 28155 said:

    You’ve verified that the image actually exists in the directory? Is it in /images? or is it in /images/dev ?

    They are under /images.



  • Please look at my logs that I provided. Other than start from scratch I don’t know what else to do…


  • Senior Developer

    Agreed,

    It’s not because of files existing (or not). It’s something else.


  • Developer

    @kansukee, post: 44184, member: 1017 said:


    drwxrwxrwx 2 root root 4096 Sep 8 2014 T431s
    drwxrwxrwx 2 fog root 4096 Mar 3 10:29 T510
    drwxrwxrwx 2 root root 4096 Feb 17 13:43 T520

    Why is T510 owned by fog? Maybe there are other “issues” with those files in the directory?!?

    sudo chown -R root:root /images/T510
    sudo chmod -R 777 /images/T510
    

    EDIT: re-reading the whole thread I think this is not really relevant… sorry!


  • Moderator

    @kansukee, post: 44189, member: 1017 said:

    Just to check, I deleted the old, copied T510 image from /images, created a new T510 image from scratch with OSID 5, single disk, multiple partitions, not resizeable. Tried again to assign a host to it and failed with “no valid image”.

    You’ve verified that the image actually exists in the directory? Is it in /images? or is it in /images/dev ?



  • Just to check, I deleted the old, copied T510 image from /images, created a new T510 image from scratch with OSID 5, single disk, multiple partitions, not resizeable. Tried again to assign a host to it and failed with “no valid image”.



  • And the Apache log:

    [Tue Mar 17 13:20:23.783526 2015] [mpm_event:notice] [pid 22235:tid 140240438323072] AH00489: Apache/2.4.7 (Ubuntu) configured – resuming normal operations
    [Tue Mar 17 13:20:23.783609 2015] [core:notice] [pid 22235:tid 140240438323072] AH00094: Command line: ‘/usr/sbin/apache2’
    [Tue Mar 17 13:21:11.644798 2015] [mpm_event:notice] [pid 22235:tid 140240438323072] AH00491: caught SIGTERM, shutting down
    [Tue Mar 17 13:21:12.698150 2015] [mpm_prefork:notice] [pid 23894] AH00163: Apache/2.4.7 (Ubuntu) configured – resuming normal operations
    [Tue Mar 17 13:21:12.698217 2015] [core:notice] [pid 23894] AH00094: Command line: ‘/usr/sbin/apache2’
    [Tue Mar 17 13:21:13.914355 2015] [mpm_prefork:notice] [pid 23894] AH00169: caught SIGTERM, shutting down
    [Tue Mar 17 13:21:15.010728 2015] [mpm_prefork:notice] [pid 23970] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.6 configured – resuming normal operations
    [Tue Mar 17 13:21:15.010783 2015] [core:notice] [pid 23970] AH00094: Command line: ‘/usr/sbin/apache2’
    [Tue Mar 17 13:32:06.606399 2015] [mpm_prefork:notice] [pid 23970] AH00169: caught SIGTERM, shutting down
    [Tue Mar 17 13:32:07.663588 2015] [mpm_prefork:notice] [pid 6147] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.6 configured – resuming normal operations
    [Tue Mar 17 13:32:07.663640 2015] [core:notice] [pid 6147] AH00094: Command line: ‘/usr/sbin/apache2’
    [Tue Mar 17 13:40:23.360323 2015] [mpm_prefork:notice] [pid 6147] AH00169: caught SIGTERM, shutting down
    [Tue Mar 17 13:40:24.428356 2015] [mpm_prefork:notice] [pid 7970] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.6 configured – resuming normal operations
    [Tue Mar 17 13:40:24.428408 2015] [core:notice] [pid 7970] AH00094: Command line: ‘/usr/sbin/apache2’
    [Tue Mar 17 14:04:14.828169 2015] [mpm_prefork:notice] [pid 7970] AH00169: caught SIGTERM, shutting down
    [Tue Mar 17 14:04:15.896997 2015] [mpm_prefork:notice] [pid 11047] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.6 configured – resuming normal operations
    [Tue Mar 17 14:04:15.897047 2015] [core:notice] [pid 11047] AH00094: Command line: '/usr/sbin/apache2’
    df: ‘/images’: No such file or directory
    [Thu Mar 19 10:18:14.264585 2015] [mpm_prefork:notice] [pid 11047] AH00169: caught SIGTERM, shutting down
    [Thu Mar 19 10:32:07.537116 2015] [mpm_prefork:notice] [pid 2519] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.6 configured – resuming normal operations
    [Thu Mar 19 10:32:07.558807 2015] [core:notice] [pid 2519] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 08:33:03.304898 2015] [mpm_prefork:notice] [pid 2519] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 08:33:04.059972 2015] [mpm_prefork:notice] [pid 24203] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 08:33:04.060029 2015] [core:notice] [pid 24203] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 08:34:11.876438 2015] [mpm_prefork:notice] [pid 24203] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 08:37:41.508221 2015] [mpm_prefork:notice] [pid 1809] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 08:37:41.547957 2015] [core:notice] [pid 1809] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 08:45:07.108244 2015] [mpm_prefork:notice] [pid 1809] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 08:45:59.977106 2015] [mpm_prefork:notice] [pid 1947] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 08:46:00.014874 2015] [core:notice] [pid 1947] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 08:46:54.265984 2015] [mpm_prefork:notice] [pid 1947] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 08:47:55.405254 2015] [mpm_prefork:notice] [pid 2520] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 08:47:55.426417 2015] [core:notice] [pid 2520] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 09:16:11.456429 2015] [mpm_prefork:notice] [pid 2520] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 09:17:06.472751 2015] [mpm_prefork:notice] [pid 2311] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 09:17:06.472821 2015] [core:notice] [pid 2311] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 09:38:55.309665 2015] [mpm_prefork:notice] [pid 2311] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 09:38:56.366936 2015] [mpm_prefork:notice] [pid 4097] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 09:38:56.366995 2015] [core:notice] [pid 4097] AH00094: Command line: ‘/usr/sbin/apache2’
    [Fri Mar 20 09:53:06.316169 2015] [:error] [pid 6213] [client 192.168.1.147:37131] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Image is not valid’ in /var/www/fog/lib/fog/Host.class.php:968\nStack trace:\n#0 /var/www/fog/lib/fog/BootMenu.class.php(371): Host->createImagePackage(1, ‘AutoRegTask’, false, false, true, false, ‘fog’)\n#1 /var/www/fog/lib/fog/BootMenu.class.php(343): BootMenu->setTasking()\n#2 /var/www/fog/lib/fog/BootMenu.class.php(146): BootMenu->verifyCreds()\n#3 /var/www/fog/service/ipxe/boot.php(14): BootMenu->__construct(Object(Host))\n#4 {main}\n thrown in /var/www/fog/lib/fog/Host.class.php on line 968
    [Fri Mar 20 10:21:58.498219 2015] [mpm_prefork:notice] [pid 4097] AH00169: caught SIGTERM, shutting down
    [Fri Mar 20 10:59:51.464642 2015] [mpm_prefork:notice] [pid 2480] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.7 configured – resuming normal operations
    [Fri Mar 20 10:59:51.495772 2015] [core:notice] [pid 2480] AH00094: Command line: ‘/usr/sbin/apache2’



  • Script started on Fri 20 Mar 2015 09:36:47 AM EDT
    Ubuntu

       ..#######:.    ..,#,..     .::##::.    
    

    .:###### .:;####:…;#;…
    …##… …##;,;##::::.##…
    ,# …##…##:::## …::
    ## .::###,##. . ##.::#.:######::.
    …##:::###::…#. … .#…#. #…#:::.
    …:####:… …##…##::## … #
    # . …##:,;##;:::#: … ##…
    .# . .:;####;::::.##:::;#:…
    # …:;###…

    ###########################################

    FOG

    Free Computer Imaging Solution

    http://www.fogproject.org/

    Developers:

    Chuck Syperski

    Jian Zhang

    Peter Gilchrist

    Tom Elliott

    GNU GPL Version 3

    ###########################################

    Version: 1.2.0 Installer/Updater

    • Found FOG Settings from previous install at: /opt/fog/.fogsettings
    • Performing upgrade using these settings…

    Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

    #####################################################################

    FOG now has everything it needs to setup your server, 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 on Redhat or with sudo on Ubuntu.

    ** Notice ** Redhat users will need to disable SELinux and iptables in
    order to use FOG
    Please see our wiki for more information at http://www.fogproject.org/wiki

    Here are the settings FOG will use:
    Base Linux: Debian
    Detected Linux Distribution: Ubuntu
    Installation Type: Normal Server
    Server IP Address: 192.168.1.101
    DHCP router Address: 192.168.1.1
    DHCP DNS Address: 192.168.1.1
    Interface: eth0
    Using FOG DHCP: 1
    Internationalization: 0
    Donate: 0

    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.

    • Preparing apt-get

    • Installing package: apache2

    • Installing package: php5

    • Installing package: php5-json

    • Installing package: php5-gd

    • Installing package: php5-cli

    • Installing package: php5-mysql

    • Installing package: php5-curl

    • Installing package: mysql-server

      We are about to install MySQL Server on
      this server, if MySQL isn’t installed already
      you will be prompted for a root password.

      Press enter to acknowledge this message.

    Reading package lists…
    Building dependency tree…
    Reading state information…
    mysql-server is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    • Installing package: mysql-client
    • Installing package: isc-dhcp-server
    • Installing package: tftpd-hpa
    • Installing package: tftp-hpa
    • Installing package: nfs-kernel-server
    • Installing package: vsftpd
    • Installing package: net-tools
    • Installing package: wget
    • Installing package: xinetd
    • Installing package: sysv-rc-conf
    • Installing package: tar
    • Installing package: gzip
    • Installing package: build-essential
    • Installing package: cpp
    • Installing package: gcc
    • Installing package: g++
    • Installing package: m4
    • Installing package: htmldoc
    • Installing package: lftp
    • Installing package: openssh-server
    • Installing package: php-gettext
    • Installing package: clamav-freshclam

    Confirming package installation.

    • Checking package: apache2…OK
    • Checking package: php5…OK
    • Checking package: php5-json…OK
    • Checking package: php5-gd…OK
    • Checking package: php5-cli…OK
    • Checking package: php5-mysql…OK
    • Checking package: php5-curl…OK
    • Checking package: mysql-server…OK
    • Checking package: mysql-client…OK
    • Checking package: isc-dhcp-server…OK
    • Checking package: tftpd-hpa…OK
    • Checking package: tftp-hpa…OK
    • Checking package: nfs-kernel-server…OK
    • Checking package: vsftpd…OK
    • Checking package: net-tools…OK
    • Checking package: wget…OK
    • Checking package: xinetd…OK
    • Checking package: sysv-rc-conf…OK
    • Checking package: tar…OK
    • Checking package: gzip…OK
    • Checking package: build-essential…OK
    • Checking package: cpp…OK
    • Checking package: gcc…OK
    • Checking package: g++…OK
    • Checking package: m4…OK
    • Checking package: htmldoc…OK
    • Checking package: lftp…OK
    • Checking package: openssh-server…OK
    • Checking package: php-gettext…OK
    • Checking package: clamav-freshclam…OK

    Configuring services.

    • Setting up and starting MySql…OK

    • Backing up user reports…OK

    • Setting up and starting Apache Web Server…OK
      You still need to install/update your database schema.
      This can be done by opening a web browser and going to:

      http://192.168.1.101/fog/management

    Press [Enter] key when database is updated/installed.

    • Configuring Fresh Clam…OK
    • Setting up storage…OK
    • Setting up and starting DHCP Server…OK
    • Setting up and starting TFTP and PXE Servers…OK
    • Setting up and starting VSFTP Server…OK
    • Setting up sudo settings…OK
    • Setting up FOG Snapins…OK
    • Setting up and building UDPCast…OK
    • Installing init scripts…OK
    • Setting up FOG Services…OK
    • Starting FOG Multicast Management Server…OK
    • Starting FOG Image Replicator Server…OK
    • Starting FOG Task Scheduler Server…OK
    • Setting up FOG Utils…OK

    Would you like to notify the FOG group about this installation?
    * This information is only used to help the FOG group determine
    if FOG is being used. This information helps to let us know
    if we should keep improving this product.

    Send notification? (Y/N)y

    • Thank you, sending notification…Done

    Setup complete!



  • IMAGES.pngScreenshot - 03202015 - 11:01:46 AM.png


  • Developer

    There is a wiki for the migration. If you could take a look over this and make sure you didn’t miss a step that would be a great place to start.
    http://fogproject.org/wiki/index.php/Upgrade_to_1.x.x


  • Senior Developer

    And you’re sure the OSID is assigned on the image?



  • Hi Tom, and thank you for the quick response. OS id and partition type etc are correct. I did notice that this started happening *after I mounted the external drive and set it to /images. I will get those logs and put them up for you in a few.


  • Senior Developer

    Check that the OSID is set for the image properly as well as the Partition Type (if that option is available) to everything and whether or not the image is Resizable, Multipart, etc…


Log in to reply
 

335
Online

38729
Users

10555
Topics

99925
Posts

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