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

Fog upgrade 1.1.1 --> 1.1.2 database error

Scheduled Pinned Locked Moved
FOG Problems
15
24
15.2k
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.
  • J
    John Hough
    last edited by Jun 26, 2014, 6:21 PM

    Did some more troubleshooting based on those Apache errors, I did a diff between the DatabaseManager.class.php between the versions and noticed the changes in where it is checking for the DATABASE_TYPE. I went into the Config.class.php that is used with 1.1.2 and found a static password entry for the root user when connecting to the MySQL database. I removed the static password leaving just the “” on the line, I then loaded up the page and the database update processed without problems.

    1 Reply Last reply Reply Quote 0
    • R
      RipAU
      last edited by Jun 27, 2014, 1:36 AM

      Ahhh yep, fixing up the root password and localhost fixed the issue.
      I was confused as it seemed to work perfect the way it was on previous installations.

      Thank you very much. I’ll start the upgrade on my storage nodes now as well.

      1 Reply Last reply Reply Quote 0
      • H
        hariskar
        last edited by Jun 27, 2014, 8:31 AM

        I had the same issue because during installation in the last message I pressed Enter without reading it. But the message was first to update database and then press enter. So I uninstalled fog and reinstalled correctly.

        1 Reply Last reply Reply Quote 0
        • D
          darkxeno
          last edited by Jun 27, 2014, 4:06 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • D
            darkxeno
            last edited by Jun 27, 2014, 4:07 PM

            Im have the same issue but updating my setting didnt help me at all

            1 Reply Last reply Reply Quote 0
            • D
              darkxeno
              last edited by Jun 27, 2014, 4:10 PM

              just fixed it I went in to the /var/www/fog/lib/fog/Config.class.php and removed the password from there and it fixed it

              1 Reply Last reply Reply Quote 0
              • R
                Rui Araújo
                last edited by Jun 30, 2014, 9:57 AM

                [quote=“darkxeno, post: 31683, member: 4011”]just fixed it I went in to the /var/www/fog/lib/fog/Config.class.php and removed the password from there and it fixed it[/quote]
                Thank you so much! It solved my problem too! 😄

                1 Reply Last reply Reply Quote 0
                • D
                  darkxeno
                  last edited by Jun 30, 2014, 12:42 PM

                  [quote=“Rui Araújo, post: 31804, member: 24515”]Thank you so much! It solved my problem too! :D[/quote]
                  no problem anything to help

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bob Martens
                    last edited by Jul 3, 2014, 2:49 PM

                    Thank you for the thread! This just saved me hours of work!

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bob Martens
                      last edited by Jul 3, 2014, 3:28 PM

                      It looks like now that it is updated, it is still going to the scheme updater package. How can I get back to my login screen?

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bob Martens
                        last edited by Jul 3, 2014, 3:58 PM

                        This one is done. Now I’m working on the non-booting machines issues.

                        1 Reply Last reply Reply Quote 0
                        • Q
                          Quintin Giesbrecht
                          last edited by Jul 4, 2014, 3:17 PM

                          [quote=“darkxeno, post: 31683, member: 4011”]just fixed it I went in to the /var/www/fog/lib/fog/Config.class.php and removed the password from there and it fixed it[/quote]

                          Thanks! that did it for me as well.

                          Quintin Giesbrecht
                          IT Manager
                          Smith Neufeld Jodoin LLP

                          1 Reply Last reply Reply Quote 0
                          • W
                            Will-TGS
                            last edited by Jul 6, 2014, 10:23 PM

                            I had the same problem as RipAU; 100+ database errors when attempting v1.1.1 > v1.1.2 upgrade.

                            As John Hough found, my [I].fogsettings[/I] file (located at /opt/fog/) was as follows:
                            [CODE]ipaddress=“10.0.115.43”;
                            interface=“eth0”;
                            routeraddress=" option routers 10.0.115.254;“;
                            plainrouter=“10.0.115.254”;
                            dnsaddress=” option domain-name-servers 10.0.115.4; “;
                            dnsbootimage=“10.0.115.4”;
                            password=“98180b”;
                            osid=“2”;
                            osname=“Debian”;
                            dodhcp=“n”;
                            bldhcp=“0”;
                            installtype=“N”;
                            snmysqluser=”"
                            snmysqlpass=“98180b”;
                            snmysqlhost=“”;
                            installlang=“0”;
                            donate=“0”;
                            fogupdateloaded=“1”[/CODE]
                            The problems were obvious, particularly [I]routeraddress, dnsaddress, snmysqluser, snmysqlpass[/I] (I never set one?) and some semicolons in the wrong place, so I amended the file to look like:
                            [CODE]ipaddress=“10.0.115.43”;
                            interface=“eth0”;
                            routeraddress=“10.0.115.254”;
                            plainrouter=“10.0.115.254”;
                            dnsaddress=“10.0.115.4”;
                            dnsbootimage=“10.0.115.4”;
                            password=“”;
                            osid=“2”;
                            osname=“Debian”;
                            dodhcp=“n”;
                            bldhcp=“0”;
                            installtype=“N”;
                            snmysqluser=“root”
                            snmysqlpass=“”;
                            snmysqlhost=“localhost”;
                            installlang=“0”;
                            donate=“0”;
                            fogupdateloaded=“1”[/CODE]

                            I ran [I]./install.sh[/I] again and the upgrade went OK.

                            As Tom Elliot said, he fixed a many installer errors, but not all. Kudos to Tom for keeping FOG development going 🙂

                            Will
                            Computer Systems Administrator | Townsville, Australia

                            1 Reply Last reply Reply Quote 0
                            • M
                              Matthew Gicking
                              last edited by Jul 7, 2014, 4:32 PM

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • R
                                Robbie McHugh
                                last edited by Jul 8, 2014, 10:03 AM

                                Simple logical fix, as always thanks for the continued progress guys 🙂

                                1 Reply Last reply Reply Quote 0
                                • E
                                  Excel Group
                                  last edited by Aug 12, 2014, 3:23 PM

                                  Can confirm I edited the .fogsettings and Config.class.php files and the database then upgraded perfect fine, just editing the .fogsettings still wasn’t working hence changing the Config too.

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

                                  202

                                  Online

                                  12.1k

                                  Users

                                  17.3k

                                  Topics

                                  155.3k

                                  Posts
                                  Copyright © 2012-2024 FOG Project