Synch Dirs/Compare by Content: Bug in "compare by conte
Moderators: Hacker, petermad, Stefan2, white
Synch Dirs/Compare by Content: Bug in "compare by conte
Hello,
when i synchronize directories (menu: Commands/Synchronize Dirs) with checked option "by content", then the most files are marked as "Unequal files".
Now, when i compare these files with the windows commandline program "comp" they are absolutly identical. Also when i compare these files, in file by file manner, with the menu function "Files/Compare by Content", these files are absolutly identical too.
The files comes from trueimage, with a size larger than 10 GB. it does not happens with smaller files. Its proofed with files up to 800 MB. but in some circumstances it happens too. There is one file, that ist equal if i compare it with comp.exe, but sometimes when i compare it with single file compare by content or with the synchronize dirs function, it is fitful unequal.
I think there is a bug in the compare function. It's not a reliable situation, when i copy files with total commander and its looks like an unequality of files after the copy action.
greetings
handil
PS: Sorry for my englisch, but if you find a mistake, take and keep it...
when i synchronize directories (menu: Commands/Synchronize Dirs) with checked option "by content", then the most files are marked as "Unequal files".
Now, when i compare these files with the windows commandline program "comp" they are absolutly identical. Also when i compare these files, in file by file manner, with the menu function "Files/Compare by Content", these files are absolutly identical too.
The files comes from trueimage, with a size larger than 10 GB. it does not happens with smaller files. Its proofed with files up to 800 MB. but in some circumstances it happens too. There is one file, that ist equal if i compare it with comp.exe, but sometimes when i compare it with single file compare by content or with the synchronize dirs function, it is fitful unequal.
I think there is a bug in the compare function. It's not a reliable situation, when i copy files with total commander and its looks like an unequality of files after the copy action.
greetings
handil
PS: Sorry for my englisch, but if you find a mistake, take and keep it...
Hello MVV,
yes, the dates of the files are absolute identical.
Before i use the synch function, i have copied the files from one harddisk to the other harddisk. First time with the windows copy function and next time with the total commander copy function. After every copy action i have made a synch/compare run with the "Command/Synchonize Dirs" command (Option "by Content" checked). The effect is, unequal files. Without the option "by Content" the files are equal, with the option "by Content" this issue happens.
Additional information: the virus protection is, while the compare command runs, disabled!
The compare run begins, after some minutes or bytes, there is a break (within a file compare action), and all files down are marked as unequal.
handil
yes, the dates of the files are absolute identical.
Before i use the synch function, i have copied the files from one harddisk to the other harddisk. First time with the windows copy function and next time with the total commander copy function. After every copy action i have made a synch/compare run with the "Command/Synchonize Dirs" command (Option "by Content" checked). The effect is, unequal files. Without the option "by Content" the files are equal, with the option "by Content" this issue happens.
Additional information: the virus protection is, while the compare command runs, disabled!
The compare run begins, after some minutes or bytes, there is a break (within a file compare action), and all files down are marked as unequal.
handil
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Yes, i'm extremly sure, there are the same files, with the same names, the same dates, the same times, the same sizes, and exactly the same content.
But for now, i have tested the same action at annother computer with windows 7 professional (x64), and there, the camparison is absolutly ok! Within tc and comp.exe!
Now i'm test it on a Windows XP Professional Tablet PC Edition with Service Pack 3, and then i will see if its ok or not.
At this time, i think there is no bug in tc, but maybe i have a problem with my server (windows home server; based on SBS 2003). Or, if the next test fail, an problem with OS's based on Windows XP and/or Server 2003.
We will see.... (it later)
But for now, i have tested the same action at annother computer with windows 7 professional (x64), and there, the camparison is absolutly ok! Within tc and comp.exe!
Now i'm test it on a Windows XP Professional Tablet PC Edition with Service Pack 3, and then i will see if its ok or not.
At this time, i think there is no bug in tc, but maybe i have a problem with my server (windows home server; based on SBS 2003). Or, if the next test fail, an problem with OS's based on Windows XP and/or Server 2003.

We will see.... (it later)

