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

    Update FOG to 1.4.4 from 1.3.x and FOG can't load

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    24
    5.4k
    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.
    • george1421G
      george1421 Moderator @Elias Santiago
      last edited by

      @elias-santiago just to confirm one more time. You know the password to log into mysql using mysql -u root -p fog right? If you can have your confirmed in your /opt/fog/.fogsettings file that snmysqluser='root' and snmysqlpass= the password you used to login to mysql and snmysqlhost='127.0.0.1'

      There is something wrong here. The error says the .fogsettings file is wrong.

      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!

      E 2 Replies Last reply Reply Quote 0
      • E
        Elias Santiago @george1421
        last edited by

        @george1421 said in Update FOG to 1.4.4 from 1.3.x and FOG can't load:

        @elias-santiago just to confirm one more time. You know the password to log into mysql using mysql -u root -p fog right? If you can have your confirmed in your /opt/fog/.fogsettings file that snmysqluser='root' and snmysqlpass= the password you used to login to mysql and snmysqlhost='127.0.0.1'

        There is something wrong here. The error says the .fogsettings file is wrong.

        snmysqlhost = ‘localhost’

        NOT ‘127.0.0.1’

        E 1 Reply Last reply Reply Quote 0
        • E
          Elias Santiago @Elias Santiago
          last edited by

          @george1421 something weird is going on. After I did the Ubuntu stuff you mentioned (removing the unattended-updates) I can’t login to mysql using the same line and password as before!

          How do I fix that?

          1 Reply Last reply Reply Quote 0
          • E
            Elias Santiago @george1421
            last edited by

            @george1421 I tried mysql -u root -p fog now and can’t login! This was after removing the “unattended-updates” from Ubuntu.

            1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator
              last edited by

              @elias-santiago As part of that post did you also execute the ALTER user command? If so the password for the root user is now <blank>.

              If you can no longer log into the mysql server using a known password (or blank) then you will need to follow the process to reset the root account for mysql: https://support.rackspace.com/how-to/mysql-resetting-a-lost-mysql-root-password/

              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!

              E 1 Reply Last reply Reply Quote 0
              • E
                Elias Santiago @george1421
                last edited by

                @george1421 I did run the ALTER user part.

                I’m trying the mysql reset password, it should be the mysql password in the .fogsettings file or it should be ‘fog’ (since the line shows “mysqld -u root -p fog” ??

                1 Reply Last reply Reply Quote 0
                • E
                  Elias Santiago
                  last edited by

                  When I setup this server, I setup the user ‘cit’ as the root user. Could that be it?

                  What FOG requires the root user password to be? I don’t mean the mysql password but the actual root USER password?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @Elias-Santiago AFAIK this issue has nothing to do with system user accounts. Don’t confuse those with mysql accounts.

                    … or it should be ‘fog’ (since the line shows “mysqld -u root -p fog” ??

                    No, see the mysql command line syntax: mysql -u <MYSQL_USERNAME> -p <DATABASE_NAME> (the -p simply tells mysql to ask you for a password on the console to use to connect to the database - would be trying without password otherwise!)

                    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
                    • E
                      Elias Santiago
                      last edited by

                      george1421 managed to fix my setup. For some reason there were concurrent mysql daemons running. After closing all mysqld’s, we tried again and everything went perfectly with the installer. Thank you so much george1421 for your help!

                      1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator
                        last edited by

                        I worked with the OP over DM for quite a while and then setup a TV session. The root cause here is that ubuntu is the enemy of fog (bug). Then during the execution of the ALTER USER step in the link I provided below the password for the mysql root user became confused. We ran through the mysql root user password reset process to reset the password which worked. But the upgrade still failed to backup the current database. Long story short, there was a second background mysql process running causing the process the fog installer was managing to fail causing the backup of the database to fail. Once we found this back ground mysql process running we killed it and then restarted mysql. This time the install succeeded as designed.

                        Case closed.

                        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!

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

                        249

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project