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

    upgrading to SVN failed :(

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    16
    2.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.
    • S
      Sebastian Roth Moderator
      last edited by

      Tom Elliott said:

      My guess is it failed at updating database?

      Either that or the www directory is a bit screwed. Please run ls -al /var/www /var/www/fog /var/www/html and find /etc/ -name "001-fog" -exec grep DocumentRoot {} /dev/null \; and take a picture to show us exactly what you see. Copy&paste would also be ok!

      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
      • C
        craigcoulson
        last edited by Sebastian Roth

        root@FOGServer:~/fogproject/bin# ls -al /var/www /var/www/fog /var/www/html
        /var/www:
        total 16
        drwxr-xr-x  4 root     root     4096 Apr 14 12:47 .
        drwxr-xr-x 14 root     root     4096 Apr 14 14:30 ..
        drwxr-xr-x 12 www-data www-data 4096 Apr 14 12:47 fog
        drwxr-xr-x  3 root     root     4096 May 18 11:36 html
        
        /var/www/fog:
        total 56
        drwxr-xr-x 12 www-data www-data 4096 Apr 14 12:47 .
        drwxr-xr-x  4 root     root     4096 Apr 14 12:47 ..
        drwxr-xr-x  2 www-data root     4096 Apr 14 12:47 av
        drwxr-xr-x  2 www-data www-data 4096 Apr 14 12:47 client
        drwxr-xr-x  3 www-data www-data 4096 Apr 14 12:47 commons
        -rw-r--r--  1 www-data www-data 1406 Apr 14 12:47 favicon.ico
        -rw-r--r--  1 www-data www-data   50 Apr 14 12:47 index.php
        drwxr-xr-x  7 www-data www-data 4096 Apr 14 12:47 lib
        drwxr-xr-x 12 www-data www-data 4096 Apr 14 12:47 management
        drwxr-xr-x  4 www-data www-data 4096 Apr 14 12:47 mobile
        drwxr-xr-x  3 www-data www-data 4096 Apr 14 12:47 public
        drwxr-xr-x  3 www-data www-data 4096 Apr 14 12:47 service
        drwxr-xr-x  2 www-data www-data 4096 Apr 14 12:47 status
        drwxr-xr-x  2 www-data www-data 4096 Apr 14 12:47 wol
        
        /var/www/html:
        total 28
        drwxr-xr-x  3 root     root      4096 May 18 11:36 .
        drwxr-xr-x  4 root     root      4096 Apr 14 12:47 ..
        drwxr-xr-x 10 www-data www-data  4096 May 18 11:36 fog
        -rw-r--r--  1 root     root     11321 Apr 14 11:59 index.html
        -rw-r--r--  1 root     root       151 Apr 14 13:02 index.php
        

        no response to the second command at all ?

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

          @craigcoulson Sorry, my fault. I just typed that second command from the top of my head without actually testing it on my machine… try this: find /etc/ -name "001-fog*" -exec grep DocumentRoot {} /dev/null \; (was only missing one important character).

          From what the directory listings look like you have two FOG web interfaces installed now. The one on /var/www/fog looks like version 1.2.0 while /var/www/html/fog probably is the FOG trunk one. Better move both out of the way and re-run the installer. Just to make sure you have a clean one and no confusion later on:

          sudo mkdir /var/www/backup_old
          sudo mv /var/www/fog /var/www/backup_old
          sudo mv /var/www/html /var/www/backup_old
          cd /path/to/fogproject
          git pull
          cd bin
          sudo ./installfog.sh
          ...
          

          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
          • C
            craigcoulson
            last edited by

            Ahh, i now recall moving the original installation out of the HTML folder to shorten the overall url - my bad 😕

            If i revert my snapshot - move things back - then apply SVN it should all go normally then right ?

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

              @craigcoulson said:

              If i revert my snapshot - move things back - then apply SVN it should all go normally then right ?

              I’d say so!

              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
              • C
                craigcoulson
                last edited by

                it all went well - till i went to check/update the schema and was greeted with this :- 0_1463728628049_fog2.JPG

                the version looks good at least !

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @craigcoulson
                  last edited by

                  @craigcoulson I added that screen yesterday to try to help people more on the fly. If it can’t connect to the database, the main gui (and everything else) will fail as well. That message is an attempt to help lead you to the solution (though I have no idea what is the problem currently.)

                  My only guess, if I had to have one. What’s the settings in the /var/www/html/fog/lib/fog/config.class.php file for the Database values? If you have a password, please block it, but post the contents of these values so we can see more what’s going on.

                  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
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    By the way, that screen is dynamic too (the error you’re seeing there.)

                    If it is indeed a problem with the config.class.php and you fix it. It should present you the form buttons automatically.

                    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
                    • C
                      craigcoulson
                      last edited by

                      well after a couple of rollbacks and failed SVN installs (still not sure why) i finally got the server running on the latest trunk
                      I actually used GIT this time and it went well.
                      the steps i took (in case they may be useful)

                      • backup mysql
                      • export hosts
                      • removed 1.2 version of fog using the uninstall instructions
                      • renamed \images to \images_old
                      • install GIT
                      • followed instructions to install from trunk
                      • import sql
                      • import hosts
                      • move my image from \images_old to \images
                      • profit !
                      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman @craigcoulson
                        last edited by

                        @craigcoulson For you and future readers, it’s not necessary to uninstall old versions of FOG, nor is it necessary to move the images. Of course, I will always advise to take backups of the DB and hosts and images - not just when updating but on a regular basis.

                        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

                        147

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project