Web GUI login changed after imaging



  • Hey how have you guys been? :)

    http://IPADDRESS/fog I get his with (insert text document here::… [/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?


  • Senior Developer

    Yes.

    Move /images to /home/images and create a symlink to /images from there:

    mkdir -pv /home/fog/images
    mv /images/ /home/fog/images
    ln -s /home/fog/images /images
    service mysqld restart
    


  • http://192.168.1.202/fog/management/index.php
    http://192.168.1.202/fog/management/index.php
    http://192.168.1.202/fog/management/index.php
    http://192.168.1.202/fog/management/index.php

    http://192.168.1.202/fog/management/index.phphttp://192.168.1.202/fog/management/index.php
    [[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:

    [root@fog0 mapper]# service mysqld start
    Timeout error occurred trying to start MySQL Daemon.
    Starting mysqld:                                          [FAILED]
    
    

    [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]

    [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
    
    

    [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?


  • Senior Developer

    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:

    df -h
    

    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.


Log in to reply
 

414
Online

38746
Users

10569
Topics

100055
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.