Post Reply 
Recently added files
17-06-2024, 20:38
Post: #4
RE: Recently added files
Thanks for posting this file along with your very helpful detailed description of exactly what is wrong.

I am aware of a scenario in which MinimServer can incorrectly detect files as having been added since the last scan. This scenario is as follows:

1) A scan is performed which ends early (the whole library is not scanned). No error indication is received by MinimServer that this has happened. This appears to be an issue with either the NAS firmware or the Java runtime.

2) Because the scan ends early, the MinimServer cache file is incomplete. Also, the library contents are incomplete. This is a clue that all is not well but it could easily be missed.

3) The user does another scan. All library files scanned in this scan that were not scanned in the previous scan are incorrectly detected as newly added because they aren't found in the cache file written by the previous scan.

4) MinimServer adds these incorrectly detected files to the added-dates.txt file and deletes older files to stay within the maximum files limit (1000 in your case).

This issue has been reported by one user and I had hoped it was a one-off occurrence. I am tempted to put your problem down to this issue but there is a factor that makes me think this is not the same problem. This factor is the other Richard Thompson albums that were detected as newly added immediately following the genuinely added album. It seems unlikely that this is a coincidence.

I will look carefully at the scanning code to see if I can see any way this could have happened. Please confirm whether you had already installed update 252 at the time of the problematical scan (2024-06-15 at 17:05) as this update has a small change to the scanning logic intended to work around some effects of the scenario I have described.

If you don't have any backups of the added-dates.txt file, the best you can do to recover from this problem is to delete lines 100 to 839 and 853 to 1000 of the added-dates.txt file (i.e., all incorrect lines) and then restart MinimServer. After the restart, you will see some older files in the Recently Added list and the added-files.txt file. These older files are selected based on "last modified" timestamps which should be fairly close to the dates they were added by a MiniMServer rescan.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Recently added files - paulM - 16-06-2024, 09:13
RE: Recently added files - simoncn - 16-06-2024, 15:03
RE: Recently added files - paulM - 17-06-2024, 18:52
RE: Recently added files - simoncn - 17-06-2024 20:38
RE: Recently added files - paulM - 17-06-2024, 22:21
RE: Recently added files - simoncn - 17-06-2024, 22:37
RE: Recently added files - paulM - 20-06-2024, 09:36
RE: Recently added files - simoncn - 20-06-2024, 12:22
RE: Recently added files - paulM - 20-06-2024, 13:03
RE: Recently added files - paulM - 20-06-2024, 13:20
RE: Recently added files - simoncn - 20-06-2024, 13:43

Forum Jump:


User(s) browsing this thread: 1 Guest(s)