handil,
You could also try and create MD5 checksums for both files to check if TC sees them as equal but specifically the compare function does not.
Roman
You could also try and create MD5 checksums for both files to check if TC sees them as equal but specifically the compare function does not.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Sorry for the lag, but it needs a lot of time to check all options.
Now, i have sureness. only the one computer with windows home server on it, make problems with tc and compare actions via synchonize dirs and other functions. Why, i don't know.
Now i have made MD5 checksum files for a selection of 15 zip-files with each of a size of round 25 GB. After the sixth file i've got the error "can't read file xyz", and the action stops. I marked the remaining files and start the action again, but the failed file was not read, and the other remaining files was also failed, without any action. After the error occurs, no zip file can be opened and no action can performed.
When i check the zip-files with the 7zip test function, they are all ok!
The next step was to restart tc, but the error happens again.
Next, i restart the computer, and try it again to create the MD5 checksum files for the remaining zip-files. It starts, and the checksum file generation runs without any failure. After creating the checksum files, i copied the MD5-files to same zip-files on the second harddisk and start the action "verify checksums". After there, all files where ok while checking the checksum.
Then i go back to the first files (see the first posting), generate MD5 checksum files for it, i copied these MD5-files to same files on the second harddisk, test the checksum , and most files where ok. I restart tc and test the failed files again, and they are ok too.
I don't know what happens, but on this computer it is not reliable to use tc for more than copy files. No comparison, no checksum generation and check.
I give up. Thank you for your help.
handil

Now, i have sureness. only the one computer with windows home server on it, make problems with tc and compare actions via synchonize dirs and other functions. Why, i don't know.
Now i have made MD5 checksum files for a selection of 15 zip-files with each of a size of round 25 GB. After the sixth file i've got the error "can't read file xyz", and the action stops. I marked the remaining files and start the action again, but the failed file was not read, and the other remaining files was also failed, without any action. After the error occurs, no zip file can be opened and no action can performed.
When i check the zip-files with the 7zip test function, they are all ok!
The next step was to restart tc, but the error happens again.
Next, i restart the computer, and try it again to create the MD5 checksum files for the remaining zip-files. It starts, and the checksum file generation runs without any failure. After creating the checksum files, i copied the MD5-files to same zip-files on the second harddisk and start the action "verify checksums". After there, all files where ok while checking the checksum.
Then i go back to the first files (see the first posting), generate MD5 checksum files for it, i copied these MD5-files to same files on the second harddisk, test the checksum , and most files where ok. I restart tc and test the failed files again, and they are ok too.
I don't know what happens, but on this computer it is not reliable to use tc for more than copy files. No comparison, no checksum generation and check.
I give up. Thank you for your help.
handil


In Meantime, i have made an cross test with another tool (like tc) to compare files. The tool, NexusFile (http://xiles.net/downloads/#NexusFile), i have used, can compare all files (true Image image files and the 15 zip-files) on bit-level without any problem, and all files are absolutly identical.
Now i think, there is a problem with tc on windows home server 2003 with an amount of 4 GB on memory, and perhaps in my configuration. Where and why, i can't say it.
Now i think, there is a problem with tc on windows home server 2003 with an amount of 4 GB on memory, and perhaps in my configuration. Where and why, i can't say it.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It looks like you are running out of file handles. A file handle is needed to open a file. TC closes all files directly after comparing, but I have seen such a problem with some slow network connections where the file remained open for several seconds on the server after TC closed it. Maybe you can increase the number of open files on your server?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I know what a file handle is
, but where can i increase the max number of open file handles. If i remember right, there is an automatism from microsoft (KB818894), included since SP2, that make it for me. So i have no chance to change it.
Why does it not happens with NexusFile, or comp.exe
Ok, i don't know how the programs (NexusFile or comp.exe) compare files, but it must be similar.
For information, tc runs directly on the server with local drives, there is no network access while comparing files

Why does it not happens with NexusFile, or comp.exe

Ok, i don't know how the programs (NexusFile or comp.exe) compare files, but it must be similar.
For information, tc runs directly on the server with local drives, there is no network access while comparing files
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
There should be no problem with file handles then, I have seen this only with remote network shares.For information, tc runs directly on the server with local drives, there is no network access while comparing files
Can you use a tool like "process monitor" from www.sysinternals.com to find out whether there are any read errors in the files which show up as different?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com