Web GUI login changed after imaging
-
Hey how have you guys been?
[B]INFO[/B]
Old Dell computer with p4 proc / 2GB RAM / 300GB HDD / CentOS minimal 6.6 32bit FOG: v1.2.0So just as it said up there^ I pulled (upload) a image from a computer on my network and then after it was down the login for the web GUI would not let me login o_O so I got into SSH and reset the password for the CentOS user āFOGā back to āpasswordā an well yeah you guessed it, that was a no go as well
So I got out of GC (Google Chrome) and try-out IE (Internet Explorer) & FF (FireFox) [B][COLOR=#ff0000]N[/COLOR][COLOR=#00ff00]O[/COLOR][COLOR=#993366]P[/COLOR][COLOR=#ff00ff]E [/COLOR][/B][COLOR=#000000]still dead in the water.[/COLOR]
[COLOR=#000000] I rebooted the server seeing to as it has been up for some time an after reboot the Apache server didnāt want to start at boot or that is what it seemed like so back to SSH and run the command āservice httpd startā and it spit this out at me ā¦ [/COLOR]
[QUOTE]
[root@fog0 ~]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for fog0
httpd: Could not reliably determine the serverās fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
[/QUOTE]so ok ok thatās cool :rolleyes: BUT after going back over to GC and hitting up [url]http://IPADDRESS/fog[/url] I get his with ([B]Database Schema Installer / Updater[/B]) that fails at āINSERT INTOā
[CODE]INSERT INTOfog
.globalSettings(settingKey, settingDesc, settingValue, settingCategory)
values(āFOG_ADVANCED_MENU_LOGINā,āThis setting enforces a login parameter to get into the advanced menu.ā,ā0ā,āFOG Boot Settingsā)
FOG Project: Chuck Syperski, Jian Zhang, Peter Gilchrist & Tom Elliott FOG Client/Prep link: FOG Client/FOG Prep[/CODE] [B][I]ā¦::[URL=āhttp://fmslick.com/files/Database_Schema_Installer_Updater.txtā]insert text document here[/URL]::ā¦ [/I][/B]so now I am at a lost for wordās and before going on what do you guys think the issue could be or what happen??Iāll post log files if you need them just tell what logs and location
however I have a feeling my config file is missing the MySQL password I donāt know why I just doā¦
Where is the new location of the config file that holds that info?
-
Iād look into the logs:
/var/log/httpd/error_log (for centos/redhat as this is your OS)
But it sounds to me more like a space issue, not a problem with the database.
From ssh can you run:
[code]df -h[/code]
I think itās space due to how CentOS sets up the environment. The / partition is usually setup with a maximum of 50GB, so if the sda1 disk is less than that itāll likely be less than that as well. It setās up, in a default install, an LVM, one for / and one for /home. /home usually getās the rest of the space the disk has available. When fog installs, it creates the directory /images which falls under the / volume.
-
[B]/var/log/httpd/error_log (for centos/redhat as this is your OS)[/B]
[QUOTE]
[Sat Mar 14 15:24:57 2015] [
error] [client 192.168.1.10] Directory index forbidden by Options directive: /var/www/html/[Sat Mar 14 15:24:57 2015] [error] [client 192.168.1.10] File does not exist: /var/www/html/favicon.ico
[Sat Mar 14 17:13:58 2015] [error] [client 192.168.1.226] PHP Warning: Unknown: open(/var/lib/php/session/sess_6cusenfpb1njs94ltebbv5c3c3, O_RDWR) failed: No space left on device (28) in Unknown on line 0
[Sat Mar 14 17:13:58 2015] [error] [client 192.168.1.226] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Sat Mar 14 17:14:14 2015] [error] [client 192.168.1.226] PHP Warning: Unknown: open(/var/lib/php/session/sess_j0njdq3916hi8hl1onl3khetk2, O_RDWR) failed: No space left on device (28) in Unknown on line 0
[Sat Mar 14 17:14:14 2015] [error] [client 192.168.1.226] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Sat Mar 14 17:14:30 2015] [error] [client 192.168.1.226] PHP Warning: Unknown: open(/var/lib/php/session/sess_ahbnsdfcu9co8me4pl0l63ib57, O_RDWR) failed: No space left on device (28) in Unknown on line 0
[Sat Mar 14 17:14:30 2015] [error] [client 192.168.1.226] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
[Sat Mar 14 17:33:31 2015] [error] [client 192.168.1.10] Directory index forbidden by Options directive: /var/www/html/
[Sat Mar 14 17:33:32 2015] [error] [client 192.168.1.10] File does not exist: /var/www/html/favicon.ico
[Sat Mar 14 17:33:39 2015] [error] [client 192.168.1.10] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0, referer: [url]http://192.168.1.202/fog/management/index.php[/url]
[Sat Mar 14 17:33:39 2015] [error] [client 192.168.1.10] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: [url]http://192.168.1.202/fog/management/index.php[/url]
[Sat Mar 14 17:33:45 2015] [error] [client 192.168.1.10] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0, referer: [url]http://192.168.1.202/fog/management/index.php[/url]
[Sat Mar 14 17:33:45 2015] [error] [client 192.168.1.10] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: [url]http://192.168.1.202/fog/management/index.php[/url][U][Sat Mar 14 17:33:47 2015] [error] [client 192.168.1.10] PHP Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0, referer: [url]http://192.168.1.202/fog/management/index.php[/url][/U]
[Sat Mar 14 17:33:47 2015] [error] [client 192.168.1.10] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: [url]http://192.168.1.202/fog/management/index.php[/url]
[[Sat Mar 14 18:09:42 2015] [notice] caught SIGTERM, shutting down
[Sat Mar 14 18:12:13 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Mar 14 18:12:13 2015] [notice] Digest: generating secret for digest authentication ā¦
[Sat Mar 14 18:12:13 2015] [notice] Digest: done
[Sat Mar 14 18:12:14 2015] [error] [client 192.168.1.10] Directory index forbidden by Options directive: /var/www/html/
[Sat Mar 14 18:12:14 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured ā resuming normal operations[U][Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::mysqli(): (HY000/2002): Canāt connect to local MySQL server through socket ā/var/lib/mysql/mysql.sockā (2) in /var/www/html/fog/lib/db/MySQL.class.php on line 64[/U]
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::select_db(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 165
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::query(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 89
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: MySQL::sqlerror(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 180
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/fog/lib/db/MySQL.class.php on line 150
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::mysqli(): (HY000/2002): Canāt connect to local MySQL server through socket ā/var/lib/mysql/mysql.sockā (2) in /var/www/html/fog/lib/db/MySQL.class.php on line 64
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::select_db(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 165
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::query(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 89
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: MySQL::sqlerror(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 180
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/fog/lib/db/MySQL.class.php on line 150
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::escape_string(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 247
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::escape_string(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 247
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::query(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 89
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: MySQL::sqlerror(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 180
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::escape_string(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 247
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::escape_string(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 247
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::query(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 89
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: MySQL::sqlerror(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 180
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::escape_string(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 247
[Sat Mar 14 18:12:57 2015] [error] [client 192.168.1.10] PHP Warning: mysqli::escape_string(): Couldnāt fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php[/QUOTE]
Some MySQL errors so I try to restart / start the MySQL server and see if it will run or not an well lets just say its a fail :oops:
[CODE][root@fog0 mapper]# service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting mysqld: [FAILED]
[/CODE][QUOTE][B]TOM: [/B]But it sounds to me more like a space issue, not a problem with the database.[/QUOTE]
Yeah I am thinking you are right on the money there sir!
[QUOTE][B]TOM: [/B]From ssh can you run: " df -h "[/QUOTE]
[CODE][root@fog0 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_fog0-lv_root
50G 50G 0 100% /
tmpfs 947M 0 947M 0% /dev/shm
/dev/sda1 477M 44M 408M 10% /boot
/dev/mapper/vg_fog0-lv_home
240G 60M 228G 1% /home
[/CODE][QUOTE][B]TOM: [/B]I think itās space due to how CentOS sets up the environment. The / partition is usually setup with a maximum of 50GB, so if the sda1 disk is less than that itāll likely be less than that as well. It setās up, in a default install, an LVM, one for / and one for /home. /home usually getās the rest of the space the disk has available. When fog installs, it creates the directory /images which falls under the / volume[B].[/B][/QUOTE]
I see what you mean and I guess iāll have to move that if iām going to image big drives, would you say ā/home/fog/imagesā would be a good place?
so there would seem there is more going on then just the space issue! , What is the next move Tom?
-
Yes.
Move /images to /home/images and create a symlink to /images from there:
[code]mkdir -pv /home/fog/images
mv /images/ /home/fog/images
ln -s /home/fog/images /images
service mysqld restart[/code]