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

    Problem trying to update from 1.2.0 to 1.3.0

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    13
    4.8k
    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.
    • Q
      Quazz Moderator @Tom Elliott
      last edited by

      @Tom-Elliott Got to love how Ubuntu constantly changes their repository layout.

      1 Reply Last reply Reply Quote 0
      • D
        dbakerwardog
        last edited by

        What is the easiest way to create a backup of everything FOG essential, hosts, images, groups, if I don’t have access to the web side of FOG since my apache isn’t working? I am in the process of downloading a 16.04 LTS ISO to begin upgrading and want to make sure I don’t lose anything.

        Tom ElliottT Wayne WorkmanW 2 Replies Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @dbakerwardog
          last edited by

          @dbakerwardog You can upgrade in place.

          I think ubuntu uses do-release-upgrade

          I would say try that route first.

          If IT is having issues, then do the full backup.

          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

          Q 1 Reply Last reply Reply Quote 0
          • Q
            Quazz Moderator @Tom Elliott
            last edited by

            @Tom-Elliott He seems to be on 12.04, I don’t know if they can still do-release-upgrade.

            1 Reply Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman @dbakerwardog
              last edited by Wayne Workman

              @dbakerwardog The easiest way to do this is actually to build the new one while the old one is still running. So, go build a new Ubuntu 16.04 server, follow these steps to get the latest fog: https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

              After you have that done, via terminal, become root with sudo -i and then just do a mysqldump to a file. Like this:
              mysqldump -D fog > fogdb.sql
              That’ll give you a file called fogdb.sql. You can transfer this file to the new server the same way you would transfer the images.
              https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

              An example for the db file using the old server to the new server would be:
              scp fogdb.sql root@x.x.x.x:/root/fogdb.sql where x.x.x.x is the new server’s IP you’re sending it to.

              Follow instructions in the link, it’s got examples on how to send all your image files at once.

              On the new server, to import the db file (after you get it there) it’s just this:
              mysql < fogdb.sql

              Then after importing the DB, you’ll need to change spots in the web interface that will have the old fog server’s IP (because you imported the old DB). This is easy, here are all the places:
              https://wiki.fogproject.org/wiki/index.php?title=Change_FOG_Server_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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              R 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman
                last edited by

                Just letting people know I edited the below post - and those instructions are only valid for 1.2.0 migration to 1.3.0. If you were migrating 1.3.0 to 1.3.0 there would be one extra step, moving over certificates. Those steps are detailed here, under “Maintain control of hosts when building new server” https://wiki.fogproject.org/wiki/index.php?title=FOG_Client

                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/

                1 Reply Last reply Reply Quote 0
                • D
                  dbakerwardog
                  last edited by

                  I did go ahead and do an upgrade in place from 12.04 to 14.04 then to 16.04
                  After that i reran the installation for FOG 1.3.0 and SUCCESS!!!
                  Thank you so much for the helpful advice from this board. Also wow FOG loads so much faster for me inside the web GUI, its like a whole new program.

                  1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman
                    last edited by

                    For future readers: https://wiki.fogproject.org/wiki/index.php?title=Migrate_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/

                    1 Reply Last reply Reply Quote 0
                    • R
                      RoweAdmin @Wayne Workman
                      last edited by

                      @Wayne-Workman

                      Some things I found trying to follow the wiki -> at least on a fresh Ubuntu 16.04.1 server.

                      Mounting should read: (got error “bash: x.x.x.x:/images/test.txt: No such file or directory”)

                      mkdir /new 
                      mount x.x.x.x:/images/dev /new
                      

                      Export DB should read: (kept getting error “mysqldump: unknown option ‘-D’”

                      #No password.
                      mysqldump -B fog > /new/fogdb.sql
                      
                      #Password with root user.
                      mysqldump -B fog -u root -p > /new/fogdb.sql
                      
                      #No password, localhost.
                      mysqldump -B fog -h localhost > /new/fogdb.sql
                      
                      #No password, local loopback.
                      mysqldump -B fog -h 127.0.0.1 > /new/fogdb.sql
                      
                      #Password with localhost.
                      mysqldump -B fog -h localhost -u root -p > /new/fogdb.sql
                      
                      #Password with local loopback.
                      mysqldump -B fog -h 127.0.0.1 -u root -p > /new/fogdb.sql
                      

                      Export Images should be: (got error: “no command ‘copy’ found”)

                      cp -r /images/* /new
                      

                      This might help if people are getting similar errors…

                      Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                      • Wayne WorkmanW
                        Wayne Workman @RoweAdmin
                        last edited by Wayne Workman

                        @RoweAdmin Thanks for the feedback, I’ll get those items changed. I have no idea why I wrote ‘copy’ or wrote the mounting command backwards. Guess I was pretty tired. Never-the-less, thank you for your feedback. It’s very appreciated.

                        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/

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

                        132

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project