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

    Backing up database failed!

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    29
    6.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.
    • drc0ncD
      drc0nc
      last edited by

      Hey all. I just tried to update to current svn 6493 and it fails backing up the database near the end.
      I did some digging and found the Apache error log to be loaded with this.

      [Mon Feb 29 09:32:12.102288 2016] [:error] [pid 5943] [client 172.24.15.10:52406] PHP Fatal error:  Default value for parameters with a class type hint can only be NULL in /var/www/html/fog/lib/fog/fogftp.class.php on line 29
      

      Here is the output of lines 28-32

       }
          public function chmod(int $mode = 0,string $filename) {
              if (!$mode) $mode = $this->get('mode');
              return @ftp_chmod(self::$link,$mode,$filename);
          }
      

      I’m not too sure as to what to do next.
      Thanks in advanced!

      1 Reply Last reply Reply Quote 0
      • E
        EAHarvey
        last edited by

        Just had the same thing here. So its not updated and basically stops the server. I think I can SVN to the earlier version so I can get it back up?

        1 Reply Last reply Reply Quote 0
        • E
          EAHarvey
          last edited by

          Looks like it’s trying to call something named “mode” that may have been referenced wrong earlier in the file or maybe a syntax error? I’m thinking this is a PHP5 thing. So it’s trying to call the DB backup and it errors out because of the spelling ?

          E drc0ncD 2 Replies Last reply Reply Quote 0
          • E
            EAHarvey @EAHarvey
            last edited by

            @EAHarvey Of course this is simply a shot in the dark. My PHP is non existent. Looks like a naming issue in the code. $

            $filename should be $null? Or some other name it’s trying to call?

            Ok I’m done. lol.

            1 Reply Last reply Reply Quote 0
            • drc0ncD
              drc0nc @EAHarvey
              last edited by

              @EAHarvey @Wayne-Workman @Tom-Elliott Yea, unfortunately my php knowledge is pretty much non-existent. I’m curious if all I need to do is remove and re-install php5 or apache.

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

                @drc0nc See if you can run the installer with the -X argument. This argument tells the installer to continue if there is a failure. It’s not really advisable in all situations, but for this particular problem I’d say it’s safe. For example:

                ./installfog.sh -X

                Additionally, you can find messages related to the failure in the bin directory, should be a directory in there called “error_something”. It’ll have plenty of files in there, look through the latest one.

                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/

                E drc0ncD 2 Replies Last reply Reply Quote 0
                • E
                  EAHarvey @Wayne Workman
                  last edited by

                  @Wayne-Workman Stops at the same location. Backing up Database. Does not continue. (sad face)

                  1 Reply Last reply Reply Quote 0
                  • drc0ncD
                    drc0nc @Wayne Workman
                    last edited by

                    @Wayne-Workman Dug in the error logs here is the last output

                    Feb 29 10:58:47 jefffog systemd[1]: Starting The PHP FastCGI Process Manager...
                    Feb 29 10:58:47 jefffog systemd[1]: Started The PHP FastCGI Process Manager.
                    --2016-02-29 10:58:50--  http://172.24.4.247/fog//management/export.php?type=sqldump
                    Connecting to 172.24.4.247:80... connected.
                    HTTP request sent, awaiting response... 500 Internal Server Error
                    2016-02-29 10:58:50 ERROR 500: Internal Server Error.
                    
                    Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman @drc0nc
                      last edited by

                      @drc0nc said:

                      http://172.24.4.247/fog//management/export.php?type=sqldump

                      See the double forward slashes there between fog and management?

                      Try to go to that link and see what happens. Then remove the extra slash 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/

                      drc0ncD 1 Reply Last reply Reply Quote 0
                      • drc0ncD
                        drc0nc @Wayne Workman
                        last edited by

                        @Wayne-Workman Yea noticed the double slashes. Still get an internal 500 error

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

                          @drc0nc So, when I go to that address (with double slashes and without), I get a sql file downloaded and it has stuff in the file, too. I assume this is how the config export works…

                          Can you try to do FOG Configuration -> Configuration Save -> Export and see if that works?

                          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/

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

                            @Wayne-Workman said:

                            http://172.24.4.247/fog//management/export.php?type=sqldump

                            Please just update, I switched the code around.

                            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
                            • drc0ncD
                              drc0nc @Wayne Workman
                              last edited by

                              @Wayne-Workman unfortunately I currently do not have a web UI due to failing install. @Tom-Elliott I just updated and ran the installer. Still failing at backing up the database.

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

                                @drc0nc Any errors?

                                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

                                mosesM E drc0ncD 4 Replies Last reply Reply Quote 0
                                • mosesM
                                  moses @Tom Elliott
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    EAHarvey @Tom Elliott
                                    last edited by

                                    @Tom-Elliott Sam error here Tom. Just updated and ran again. Still bombs on backing up database.

                                    1 Reply Last reply Reply Quote 0
                                    • drc0ncD
                                      drc0nc @Tom Elliott
                                      last edited by drc0nc

                                      @Tom-Elliott new errors now after updating

                                      [Mon Feb 29 11:18:17.128137 2016] [:error] [pid 10943] [client 172.24.15.10:60110] PHP Fatal error:  Default value for parameters with a class type hint can only be NULL in /var/www/html/fog/lib/fog/fogftp.class.php on line 141
                                      

                                      looks like it moved to line 141

                                      }
                                          public function pasv(bool $pasv = false) {
                                              if (!$pasv) $pasv = $this->get('passive');
                                              return @ftp_pasv(self::$link,$pasv);
                                          }
                                      

                                      lines 140-144

                                      1 Reply Last reply Reply Quote 1
                                      • E
                                        EAHarvey @Tom Elliott
                                        last edited by

                                        @Tom-Elliott

                                        A Permissions Error. In most cases, a 500 Internal Server Error is due to an incorrect permission on one or more files or folders. In most of those cases, an incorrect permission on a PHP and CGI script is to blame. These should usually be set at 0775 (-rwxr-xr-x).

                                        Maybe?

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

                                          Can you try again?

                                          I did miss the pasv function. It should all be fixed now, at least for that particular error series you were all seeing.

                                          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

                                          E drc0ncD 4 Replies Last reply Reply Quote 1
                                          • E
                                            EAHarvey @Tom Elliott
                                            last edited by

                                            @Tom-Elliott updating now./

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

                                            156

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project