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

Backing up database ... Failed - working-RC-11

Scheduled Pinned Locked Moved Solved
Bug Reports
2
13
2.5k
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.
  • W
    Wayne Workman
    last edited by Sep 14, 2016, 3:03 PM

    Server
    • Version: 1.3.0 working-RC-11
    • OS: Fedora 24 server

    PHP version:

    PHP 7.0.11 (cli) (built: Sep 14 2016 08:01:31) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    

    MySQL verison:

    mysql  Ver 15.1 Distrib 10.1.16-MariaDB, for Linux (x86_64) using  EditLine wrapper
    
    Description

    the installer fails at backing up the database. I’ve done some debugging, this is the command that is ran when it tries to back up:

    wget --no-check-certificate -O /home//fogDBbackups/fog_sql_25_"20160914_095730".sql "http://10.0.0.4//fog//maintenance/backup_db.php" --post-data="type=sql&fogajaxonly=1"

    I’ve ran this manually, and I get this error at CLI:

    [root@fog-server bin]# wget --no-check-certificate -O /home//fogDBbackups/fog_sql_25_"20160914_095730".sql "http://10.0.0.4//fog//maintenance/backup_db.php" --post-data="type=sql&fogajaxonly=1"
    --2016-09-14 09:57:45--  http://10.0.0.4//fog//maintenance/backup_db.php
    Connecting to 10.0.0.4:80... connected.
    HTTP request sent, awaiting response... 500 Internal Server Error
    2016-09-14 09:57:45 ERROR 500: Internal Server Error.
    
    [root@fog-server bin]#
    

    And this error appear in the apache error log:

    [Wed Sep 14 09:57:30.596441 2016] [:error] [pid 5925] [client 10.0.0.4:60374] PHP Fatal error:  Uncaught Error: Call to a member function debug() on null in /var/www/html/fog/lib/db/pdodb.class.php:208\nStack trace:\n#0 /var/www/html/fog/lib/db/pdodb.class.php(153): PDODB::currentDb(Object(PDODB))\n#1 /var/www/html/fog/lib/db/pdodb.class.php(161): PDODB->_connect(false)\n#2 /var/www/html/fog/lib/db/pdodb.class.php(87): PDODB->_connect()\n#3 /var/www/html/fog/lib/db/databasemanager.class.php(36): PDODB->__construct()\n#4 /var/www/html/fog/commons/init.php(283): DatabaseManager->establish()\n#5 /var/www/html/fog/commons/base.inc.php(19): require('/var/www/html/f...')\n#6 /var/www/html/fog/maintenance/backup_db.php(2): require('/var/www/html/f...')\n#7 {main}\n  thrown in /var/www/html/fog/lib/db/pdodb.class.php on line 208
    [Wed Sep 14 09:57:45.454079 2016] [:error] [pid 5926] [client 10.0.0.4:60376] PHP Fatal error:  Uncaught Error: Call to a member function debug() on null in /var/www/html/fog/lib/db/pdodb.class.php:208\nStack trace:\n#0 /var/www/html/fog/lib/db/pdodb.class.php(153): PDODB::currentDb(Object(PDODB))\n#1 /var/www/html/fog/lib/db/pdodb.class.php(161): PDODB->_connect(false)\n#2 /var/www/html/fog/lib/db/pdodb.class.php(87): PDODB->_connect()\n#3 /var/www/html/fog/lib/db/databasemanager.class.php(36): PDODB->__construct()\n#4 /var/www/html/fog/commons/init.php(283): DatabaseManager->establish()\n#5 /var/www/html/fog/commons/base.inc.php(19): require('/var/www/html/f...')\n#6 /var/www/html/fog/maintenance/backup_db.php(2): require('/var/www/html/f...')\n#7 {main}\n  thrown in /var/www/html/fog/lib/db/pdodb.class.php on line 208
    

    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/

    T 1 Reply Last reply Sep 14, 2016, 10:43 PM Reply Quote 0
    • W
      Wayne Workman
      last edited by Sep 14, 2016, 3:23 PM

      This is because the fog database is not being created. Still looking into it.

      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
      • W
        Wayne Workman
        last edited by Sep 14, 2016, 3:26 PM

        The installer succeeds when I run it as:
        snmysqlhost='127.0.0.1' ./installfog.sh -y

        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/

        T 1 Reply Last reply Sep 14, 2016, 4:23 PM Reply Quote 0
        • T
          Tom Elliott @Wayne Workman
          last edited by Sep 14, 2016, 4:23 PM

          @Wayne-Workman so solved by using 127.0.0.1?

          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

          W 1 Reply Last reply Sep 14, 2016, 4:24 PM Reply Quote 0
          • W
            Wayne Workman @Tom Elliott
            last edited by Sep 14, 2016, 4:24 PM

            @Tom-Elliott sort-of. Even with that it seems hit and miss, but that argument is the only one that has had success so far.

            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
            • T
              Tom Elliott @Wayne Workman
              last edited by Sep 14, 2016, 10:43 PM

              @Wayne-Workman Should be fixed now. I removed all the “debug” calls in the db class.

              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

              W 1 Reply Last reply Sep 14, 2016, 10:47 PM Reply Quote 0
              • W
                Wayne Workman @Tom Elliott
                last edited by Sep 14, 2016, 10:47 PM

                @Tom-Elliott I will test. I was actually getting ready to post here about issues… the db connection keeps dropping on the version I’m on. I’ll update and try again.

                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/

                T 1 Reply Last reply Sep 14, 2016, 10:53 PM Reply Quote 0
                • T
                  Tom Elliott @Wayne Workman
                  last edited by Sep 14, 2016, 10:53 PM

                  @Wayne-Workman What do you mean “dropping?”

                  I’m, currently, not using persistent connection.

                  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

                  W 2 Replies Last reply Sep 14, 2016, 10:56 PM Reply Quote 0
                  • W
                    Wayne Workman @Tom Elliott
                    last edited by Sep 14, 2016, 10:56 PM

                    @Tom-Elliott Earlier, the installer completed and the web interface was functional. Now it’s saying the db connection is invalid when I try to use the web interface.

                    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
                    • W
                      Wayne Workman @Tom Elliott
                      last edited by Sep 14, 2016, 11:30 PM

                      @Tom-Elliott I’m now on working-RC-11 version 28, I re-ran the installer on the main and node, and it’s working at the moment.

                      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
                      • W
                        Wayne Workman
                        last edited by Sep 21, 2016, 1:17 AM

                        Version 51 and it’s installing fine still.

                        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/

                        T 1 Reply Last reply Sep 21, 2016, 1:20 AM Reply Quote 0
                        • T
                          Tom Elliott @Wayne Workman
                          last edited by Sep 21, 2016, 1:20 AM

                          @Wayne-Workman mind upping to version 53?

                          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

                          W 1 Reply Last reply Sep 21, 2016, 3:12 AM Reply Quote 0
                          • W
                            Wayne Workman @Tom Elliott
                            last edited by Sep 21, 2016, 3:12 AM

                            @Tom-Elliott 53 and 54 were fine.

                            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
                              4/13
                              Last post

                            188

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project