Failed to connect to database server, will try again in next iteration.
-
The instructions were not for creating a user named fog, but for resetting the password.
Did you check your apache logs for related errors. (/var/log/apache2/errors.log)
-
When posting terminal output or log files, always put them inside CODE tags so they stand out and are not interpreted into smilies by the bb software.
-
[quote=“chad-bisd, post: 5289, member: 18”]The instructions were not for creating a user named fog, but for resetting the password.
Did you check your apache logs for related errors. (/var/log/apache2/errors.log)[/quote]
[CODE]tail -40 /var/log/apache2/error.log
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: fog_user in /var/www/fog/management/index.php on line 44, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: id in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: fog_user in /var/www/fog/management/index.php on line 44, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] File does not exist: /var/www/favicon.ico
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: id in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: fog_user in /var/www/fog/management/index.php on line 44, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] File does not exist: /var/www/favicon.ico
[Wed Aug 01 11:09:42 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login[/CODE]A mess I can not decifer. The only reason I don’t reinstall is because I want to understand how to fix the problem. I’d learn nothing of how to maintain my FOG server with a reinstall at every issue.
I appreciate your help.
As to the reset of the PW. I did not have a fog user for the fog user’s pw to be reset. I created the user “fogadmin”, which I edited the config.php files to reflect per the instruction in this thread. The only users I have are root and fogadmin, both with the same passwords.
-
[quote=“chad-bisd, post: 5290, member: 18”]When posting terminal output or log files, always put them inside CODE tags so they stand out and are not interpreted into smilies by the bb software.[/quote]
Would it be easier to get support in the IRC channel for real-time feed back?
-
I don’t IRC, but I do actively monitor the forums all day long (Central time, US).
-
[quote=“darthanubis, post: 5298, member: 1659”][CODE]tail -40 /var/log/apache2/error.log
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: fog_user in /var/www/fog/management/index.php on line 44, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:03:22 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: id in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: fog_user in /var/www/fog/management/index.php on line 44, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] File does not exist: /var/www/favicon.ico
[Wed Aug 01 11:09:38 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: id in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined index: fog_user in /var/www/fog/management/index.php on line 44, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login
[Wed Aug 01 11:09:41 2012] [error] [client 192.168.0.113] File does not exist: /var/www/favicon.ico
[Wed Aug 01 11:09:42 2012] [error] [client 192.168.0.113] PHP Notice: Undefined variable: Proxy in /var/www/fog/commons/functions.include.php on line 3506, referer: http://192.168.0.132/fog/management/index.php?node=login[/CODE]A mess I can not decifer. The only reason I don’t reinstall is because I want to understand how to fix the problem. I’d learn nothing of how to maintain my FOG server with a reinstall at every issue.
I appreciate your help.
As to the reset of the PW. I did not have a fog user for the fog user’s pw to be reset. I created the user “fogadmin”, which I edited the config.php files to reflect per the instruction in this thread. The only users I have are root and fogadmin, both with the same passwords.[/quote]
[url]http://sourceforge.net/tracker/?func=detail&atid=976199&aid=3398951&group_id=201099[/url]
-
I don’t see any errors that would indicate a php failure during the authentication check.
Don’t get confused between a system user and a FOG user and a MySQL user.
Is your MySQL root password blank?
Try to login to mysql as root without a password:
[CODE]mysql -u root[/CODE]
Do you get in or do you get an error?
-
I get the “undefined index” errors in my apache log also. They do not keep FOG from working.
Also, why did you quite your own post with the entire log file over again?
-
[quote=“chad-bisd, post: 5302, member: 18”]I don’t see any errors that would indicate a php failure during the authentication check.
Don’t get confused between a system user and a FOG user and a MySQL user.
Is your MySQL root password blank?
Try to login to mysql as root without a password:
[CODE]mysql -u root[/CODE]
Do you get in or do you get an error?[/quote]
It is not blank.
[CODE]mysql -u root
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)[/CODE] -
ok. now make sure the mysql password is set properly in the /var/www/fog/commons/config.php file.
-
[quote=“chad-bisd, post: 5303, member: 18”]I get the “undefined index” errors in my apache log also. They do not keep FOG from working.
Also, why did you quite your own post with the entire log file over again?[/quote]
I added a link to that post in reference to my log file errors. I thought the two were relevant.
-
[quote=“chad-bisd, post: 5305, member: 18”]ok. now make sure the mysql password is set properly in the /var/www/fog/commons/config.php file.[/quote]
It is in there.
[CODE]define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “fogadmin” );
define( “MYSQL_PASSWORD”, “password” );[/CODE] -
That doesn’t look right. The MYSQL_USERNAME shout be root on the master fog server. the MYSQL_PASSWORD should be whatever you use when connecting using “mysql -u root -p” from the command line.
-
[quote=“chad-bisd, post: 5308, member: 18”]That doesn’t look right. The MYSQL_USERNAME shout be root on the master fog server. the MYSQL_PASSWORD should be whatever you use when connecting using “mysql -u root -p” from the command line.[/quote]
I changed the user back to root, the password is correct, and no change.
-
ok. query the users table in the fog database in mysql and post the contents.
[CODE]
mysql -u root -ppassword fog
mysql>select uName from users;
[/CODE]That should list all logins available to the web interfaces.
-
[quote=“chad-bisd, post: 5310, member: 18”]ok. query the users table in the fog database in mysql and post the contents.
[CODE]
mysql -u root -ppassword fog
mysql>select uName from users;
[/CODE]That should list all logins available to the web interfaces.[/quote]
[CODE]mysql> mysql>select uName from users;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘mysql>select uName from users’ at line 1[/CODE] -
when you see it, you’ll be like WHOA!
-
See it??
-
[CODE]mysql> mysql>[/CODE]
I posted the command with the prompt in it so you’d know you need to run the script at the mysql> prompt.
Remove “mysql>” from the query. Technically, I should have said. At the mysql> prompt, type “select uName from users;”
-
[quote=“chad-bisd, post: 5330, member: 18”][CODE]mysql> mysql>[/CODE]
I posted the command with the prompt in it so you’d know you need to run the script at the mysql> prompt.
Remove “mysql>” from the query. Technically, I should have said. At the mysql> prompt, type “select uName from users;”[/quote]
Jesus. :oops:
[CODE]mysql> select uName from users;
±------+
| uName |
±------+
| root |
±------+
1 row in set (0.00 sec)[/CODE]