• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • C
    craigcoulson
    last edited by May 18, 2016, 6:21 AM

    Failed to upgrade to SVN trunk.

    Followed the wiki instructions and recieved no errors - https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

    Now the FOG reports still on version 1.2 and the dashboard reports in disk information :- no error but no data was returned.
    In Hardware information the kernel reports :- Error communicating with the database

    Before i revert my snapshot and try again - anything i can attempt to resolve or investigate further ?

    C 1 Reply Last reply May 18, 2016, 6:29 AM Reply Quote 0
    • C
      ch3i Moderator @craigcoulson
      last edited by May 18, 2016, 6:29 AM

      @craigcoulson Hi, have you check mysql log ?

      1 Reply Last reply Reply Quote 0
      • C
        craigcoulson
        last edited by May 18, 2016, 6:48 AM

        Just delving in there now 🙂

        1 Reply Last reply Reply Quote 0
        • C
          craigcoulson
          last edited by May 18, 2016, 7:05 AM

          nothing to speak of in the mysql log
          mysql still running

          hmmm


          C 1 Reply Last reply May 18, 2016, 7:33 AM Reply Quote 0
          • C
            ch3i Moderator @craigcoulson
            last edited by May 18, 2016, 7:33 AM

            @craigcoulson Apache error log ?

            1 Reply Last reply Reply Quote 1
            • T
              Tom Elliott
              last edited by May 18, 2016, 10:01 AM

              What were you installing? If it’s from 4 hours ago, then I’m assuming the latest at that time. What you see on the “login” screen is not the same as the version you’re attempting to install. That is found in the Cloud icon on the top left portion of the page.

              Please rerun the svn up/git pull portion of the folder and retry installing. My guess is it failed at updating database?

              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
              • S
                Sebastian Roth Moderator
                last edited by May 18, 2016, 12:55 PM

                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 May 18, 2016, 11:17 PM May 19, 2016, 12:57 AM

                  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 May 18, 2016, 11:25 PM May 19, 2016, 5:25 AM

                    @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 May 19, 2016, 8:18 AM

                      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 May 19, 2016, 11:34 AM

                        @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 May 20, 2016, 7:17 AM

                          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 !

                          T 1 Reply Last reply May 20, 2016, 9:48 AM Reply Quote 0
                          • T
                            Tom Elliott @craigcoulson
                            last edited by May 20, 2016, 9:48 AM

                            @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
                            • T
                              Tom Elliott
                              last edited by May 20, 2016, 9:49 AM

                              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 May 24, 2016, 1:05 AM

                                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 May 24, 2016, 7:15 PM Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman @craigcoulson
                                  last edited by May 24, 2016, 7:15 PM

                                  @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
                                  1 / 1
                                  • First post
                                    3/16
                                    Last post

                                  160

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project