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

    Upgrade from Trunk to 1.4.2 Failed

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    23
    6.0k
    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.
    • AvaryanA
      Avaryan @Avaryan
      last edited by Avaryan

      I commented out the lines mentioned in previous post. I’ll get the error log if it fails.

      Also:

      Starting Debian based Installation
      
      
       *** Detected a potential need to reinstall apache and php files.
       *** This will remove the /etc/php* and /etc/apache2* directories
       ***  and remove/purge the apache and php files from this system.
       *** If you're okay with this please type Y, anything else will
       ***  continue the installation, but may mean you will need to
       ***  remove the files later and make proper changes as
       ***  necessary. (Y/N):
      y
       * Removing apache and php files...............................Done
       * Stopping web services.......................................Failed
       * Removing the apache and php packages........................Done
       * Resetting our variables to specify php version 7.1..........Done
      

      edit: Still failed.

      1 Reply Last reply Reply Quote 0
      • AvaryanA
        Avaryan @Tom Elliott
        last edited by

        @Tom-Elliott said in Upgrade from Trunk to 1.4.2 Failed:

        @Avaryan What’s the last few lines of the bin/error_logs/fog_1.4.2_error.log?

        Enabling module ssl.
        See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
        To activate the new configuration, you need to run:
          service apache2 restart
        Enabling site 001-fog.
        To activate the new configuration, you need to run:
          service apache2 reload
         * Stopping Apache httpd web server apache2
         * 
         * Starting Apache httpd web server apache2
        AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/001-fog.conf:1
        AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
         * 
        stop: Unknown instance: 
        php7.1-fpm start/running, process 22328
         * apache2 is running
        php7.1-fpm start/running, process 22328
        --2017-06-05 10:53:01--  http://10.10.1.41//fog//maintenance/backup_db.php
        Connecting to 10.10.1.41:80... connected.
        HTTP request sent, awaiting response... 302 Found
        Location: ?node=schema [following]
        --2017-06-05 10:53:01--  http://10.10.1.41//fog//maintenance/backup_db.php?node=schema
        Connecting to 10.10.1.41:80... connected.
        HTTP request sent, awaiting response... 500 Internal Server Error
        2017-06-05 10:53:01 ERROR 500: Internal Server Error.
        
        1 Reply Last reply Reply Quote 0
        • AvaryanA
          Avaryan
          last edited by Avaryan

          So, on a whim, I decided to checkout revision 07fc221, the first FOG 1.3.0 that I saw. It installed. Thought behind this was that maybe there have been too many changes from the pre 1.3 trunk build to the current 1.4.2 build and that I could update incrementally.

          However, on loading the webpage I get this:

          Your database connection appears to be invalid. FOG is unable to communicate with the database. There are many reasons why this could be the case. Please check your credentials in /var/www/html/fog/lib/fog/config.class.php. Also confirm that the database is indeed running. If credentials are correct, and if the Database service is running, check to ensure your filesystem has enough space.
          
          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Can you provide output of lsb_release -a?

            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

            AvaryanA 1 Reply Last reply Reply Quote 0
            • AvaryanA
              Avaryan @Tom Elliott
              last edited by Avaryan

              @Tom-Elliott said in Upgrade from Trunk to 1.4.2 Failed:

              Can you provide output of lsb_release -a?

              No LSB modules are available.
              Distributor ID: Ubuntu
              Description:    Ubuntu 14.04.5 LTS
              Release:        14.04
              Codename:       trusty
              

              Note: The ‘Backing up datebase’ part while installing 1.3.0 seemed to have worked, while in 1.4.2 it did not.

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

                @Avaryan What’s output of php -v?

                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

                AvaryanA 1 Reply Last reply Reply Quote 0
                • AvaryanA
                  Avaryan @Tom Elliott
                  last edited by

                  @Tom-Elliott said in Upgrade from Trunk to 1.4.2 Failed:

                  @Avaryan What’s output of php -v?

                  PHP 7.1.5-1+deb.sury.org~trusty+2 (cli) (built: May 22 2017 13:39:01) ( NTS )
                  Copyright (c) 1997-2017 The PHP Group
                  Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
                      with Zend OPcache v7.1.5-1+deb.sury.org~trusty+2, Copyright (c) 1999-2017, by Zend Technologies
                  
                  
                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @Avaryan
                    last edited by

                    @Avaryan ANd what’s the output of mysql -v?

                    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

                    AvaryanA 1 Reply Last reply Reply Quote 0
                    • AvaryanA
                      Avaryan @Tom Elliott
                      last edited by Avaryan

                      @Tom-Elliott said in Upgrade from Trunk to 1.4.2 Failed:

                      @Avaryan ANd what’s the output of mysql -v?

                      Welcome to the MySQL monitor.  Commands end with ; or \g.
                      Your MySQL connection id is 575
                      Server version: 5.5.55-0ubuntu0.14.04.1 (Ubuntu)
                      
                      Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
                      
                      Oracle is a registered trademark of Oracle Corporation and/or its
                      affiliates. Other names may be trademarks of their respective
                      owners.
                      
                      Reading history-file /home/user/.mysql_history
                      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
                      

                      If I sudo that or log in with root I get access denied message.

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

                        @Avaryan Do you have a root password defined for Mysql access?

                        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

                        AvaryanA 1 Reply Last reply Reply Quote 0
                        • AvaryanA
                          Avaryan @Tom Elliott
                          last edited by

                          @Tom-Elliott Good question. No clue! I didn’t set the server up.

                          How would I go about checking? And how would I go about changing it and/or removing if that’s what I need to do.

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

                            @Avaryan this is where things get tricky I suppose as I have no idea of knowing.

                            Can you check in /opt/fog/.fogsettings and look for snmysqlpass?

                            The password should be there, though I suspect that’s where things might be also breaking.

                            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

                            AvaryanA 2 Replies Last reply Reply Quote 0
                            • AvaryanA
                              Avaryan @Tom Elliott
                              last edited by Avaryan

                              @Tom-Elliott I don’t see a .fogettings in /opt/fog

                              Only thing in there is log, service, snapins, utils directories.

                              Edit: Nevermind. It showed up when I manually typed it in.

                              george1421G 1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @Avaryan
                                last edited by

                                @Avaryan ls -la /opt/fog please try

                                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!

                                1 Reply Last reply Reply Quote 0
                                • AvaryanA
                                  Avaryan @Tom Elliott
                                  last edited by george1421

                                  @Tom-Elliott said in Upgrade from Trunk to 1.4.2 Failed:

                                  @Avaryan this is where things get tricky I suppose as I have no idea of knowing.

                                  Can you check in /opt/fog/.fogsettings and look for snmysqlpass?

                                  The password should be there, though I suspect that’s where things might be also breaking.

                                  snmysqlpass='XXXXXXXX'

                                  Moderator note: I removed the password to your mysql database. The important part is that YOU know what it is

                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @Avaryan
                                    last edited by

                                    @Avaryan Now that you know your password attempt to log into your database from the linux command line mysql -u root -p fog then provide your database password.

                                    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!

                                    AvaryanA 2 Replies Last reply Reply Quote 0
                                    • AvaryanA
                                      Avaryan @george1421
                                      last edited by

                                      @george1421 said in Upgrade from Trunk to 1.4.2 Failed:

                                      @Avaryan Now that you know your password attempt to log into your database from the linux command line mysql -u root -p fog then provide your database password.

                                      This was the output when I tried the password listed in .fogsettings

                                      ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
                                      

                                      However, I tried another password and got this:

                                      Reading table information for completion of table and column names
                                      You can turn off this feature to get a quicker startup with -A
                                      
                                      Welcome to the MySQL monitor.  Commands end with ; or \g.
                                      Your MySQL connection id is 28556
                                      Server version: 5.5.55-0ubuntu0.14.04.1 (Ubuntu)
                                      
                                      Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
                                      
                                      Oracle is a registered trademark of Oracle Corporation and/or its
                                      affiliates. Other names may be trademarks of their respective
                                      owners.
                                      
                                      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
                                      

                                      Assuming that is what I should see on a correct login, I at least know what the password is.

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

                                        That /opt/fog/.fogsettings file, pelase edit the snmysqlpass line to make it match what you “know” what it is. THen rerun the installer. Apparently it got changed at some point in time.

                                        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 1
                                        • AvaryanA
                                          Avaryan @george1421
                                          last edited by Avaryan

                                          @george1421 said in Upgrade from Trunk to 1.4.2 Failed:

                                          @Avaryan Now that you know your password attempt to log into your database from the linux command line mysql -u root -p fog then provide your database password.

                                          Our live FOG server is now on 1.4.2, revision 6072. Thanks! Now to figure out how that password got changed…

                                          edit: You can mark this as solved.

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

                                          204

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project