SVN 7009 FTP errors after image capture: Updating database failed, ftp_login(): Login incorrect
-
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
-
@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!
-
@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.
-
@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.
-
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?
-
@mr626 Check your /opt/fog/.fogsettings file.
Look for the password=‘’ line.
Make it read as:
password='passwordhere'
-
@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.
-
@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.
-
It might be (also) be in that period of no updates that I made the change that caused what you saw as a bug.
-
@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?
-
@mr626 Take a look at the installer/git/svn directory. There should be …/bin/error_log/*.log with revision number in the filename.
-
@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.