tabouassaleh / iqbox-ftp

Automatically exported from code.google.com/p/iqbox-ftp
0 stars 0 forks source link

Disconnection at exact time of datestamp causes rescan #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Disconnected from FTP server when checking mod date results in NoneType 
given, I think!

2014-06-18 02:25:19 Getting last recorded mod date from DB for this file..
2014-06-18 02:25:19 Last recorded server mod date is: 2014-06-18 04:41:24
2014-06-18 02:25:19 Now we get the current last mod time from the server. We 
expect this to work fine since this file was found on the server
2014-06-18 02:25:19 FTP>> Sending 'MDTM /and.. a folder rename!/hello mr 
moo!.zip'
2014-06-18 02:25:19 -> lastModified function: Either file doesn't exist or 
other error occured, such as file access permissions.
2014-06-18 02:25:19 Traceback (most recent call last):
2014-06-18 02:25:19   File "filetransfer_abc.pyc", line 1324, in lastModified
2014-06-18 02:25:19   File "filetransfer_abc.pyc", line 1013, in sendFTPcommand
2014-06-18 02:25:19   File "ftplib_iqb.pyc", line 264, in sendcmd
2014-06-18 02:25:19   File "ftplib_iqb.pyc", line 239, in getresp
2014-06-18 02:25:19 error_perm: 550 Can't check for file existence
2014-06-18 02:25:19 A-->Saving updated details about /and.. a folder 
rename!/hello mr moo!.zip to DB
2014-06-18 02:25:19 Done
2014-06-18 02:25:19 SCAN_SERVER>> The file was found in the DB for local files
2014-06-18 02:25:19 Warning: Type error when comparing dates. They likely 
aren't dates.
2014-06-18 02:25:19 Traceback (most recent call last):
2014-06-18 02:25:19   File "dbcore.pyc", line 310, in timeDiff
2014-06-18 02:25:19 TypeError: unsupported operand type(s) for -: 
'datetime.datetime' and 'NoneType'
2014-06-18 02:25:19 SERIOUS ERROR: Please report to author.
2014-06-18 02:25:19 Traceback (most recent call last):
2014-06-18 02:25:19   File "iqbox_core.pyc", line 201, in runIQBoxCore
2014-06-18 02:25:19   File "manual_scan.pyc", line 626, in scan_server
2014-06-18 02:25:19 TypeError: can't compare datetime.datetime to NoneType
2014-06-18 02:25:19 Attempting to recover the sync operation, but first
2014-06-18 02:25:19 waiting 5 seconds.
2014-06-18 02:25:19 THREAD_COMM>> Updating GUI status to: Error: IQ Uploader 
will try to re-sync, but may not be able to.
2014-06-18 02:25:19 THREAD_COMM>> Done updating GUI status
2014-06-18 02:25:19 Waiting 5 seconds..

Original issue reported on code.google.com by simonis2...@gmail.com on 18 Jun 2014 at 2:27