Migrated from 0.32 to 1.2, need some help with /images
-
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.
[url]http://fogproject.org/wiki/index.php/Upgrade_to_1.x.x[/url] -
[ATTACH]1798[/ATTACH] [ATTACH]1797[/ATTACH]
First, when I list my images I get:danny@fog:~$ ls -l /images
total 120
drwxrwxrwx 2 root root 4096 Feb 3 08:52 DellE5440
drwxrwxrwx 2 root root 4096 Sep 10 2014 DellE5500
drwxrwxrwx 4 root root 4096 Mar 4 14:16 dev
drwxrwxrwx 2 root root 4096 Feb 17 08:58 E5430
drwxrwxrwx 2 root root 4096 Apr 3 2014 E5510W7
drwxrwxrwx 2 root root 4096 Nov 7 08:57 E5520
drwxrwxrwx 2 root root 4096 Oct 22 15:06 HP7900WIN7
drwxrwxrwx 2 root root 4096 Feb 19 10:20 HP8000
drwxrwxrwx 2 root root 16384 Jun 29 2012 lost+found
drwxrwxrwx 2 root root 4096 Dec 4 12:47 M58PW7
drwxrwxrwx 2 root root 4096 Mar 20 09:39 postdownloadscripts
drwxrwxrwx 2 root root 4096 Jun 22 2012 sysrescue
drwxrwxrwx 2 root root 4096 Feb 27 10:23 T410WIN7
drwxrwxrwx 2 root root 4096 Jun 22 2012 T410XP160Gbhdd
drwxrwxrwx 2 root root 4096 Mar 4 14:02 T420WINDOWS7
drwxrwxrwx 2 root root 4096 Jan 16 10:02 T430W7
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
drwxrwxrwx 2 root root 4096 Jan 17 2013 T520_XP
drwxrwxrwx 2 root root 4096 Oct 20 15:30 w520
drwxrwxrwx 2 root root 4096 Jul 12 2013 W700
drwxrwxrwx 2 root root 4096 Jun 29 2012 Win7T420Sysprepped
drwxrwxrwx 2 root root 4096 Feb 27 10:40 X200W7
drwxrwxrwx 2 root root 4096 Feb 24 10:11 X201Windows7
drwxrwxrwx 2 root root 4096 Jan 13 08:59 X220WIN7
drwxrwxrwx 2 root root 4096 Aug 28 2013 X230WIN7
danny@fog:~$
This is correct as all of them show up there but only these 3 are under img management in the FOG console:
[ATTACH]1797[/ATTACH]This now is a screenshot of a Lenovo T510 image, showing the correct OSID and image type:
[ATTACH=full]1797[/ATTACH][ATTACH=full]1798[/ATTACH][url=“/_imported_xf_attachments/1/1797_IMAGES.png?:”]IMAGES.png[/url][url=“/_imported_xf_attachments/1/1798_Screenshot - 03202015 - 11:01:46 AM.png?:”]Screenshot - 03202015 - 11:01:46 AM.png[/url]
-
Script started on Fri 20 Mar 2015 09:36:47 AM EDT
Ubuntu..#######:. ..,#,.. .::##::.
.:###### .:;####:…;#;…
…##… …##;,;##::::.##…
,# …##…##:::## …::
## .::###,##. . ##.::#.:######::.
…##:::###::…#. … .#…#. #…#:::.
…:####:… …##…##::## … #
# . …##:,;##;:::#: … ##…
.# . .:;####;::::.##:::;#:…
# …:;###…###########################################
FOG
Free Computer Imaging Solution
[url]http://www.fogproject.org/[/url]
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 [url]http://www.fogproject.org/wiki[/url]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: 0Are 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:
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!
-
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’ -
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”.
-
[quote=“kansukee, post: 44189, member: 1017”]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”.[/quote]
You’ve verified that the image actually exists in the directory? Is it in /images? or is it in /images/dev ?
-
[quote=“kansukee, post: 44184, member: 1017”]…
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
…[/quote]
Why is T510 owned by fog? Maybe there are other “issues” with those files in the directory?!?[CODE]sudo chown -R root:root /images/T510
sudo chmod -R 777 /images/T510[/CODE]EDIT: re-reading the whole thread I think this is not really relevant… sorry!
-
Agreed,
It’s not because of files existing (or not). It’s something else.
-
Please look at my logs that I provided. Other than start from scratch I don’t know what else to do…
-
[quote=“Wayne Workman, post: 44192, member: 28155”]You’ve verified that the image actually exists in the directory? Is it in /images? or is it in /images/dev ?[/quote]
They are under /images.
-
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.