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

    Problem updating fog: Backing up Database ... failed

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    28
    10.1k
    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.
    • K
      K.Hays @Sebastian Roth
      last edited by

      @Sebastian-Roth That got me further! But when i got to the Updating database schema there is no update option on the web page.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @K.Hays
        last edited by Wayne Workman

        @K.Hays I suspect db issues. Try to connect to the DB, use the credentials in your .fogsettings file.

        mysql -u fog -h fog -pfoggy -D fog
        Note that no space between -p and foggy is intentional.

        The snmysqlhost being set to fog is suspicious… normally this is left blank, is set to localhost or 127.0.0.1 for the main server.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        K 1 Reply Last reply Reply Quote 1
        • K
          K.Hays @Wayne Workman
          last edited by

          @Wayne-Workman it said unknown host

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @K.Hays
            last edited by

            @K.Hays Now try mysql -u fog -pfoggy -D fog

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            K 1 Reply Last reply Reply Quote 1
            • K
              K.Hays @Wayne Workman
              last edited by

              @Wayne-Workman Access denied for user ‘fog’@‘localhost’ (using password: YES)
              d430@

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @K.Hays
                last edited by

                @K.Hays Ok, now try mysql -u root -D fog

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                K 1 Reply Last reply Reply Quote 1
                • K
                  K.Hays @Wayne Workman
                  last edited by K.Hays

                  @Wayne-Workman that worked, as in it let me in mysql

                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @K.Hays
                    last edited by Wayne Workman

                    @K.Hays Ok. then inside of /opt/fog/.fogsettings set snmysqluser to root, and blank out snmysqlpass and snmysqlhost, re-run the installer, and you should be good to go.

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    K 1 Reply Last reply Reply Quote 1
                    • K
                      K.Hays @Wayne Workman
                      last edited by

                      @Wayne-Workman That worked! Any idea to what caused this whole thing? Im going to have to update my other servers, and obviously this one in the future and would like to avoid this whole ordeal again haha

                      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman @K.Hays
                        last edited by

                        @K.Hays said in Problem updating fog: Backing up Database ... failed:

                        Any idea to what caused this whole thing?

                        Somebody messed with the .fogsettings file and put in the wrong information. If things in there are wrong and you update - things in fog will be wrong.

                        For you and future readers, information on the .fogsettings file and passwords are in these two articles:
                        https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
                        https://wiki.fogproject.org/wiki/index.php?title=Password_Central

                        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!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        K 1 Reply Last reply Reply Quote 2
                        • K
                          K.Hays @Wayne Workman
                          last edited by

                          @Wayne-Workman Ok ill be sure to look for that in the future. Thanks to everyone who helped! Ill be sure too update frequently now haha

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

                          156

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.4k

                          Posts
                          Copyright © 2012-2024 FOG Project