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

Upgrade Problems

Scheduled Pinned Locked Moved
FOG Problems
4
19
5.9k
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.
  • T
    TonyK
    last edited by Oct 28, 2014, 6:51 PM

    Upgrading from 0.32 to 1.2.0 on Ubuntu 10.04 LTS. This used to be a physical machine and about two years ago I converted it to a VM. I believe my first issue is due to the conversion. Anyways when upgrading it says… “You still need to install/update your database schema. This can be done by opening a web browser and going to: XXX.XXX.XXX.XXX” Anyways that IP address is still the old one. Issue #2. When I go to the current IP Address/fog/management it brings up the Database Schema Installer / Updater. When I go to upgrade it fails with a huge report. Any insight as to what is happening and how to fix is greatly appreciated! Thanks!

    1 Reply Last reply Reply Quote 0
    • A
      Albatros
      last edited by Oct 29, 2014, 6:08 AM

      Do you have set an mysql password during installation of fog? It could be that the mysql password in fog is not correct and then it fails in updating.

      1 Reply Last reply Reply Quote 0
      • T
        TonyK
        last edited by Oct 29, 2014, 12:10 PM

        I do have a password set for mysql. I have not seen any place for me to type the password during the upgrade though. Thanks!

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Oct 29, 2014, 12:34 PM

          Edit the /opt/fog/.fogsettings file

          Particularly the fields:

          snmysqluser
          snmysqlhost
          snmysqlpass

          snmysqluser should be:

          snmysqluser=“root”;
          snmysqlhost=“IP.OF.FOG.XX”;
          snmysqlpass=“passwordofsqlrootuser”;

          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
          • T
            TonyK
            last edited by Oct 29, 2014, 1:20 PM

            Thank you Tom for you reply. I was able to fix my first issue with the ip address being wrong within the .fogsettings file. As far as my second issue I am still having problems, even after entering the fields you stated. Other thoughts?

            Thanks!

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Oct 29, 2014, 1:52 PM

              When you edit .fogsettings, it doesn’t automatically transfer over, it just makes your upgrading much easier.

              If you can re-run the installer, all should work for you.

              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
              • T
                TonyK
                last edited by Oct 29, 2014, 1:58 PM

                I edited .fogsettings per your recommendation. I tried to re-run and it failed, I restarted it still failed, I cleared the cache in the browser just to be safe and it still failed. I am sorry for the bad news. Thanks!

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Oct 29, 2014, 2:03 PM

                  What do you mean restarted in the browser?

                  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
                  • T
                    TonyK
                    last edited by Oct 29, 2014, 2:08 PM

                    My apologies, I restarted my Fog server.

                    1 Reply Last reply Reply Quote 0
                    • D
                      d4rk3
                      last edited by Oct 29, 2014, 2:10 PM

                      I had this same issue when I upgraded to 1.2.0. I had to run [CODE]dpkg-reconfigure mysql-server-5.5[/CODE] to change my root password for MySQL. I then updated the password in .fogsettings and it worked.

                      1 Reply Last reply Reply Quote 0
                      • T
                        TonyK
                        last edited by Oct 29, 2014, 2:28 PM

                        Im on Sql 5.1 if that matters, but I did change the password for SQL and in the .fogsettings with no luck.

                        Thanks!

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom Elliott
                          last edited by Oct 29, 2014, 2:31 PM

                          did you reinstall 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! 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
                          • T
                            TonyK
                            last edited by Oct 29, 2014, 2:33 PM

                            I do not believe I have ever re-installed fog.

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Oct 29, 2014, 2:34 PM

                              That’s what you do when you make a change in fogsettings
                              fog settings just makes it an “upgrade”

                              You go back to your “install” folder
                              and run
                              ./installfog.sh

                              It takes care of the rest.

                              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
                              • T
                                TonyK
                                last edited by Oct 29, 2014, 2:42 PM

                                So what I do is go to the Fog_1.2.0/bin run ./installfog.sh The install starts, I accept the DHCP information with Y. I get a message saying “We are about to install MySQL Server on this server, if MySQL isn’t installed already you will be prompted for a root password.” “Press enter to acknowledge this message.” So I press enter. Then it tells me to open my browser to install/update your database schema. So I go into the browser to do that and that is when it tells me it failed.

                                [url=“/_imported_xf_attachments/1/1454_FogError.pdf?:”]FogError.pdf[/url]

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tom Elliott
                                  last edited by Oct 29, 2014, 2:44 PM

                                  Ensure mysql service is actually running:

                                  From another terminal run:
                                  [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
                                  • T
                                    TonyK
                                    last edited by Oct 29, 2014, 2:48 PM

                                    It is running, process 12432. Still no luck. Thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      d4rk3
                                      last edited by Nov 1, 2014, 11:06 AM

                                      I forgot to mention that you need to update your password in here too:

                                      /var/www/fog/lib/fog/Config.class.php

                                      Then: [CODE]service mysql restart[/CODE]

                                      Make sure FOG works normally. Then try to upgrade again.

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        TonyK
                                        last edited by Nov 4, 2014, 3:27 PM

                                        After re-storing my server back to a working state I tried changing all the files mentioned. I still get the same error. Does it make a difference if I am on SQL 5.1 vs 5.5?

                                        1 Reply Last reply Reply Quote 0
                                        • 1 / 1
                                        1 / 1
                                        • First post
                                          9/19
                                          Last post

                                        283

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project