PXE Boot Problems after install FOG 1.0.0 on Ubuntu DHCP Server
-
Correct.
-
new day new challange!
made a new installation.
Here are the settings FOG will use:
Base Linux: Debian
Detected Linux Distribution: Ubuntu
Installation Type: Normal Server
Server IP Address: 192.168.1.2
DHCP router Address: 192.168.1.1
DHCP DNS Address: 8.8.8.8
Interface: eth1
Using FOG DHCP: 1
Internationalization: 0
Donate: 0after the installation, i changed first the mysql pw.
the strange thing is, that i can’t connect via [url]http://192.168.1.2/fog/management[/url] BUT [url]http://192.168.1.1/fog/management[/url] works!
the installation is out of the box…:-)
here are the setting of /var/www/fog/commons/config.php;
[CODE]
define(‘DATABASE_TYPE’, ‘mysql’); // mysql or oracle
define(‘DATABASE_HOST’, ‘localhost’);
define(‘DATABASE_NAME’, ‘fog’);
define(‘DATABASE_USERNAME’, ‘root’);
define(‘DATABASE_PASSWORD’, ‘password’);[/CODE]apache error log;
[CODE][Thu May 15 09:05:57 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/fog/lib/db/MySQL.class.php on line 156
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/fog/lib/db/MySQL.class.php on line 156
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/fog/lib/db/MySQL.class.php on line 156
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/fog/lib/db/MySQL.class.php on line 156
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_real_escape_string(): Access denied for user ‘www-data’@‘localhost’ (using password: NO) in /var/www/fog/lib/db/MySQL.class.php on line 253
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/fog/lib/db/MySQL.class.php on line 253
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_real_escape_string(): Access denied for user ‘www-data’@‘localhost’ (using password: NO) in /var/www/fog/lib/db/MySQL.class.php on line 253
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/fog/lib/db/MySQL.class.php on line 253
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
[Thu May 15 09:06:48 2014] [error] [client 192.168.1.50] PHP Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/fog/lib/db/MySQL.class.php on line 95
[Thu May 15 09:21:24 2014] [notice] Graceful restart requested, doing restart
[Thu May 15 09:21:24 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[Thu May 15 09:21:24 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
[Thu May 15 09:21:25 2014] [notice] Graceful restart requested, doing restart
[Thu May 15 09:21:25 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[Thu May 15 09:21:25 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
[Thu May 15 09:21:39 2014] [notice] Graceful restart requested, doing restart
[Thu May 15 09:21:39 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu May 15 09:21:39 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[Thu May 15 09:21:39 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
[Thu May 15 09:31:07 2014] [error] [client 192.168.1.50] File does not exist: /var/www/favicon.ico
[Thu May 15 09:31:07 2014] [error] [client 192.168.1.50] File does not exist: /var/www/favicon.ico
[Thu May 15 09:31:11 2014] [error] [client 192.168.1.50] PHP Warning: mysql_close(): 13 is not a valid MySQL-Link resource in /var/www/fog/lib/db/MySQL.class.php on line 45, referer: http://192.168.1.1/fog/commons/schemaupdater/index.php?redir=1
[Thu May 15 09:31:11 2014] [error] [client 192.168.1.50] PHP Fatal error: Call to a member function debug() on a non-object in /var/www/fog/lib/db/MySQL.class.php on line 50, referer: http://192.168.1.1/fog/commons/schemaupdater/index.php?redir=1
[Thu May 15 09:31:13 2014] [error] [client 192.168.1.50] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/pages/DashboardPage.class.php on line 30, referer: http://192.168.1.1/fog/commons/schemaupdater/index.php?redir=1
[Thu May 15 09:31:59 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/management/css/images, referer: http://192.168.1.1/fog/management/css/jquery-ui.css
[Thu May 15 09:31:59 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/management/css/images, referer: http://192.168.1.1/fog/management/css/jquery-ui.css
[Thu May 15 09:31:59 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/management/css/images, referer: http://192.168.1.1/fog/management/css/jquery-ui.css
[Thu May 15 09:32:40 2014] [error] [client 192.168.1.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Mainmenu.class.php on line 20
[Thu May 15 09:32:40 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/images, referer: http://192.168.1.1/fog/management/css/fog.css
[Thu May 15 09:32:45 2014] [error] [client 192.168.1.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Mainmenu.class.php on line 20
[Thu May 15 09:32:45 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/images, referer: http://192.168.1.1/fog/management/css/fog.css
[Thu May 15 09:35:46 2014] [notice] caught SIGTERM, shutting down
[Thu May 15 10:20:18 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
root@ICTsrvLIN:~# tail -f /var/log/apache2/error.log
[Thu May 15 09:31:59 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/management/css/images, referer: http://192.168.1.1/fog/management/css/jquery-ui.css
[Thu May 15 09:31:59 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/management/css/images, referer: http://192.168.1.1/fog/management/css/jquery-ui.css
[Thu May 15 09:31:59 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/management/css/images, referer: http://192.168.1.1/fog/management/css/jquery-ui.css
[Thu May 15 09:32:40 2014] [error] [client 192.168.1.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Mainmenu.class.php on line 20
[Thu May 15 09:32:40 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/images, referer: http://192.168.1.1/fog/management/css/fog.css
[Thu May 15 09:32:45 2014] [error] [client 192.168.1.50] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Mainmenu.class.php on line 20
[Thu May 15 09:32:45 2014] [error] [client 192.168.1.50] File does not exist: /var/www/fog/images, referer: http://192.168.1.1/fog/management/css/fog.css
[Thu May 15 09:35:46 2014] [notice] caught SIGTERM, shutting down
[Thu May 15 10:20:18 2014] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.8 configured – resuming normal operations
[Thu May 15 09:43:08 2014] [error] [client 192.168.17.51] PHP Fatal error: Call to a member function get() on a non-object in /var/www/fog/lib/pages/DashboardPage.class.php on line 30
[/CODE] -
This post is deleted! -
uhhh, something is running!
the tftp ip adress is wrong, in the configuration menu the ip adress is 192.168.1.1 --> how to change this?
[url=“/_imported_xf_attachments/0/770_2014-05-14 13.32.54.jpg?:”]2014-05-14 13.32.54.jpg[/url]
-
finally it works!
i changed the ip adress to 192.168.1.1 for all in instances.
changed the mysql pw under /var/www/fog/commons/config.phpet voila
thanks for all the support!
raffa
-
Hello,
I have a problem after upgrading to version 1.01. At boot displays the following message:
[IMG]http://i61.tinypic.com/2ypdcnn.jpg[/IMG]
Tnx All! -
When you go the FOG GUI from a browser, does all operate properly?
-
Yes, apparently everything works well
-
[quote=“Tom Elliott, post: 27662, member: 7271”]When you go the FOG GUI from a browser, does all operate properly?[/quote]
solved. I have stopped vsftpd and ipxe has started properly.
-
Alright I had to create an account to submit my issue. I have spent about 2 days of reading and testing but have not had any success. I am trying to setup fog 1.0.1 and have a windows dhcp server (66 and 67 are setup correctly (undionly.kpxe). I have tried on 14.04 64bit and now 12.04 32bit with the exact same issue. I pxe boot the client and it picks up dhcp and starts the boot but I get an error when the line hits “<myip>/fog/service/ipxe/boot.php no such file”. I checked the directory and the file is clearly there, I disabled firewall and even opened up all permissions with still no luck. I gave up for the night but in the morning my next try will be to download fog and try an older install to see if this continues. Any help or insight before the downgrade would be appreciated.
-
I take it you can log in to the gui OK.
A couple of things to try.
point your browser at [url]http://<myip>/fog/service/ipxe/boot.php[/url] you should see an ipxe menu.
if this fails check your apache log, on ubuntu 12.04 the above should go to /var/log/www/fog/service/ipxe/boot.php if my memory serves me right.
There should be an entry in the log saying what it can’t find. -
[quote=“bradburyn, post: 28243, member: 24378”]Alright I had to create an account to submit my issue. I have spent about 2 days of reading and testing but have not had any success. I am trying to setup fog 1.0.1 and have a windows dhcp server (66 and 67 are setup correctly (undionly.kpxe). I have tried on 14.04 64bit and now 12.04 32bit with the exact same issue. I pxe boot the client and it picks up dhcp and starts the boot but I get an error when the line hits “<myip>/fog/service/ipxe/boot.php no such file”. I checked the directory and the file is clearly there, I disabled firewall and even opened up all permissions with still no luck. I gave up for the night but in the morning my next try will be to download fog and try an older install to see if this continues. Any help or insight before the downgrade would be appreciated.[/quote]
When you installed, did a symlink from /var/www/fog get created in /var/www/html/? If so, chances are this is what’s causing your particular issue. You may need to edit the configuration file to make /var/www/ the document root as opposed to /var/www/html
-
That makes sense. I did change the root directory to /var/www/html/fog in /etc/apache2/sites-available/default to redirect to x.x.x.x/fog instead so I can just type the ip in the browser and not have to do /fog after. I reverted back and everything is good to go. My next question, how would I be able to setup the server to point to x.x.x.x/fog when I type just x.x.x.x in the browser?
-
Solved my own question. I did go back and change the default files under apache2/sites-available to point to html/fog and then changed the web config on the Web UI to point to just ‘/’ instead of /fog/ and then edited /tftpboot/default.ipxe to change the path and eliminated the ‘/fog/’ section and all is good to go now. Thanks for the help, that little tip helped solve all my problems!
-
why not just put a redirect in the root?
-
[quote=“Junkhacker, post: 28263, member: 21583”]why not just put a redirect in the root?[/quote]
Change /var/www/fog/index.html to contain the following:[CODE]<meta http-equiv=Refresh content=“0;url=/fog/”>[/CODE]
Edit:
[U][B]IF you don’t have any other web services on this machine [/B][/U] -
[quote]undionly.kpxe is the new filename that DHCP option 67 should point to now?[/quote]
Might it not be a good idea to update all the info on the wiki/guide to reflect this fact especially for new users? I spent a half hour trying figure out why PXE boot wasn’t working and just about everywhere states “pxelinux.0” as the proper file. -
Are there other changes in v1.0.x that are going to be incompatible with earlier releases? Is there a document somewhere that describes any changes? Thanks.
-
[quote=“number_one, post: 28781, member: 24434”]Might it not be a good idea to update all the info on the wiki/guide to reflect this fact especially for new users? I spent a half hour trying figure out why PXE boot wasn’t working and just about everywhere states “pxelinux.0” as the proper file.[/quote]
I’m slowly working on the documentation. That said, the documentation within the installer is up-to-date. So while I’m sorry the WIKI is not up to par quite yet, there IS information available.
-
Tom, do you mean the documentation shown as the installer runs? Maybe I’m missing something but I don’t see much except for a changelog included with the installer files. If you mean inline documentation within the installer then I didn’t pay enough attention while it was running. Sorry about the venting; just haven’t had any experience with FOG yet and am eager to get things up and running.