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

    SVN 7009 FTP errors after image capture: Updating database failed, ftp_login(): Login incorrect

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    12
    5.3k
    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.
    • M
      mr626
      last edited by mr626

      Hi guys,

      Getting strange FTP errors when trying to capture image. Using Fog SVN 7009. The main part of the image capture goes fine (partclone etc) but when it gets to ‘updating database’ it says ‘failed’.

      Then you get the following message repeated a few times:

      Error returned: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line 105, Message" ftp_login(): Login incorrect. * Reattempting to update database....failed
      

      The line referenced is:

      if (@ftp_login(self::$link,$username,$password) === false) self::ftperror();
      

      This was working fine prior to me updating to SVN 7009. I can’t see any errors in the fog logs or apache logs related to this.

      See attached for screenshot

      0_1459396377259_fog_error.jpg

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

        @mr626 It’s all over the forums. Try searching…

        It means that your FTP credentials are incorrect. This usually happens if you change those but don’t reflect the change in /opt/fog/.fogsettings. When re-running the installer things mess up. Follow this article: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP and don’t forget to get your .fogsettings correct as well!

        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

        M 1 Reply Last reply Reply Quote 2
        • M
          mr626 @Sebastian Roth
          last edited by

          @Sebastian-Roth said in [SVN 7009 FTP errors after image capture: Updating database failed:

          @mr626 It’s all over the forums. Try searching…

          It means that your FTP credentials are incorrect. This usually happens if you change those but don’t reflect the change in /opt/fog/.fogsettings. When re-running the installer things mess up. Follow this article: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP and don’t forget to get your .fogsettings correct as well!

          Hi,

          “It’s all over the forums. Try searching…”

          I did search before posting, however for some reason the search results were ordered strangely- there is indeed another thread about this exact issue on the same SVN version as me that is a few days old, but it is among other threads that are months or years old (which is I guess why I missed it).

          Thanks for your suggestion, even though my FTP credentials haven’t changed I will re-enter them and try again.

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

            @mr626 Is this still an issue? I don’t consider this a bug considering all the changes from 1.2.0 to current trunk.

            While I realize potential of issues, I try as hard as I can to make sure things just work. That said, sometimes my changes seem to be bugs, (causing other unexpected issues), in preference of simplification.

            Those issues, while should be documented, are often overlooked or forgotten about.

            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

            M 1 Reply Last reply Reply Quote 0
            • M
              mr626
              last edited by

              And this is now solved. The fix was to reset the password for the fog unix user via

              sudo passwd fog
              

              I guess the installer for SVN 7009 messed it up?

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

                @mr626 Check your /opt/fog/.fogsettings file.

                Look for the password=‘’ line.

                Make it read as:

                password='passwordhere'

                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
                • M
                  mr626 @Tom Elliott
                  last edited by

                  @Tom-Elliott said in [SVN 7009 FTP errors after image capture: Updating database failed:

                  @mr626 Is this still an issue? I don’t consider this a bug considering all the changes from 1.2.0 to current trunk.

                  While I realize potential of issues, I try as hard as I can to make sure things just work. That said, sometimes my changes seem to be bugs, (causing other unexpected issues), in preference of simplification.

                  Those issues, while should be documented, are often overlooked or forgotten about.

                  Hi Tom,

                  Thanks for the reply. I’ve been using the development version of fog for a few months now, and have updating it from the trunk a few times in that period. This FTP issue only started for me after I updated to SVN 7009, hence me thinking it might have been a bug. Apologies if this is not the case.

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

                    @mr626 It might be a bug, that I’m completely unaware of.

                    If you know what version you went from when you upped to 7009, it may help me narrow the issue.

                    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

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

                      It might be (also) be in that period of no updates that I made the change that caused what you saw as a bug.

                      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
                      • M
                        mr626 @Tom Elliott
                        last edited by

                        @Tom-Elliott said in [SVN 7009 FTP errors after image capture: Updating database failed:

                        @mr626 It might be a bug, that I’m completely unaware of.

                        If you know what version you went from when you upped to 7009, it may help me narrow the issue.

                        Hi Tom,

                        Unfortunately I can’t tell you what version I was on, unless this is logged somewhere?

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

                          @mr626 Take a look at the installer/git/svn directory. There should be …/bin/error_log/*.log with revision number in the filename.

                          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

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mr626 @Sebastian Roth
                            last edited by

                            @Sebastian-Roth said in [SVN 7009 FTP errors after image capture: Updating database failed:

                            @mr626 Take a look at the installer/git/svn directory. There should be …/bin/error_log/*.log with revision number in the filename.

                            Good tip, but unfortunately I cleared out the svn folder prior to the last pull that I did (troubleshooting an unrelated issue).

                            Sorry.

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

                            196

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project