• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    My FOG 1.1.0 broken - Please help

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    36
    8.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tom ElliottT
      Tom Elliott
      last edited by

      Did you set a password on the root account?

      It sounds like your FOG user’s password was changed and this is why you’re getting the Login Invalid message.

      You can reset the password, somewhere on the forums I’m sure there’s a tagging to on how to reset the fog user password through mysql prompts. I’m pretty sure the password is just md5 hashed in the table.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • A
        Achieve94
        last edited by

        Hi Tom,

        Thanks for your response.

        No I hadn’t set a password on my root account; certainly not since the upgrade was done on Wednesday.

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          Okay

          So the code to get into the database would be:
          [code]mysql -u root fog[/code]

          Then to reset the password should be:
          [code]UPDATE fog.users SET uPass = MD5(‘PASSWORDFORFOGWEBGUIUSER’) WHERE users.uName=‘fog’;[/code]

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Of course change the name to the user you’re unable to login as, and change the password to what you want it to be.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • A
              Achieve94
              last edited by

              OK, will try that now and let you know straightaway.

              Thanks.

              1 Reply Last reply Reply Quote 0
              • A
                Achieve94
                last edited by

                Hi Tom,

                I’ve tried that now and I’m afraid it hasn’t fixed the issue.

                Just in case, I’ve typed the command in within Terminal and changed the ‘PASSWORDFORFOGWEBGUIUSER’ to my desired password. Correct?

                The user I wanted to login with was ‘fog’.

                Thanks.

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  when signing in are you type literally ‘fog’ or fog?

                  I know it seems silly to ask, but one never really knows.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • A
                    Achieve94
                    last edited by

                    Lol…I was typing in fog (without the single quotation marks).

                    Just to clarify the second line of the command looked like this:

                    UPDATE fog.users SET uPass = MD5(‘mypassword’) WHERE users.uName=‘fog’;

                    Thanks.

                    1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      So is it working for you now?

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 0
                      • A
                        Achieve94
                        last edited by

                        No, I’m afraid.

                        I tried doing a re-install - with a view of correcting the problem but when I try to upgrade via the web UI; I get the following error on the web browser.

                        The error was very long, abt 87 pages on a Word doc. I’ve only shown some here.

                        Any ideas please?

                        Thanks.
                        [SIZE=6][B]Database Schema Installer / Updater[/B][/SIZE]

                        Update/Install Failed!
                        [SIZE=5][B]The following errors occured[/B][/SIZE]

                        [B]Update ID:[/B] 1 - 0
                        [B]Database Error:[/B]

                        [B]Database SQL:[/B]
                        CREATE DATABASE fog

                        [B]Update ID:[/B] 1 - 1
                        [B]Database Error:[/B]

                        [B]Database SQL:[/B]
                        CREATE TABLE fog.groupMembers (
                        gmID int(11) NOT NULL auto_increment,
                        gmHostID int(11) NOT NULL,
                        gmGroupID int(11) NOT NULL,
                        PRIMARY KEY (gmID),
                        KEY new_index (gmHostID),
                        KEY new_index1 (gmGroupID)
                        ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC

                        [B]Update ID:[/B] 1 - 2
                        [B]Database Error:[/B]

                        [B]Database SQL:[/B]
                        CREATE TABLE fog.groups (
                        groupID int(11) NOT NULL auto_increment,
                        groupName varchar(50) NOT NULL,
                        groupDesc longtext NOT NULL,
                        groupDateTime datetime NOT NULL,
                        groupCreateBy varchar(50) NOT NULL,
                        groupBuilding int(11) NOT NULL,
                        PRIMARY KEY (groupID),
                        KEY new_index (groupName)
                        ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          Sounds like the database is not running to me?

                          Try:
                          [code]service mysql restart[/code]
                          or
                          [code]sudo service mysql restart[/code]

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          1 Reply Last reply Reply Quote 0
                          • A
                            Achieve94
                            last edited by

                            I’ve restarted the database; still not working.

                            Just in case, I’ve now set a password to MySQL during re-install - which I previously left blank. Is there any way I can make FOG use this new password?

                            Thanks.

                            1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott
                              last edited by

                              Edit the /var/www/fog/commons/config.php and set the PASSWORD in db_settings.

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • A
                                Achieve94
                                last edited by

                                Just checked, the password has already being set there by the installer but can’t perform the schema upgrade via the web UI still.

                                Thanks.

                                1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott
                                  last edited by

                                  so in your /var/www/fog/commons/config.php file, the password is already set? Is the host set correctly as well?

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    Achieve94
                                    last edited by

                                    Yes the password was set by the installer after I ran the re-install. The host is set as ‘localhost’.

                                    Thanks.

                                    1 Reply Last reply Reply Quote 0
                                    • Tom ElliottT
                                      Tom Elliott
                                      last edited by

                                      I’m going to guess, then that everything is correct and you could actually login to the mysql instance. What happens if you change localhost to the actual FOG Server’s IP address?

                                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        Achieve94
                                        last edited by

                                        I’ve changed the ‘localhost’ to the server’s IP address and restarted MySQL but still didn’t resolve the issue.

                                        Is there a way I can test MySQL login via Terminal to see if it prompts me for the credentials?

                                        Thanks.

                                        1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by

                                          [code]mysql -u root fog[/code]

                                          Does it let you into the database?

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Achieve94
                                            last edited by

                                            Typed that in and it took me straight to MySQL> prompt. There was no prompt for credentials.

                                            Thanks.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            130

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project