Hi all,
I seem to have a problem after an svn revison upgrade from 24xx to 35xx. I’ve tried many revisons in 35xx but they all have the same problem.
After doing the svn checkout and run the installfog.sh script, fog determines all settings from the .fogsettings config file. This all works fine.
After installing the new revison I get a notification to update my database via the webinterface., giving me the messeage that the upgrade went fine.
After this in cd into /tftpboot and run ln -s undionly.kpxe undionly.0 to make sure that TFTP can boot the file. I am using dnsmasq as a proxy dhcp server.
For every machine I am testing now, tftp boots my clients, gets an ip adress and moves on to the next stage (iPXE firmware)
iPXE firmware, for some strange reason to a different server and looking for the default.kpxe file. http://server/default.kpxe instead of /default.ipxe.
Since it cannot find the request file, it’s booting from the hard drive.
Howerver, I have one laptop (HP Elitebook 8440P) which is able to boot from iPXE. For this laptop I say the Host is registered menu.
I have installed fogserver on a Debian 7 64 bit server machine.
Also I have seen some error logs in Apache2 after trying a kernel update.
PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /var/www/fog/lib/fog/FOGURLRequests.class.php on line 59, referer: http://192.168.20.xxx/fog/management/index.php?node=about&sub=kernel&install=1&file=aHR0cDovL2Rvd25sb2Fkcy5zb3VyY2Vmb3JnZS5uZXQvcHJvamVjdC9mcmVlZ2hvc3QvS2VybmVsTGlzdC9LZXJuZWwuVG9tRWxsaW90dC40LjAuNS4zMg==
Some more logs:
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: Debian GNU/Linux
Installation Type: Normal Server
Server IP Address: 192.168.20.250
DHCP router Address:
DHCP DNS Address:
Interface: eth0
Using FOG DHCP: 0
Internationalization: 0
Image Storage Location: /images
MySQL Connection Type: MYSQLI_ASYNC
Donate: 0
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
On a Windows DHCP server you must set:
option 066 & 067
Option 066 is the IP of the FOG Server: (e.g. 192.168.20.250)
Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
Are you sure you wish to continue (Y/N)
Installation Started...
Installing required packages, if this fails
make sure you have an active internet connection.
* Preparing apt-get
* Packages to be installed: apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip b$
* Skipping package: apache2 (Already installed)
* Skipping package: php5 (Already installed)
* Skipping package: php5-common (Already installed)
* Skipping package: php5-gd (Already installed)
* Skipping package: php5-cli (Already installed)
* Skipping package: php5-curl (Already installed)
* Skipping package: mysql-server (Already installed)
* Skipping package: mysql-client (Already installed)
* Skipping package: tftpd-hpa (Already installed)
* Skipping package: tftp-hpa (Already installed)
* Skipping package: nfs-kernel-server (Already installed)
* Skipping package: vsftpd (Already installed)
* Skipping package: net-tools (Already installed)
* Skipping package: wget (Already installed)
* Skipping package: xinetd (Already installed)
* Skipping package: sysv-rc-conf (Already installed)
* Skipping package: tar (Already installed)
* Skipping package: gzip (Already installed)
* Skipping package: build-essential (Already installed)
* Skipping package: cpp (Already installed)
* Skipping package: gcc (Already installed)
* Skipping package: g++ (Already installed)
* Skipping package: m4 (Already installed)
* Skipping package: htmldoc (Already installed)
* Skipping package: lftp (Already installed)
* Skipping package: openssh-server (Already installed)
* Skipping package: php-gettext (Already installed)
* Skipping package: php5-mcrypt (Already installed)
* Installing package: php5-mysqlnd
* Installing package: curl
* Skipping package: libc6 (Already installed)
* Skipping package: libcurl3 (Already installed)
* Skipping package: zlib1g (Already installed)
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-curl...OK
* Checking package: mysql-server...OK
* Checking package: mysql-client...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: php5-mcrypt...OK
* Checking package: php5-mysqlnd...OK
* Checking package: curl...OK
* Checking package: libc6...OK
* Checking package: libcurl3...OK
* Checking package: zlib1g...OK
Configuring services.
* Setting up and starting MySql...OK
* Backing up user reports...OK
* Setting up and starting Apache Web Server...OK
* Changing permissions on apache log files...OK
* Downloading kernels and inits...OK
* Downloading New FOG Client file...OK
* Copying back any custom hook files...OK
* Copying back any custom report files...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.20.250/fog/management
Press [Enter] key when database is updated/installed.
* Setting up storage...OK
* Setting up and starting DHCP Server...Skipped
* 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
* Setting up FOG Utils...OK
* Starting FOG Multicast Management Server...OK
* Starting FOG Image Replicator Server...OK
* Starting FOG Task Scheduler Server...OK
* Starting FOG Snapin Replicator Server...OK
* Setting up and starting NFS Server...OK
* Linking /opt/fog/log to /var/log/fog...OK
* Linking /opt/fog/service/etc to /etc/fog...OK
* Creating SSL CA...OK
* Creating SSL Private Key...OK
* Creating SSL Certificate...OK
* Creating auth pub key and cert...OK
* Resetting SSL Permissions...OK
* Setting up SSL FOG Server...OK
Setup complete!
You can now login to the FOG Management Portal using
the information listed below. The login information
is only if this is the first install.
This can be done by opening a web browser and going to:
http://192.168.20.250/fog/management
Default User:
Username: fog
Password: password
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:12 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:34746->[192.168.20.250]
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 available DHCP subnet: 192.168.20.0/255.255.255.0
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 vendor class: PXEClient:Arch:00000:UNDI:002001
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 PXE(eth0) 20:47:47:11:29:91 proxy
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 tags: eth0
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 bootfile name: undionly.kpxe
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 next server: 192.168.20.250
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 broadcast response
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 1 option: 53 message-type 2
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 4 option: 54 server-identifier 192.168.20.250
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 17 option: 97 client-machine-id 00:44:45:4c:4c:53:00:10:5a:80:39:b2:c0:4f...
Jun 24 19:28:23 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 60 option: 43 vendor-encap 06:01:03:08:07:80:00:01:c0:a8:14:fa:09:14...
Jun 24 19:28:27 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 available DHCP subnet: 192.168.20.0/255.255.255.0
Jun 24 19:28:27 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 vendor class: PXEClient:Arch:00000:UNDI:002001
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 available DHCP subnet: 192.168.20.0/255.255.255.0
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 vendor class: PXEClient:Arch:00000:UNDI:002001
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 PXE(eth0) 192.168.20.74 20:47:47:11:29:91 undionly.0
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 tags: eth0
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 bootfile name: undionly.0
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 next server: 192.168.20.250
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 1 option: 53 message-type 5
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 4 option: 54 server-identifier 192.168.20.250
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 17 option: 97 client-machine-id 00:44:45:4c:4c:53:00:10:5a:80:39:b2:c0:4f...
Jun 24 19:28:31 debian-server-01 dnsmasq-dhcp[2592]: 1209084305 sent size: 32 option: 43 vendor-encap 47:04:80:00:00:00:0a:17:03:50:72:65:73:73...
Jun 24 19:28:32 debian-server-01 snmpd[2614]: Connection from UDP: [192.168.20.252]:49158->[192.168.20.250]
Jun 24 19:28:32 debian-server-01 in.tftpd[10686]: tftp: client does not accept options
tcpdump -i eth0 udp port 69
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
19:46:48.823908 IP 192.168.20.74.2070 > debian-server-01.tftp: 27 RRQ "undionly.0" octet tsize 0
19:46:48.825410 IP 192.168.20.74.2071 > debian-server-01.tftp: 32 RRQ "undionly.0" octet blksize 1456
tcpdump -i eth0 udp port 67
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
19:47:50.447756 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 20:47:47:11:29:91 (oui Unknown), length 548
19:47:50.448208 IP debian-server-01.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 342
19:47:51.449278 IP 192.168.20.1.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 307
19:47:54.484690 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 20:47:47:11:29:91 (oui Unknown), length 548
19:47:54.486236 IP 192.168.20.1.bootps > 255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 307
19:47:55.412486 IP 192.168.20.179.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 40:a8:f0:63:1d:e5 (oui Unknown), length 300
What can be the problem? I didn’t have any problem with an older revison 24xx.
Thanks all for your help, it will be much appreciated.
Ken
—Mod edited to use code boxes.