Problem: Duplicate entries for the same file

Hi Dev and Community,
I have been using Serviio for 2,5 years without any problem. But since version 1.5.2 it is sometimes fetching the same file twice. It means, that I have double entries on the media library for the same file. I can remove the duplicate as the following:
After I did this, the log file indicates, that the two entries were successfully removed from the library, and then media successfully added back to it successfully one time.
Here are my details:
Java version:
Serviio version (based on REST API):
Serviio configuration and log files: can be found here.
I also attached three screenshots (1. duplicates, 2. removed duplicates, 3. fetch as one entry perfectly) from the log if you are interested in.
I think the problem is (if you let me guessing), that sometimes the delta update machanism and the full library refresh mechanism can be run at the same time, that's why the duplicate entries created. I do now know the internal processes, so maybe I'm wrong.
If you need a more detailed log file or something else, just let me know (I am familiar with Java and log4j
).
Sincerely and thanks for the assist!
I have been using Serviio for 2,5 years without any problem. But since version 1.5.2 it is sometimes fetching the same file twice. It means, that I have double entries on the media library for the same file. I can remove the duplicate as the following:
- 1. Move the affected file outside the Serviio media scanner scope
2. Execute a full library scan (I have a little bash script for that using cURL and the REST API)
3. Move back the file to the Serviio media scanner scope
4. Execute again a full library scan
After I did this, the log file indicates, that the two entries were successfully removed from the library, and then media successfully added back to it successfully one time.
Here are my details:
- - Machine: ThinkPad T420
- Processor: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
- Memory: 4GB
- Operating system@kernel level: Fedora release 22@4.0.8-300.fc22.x86_64
Java version:
Serviio version (based on REST API):
- Code:
[thom@thom-tp420 media2]$ curl --include --header "Accept: application/xml" 'http://localhost:23423/rest/application'
HTTP/1.1 200 OK
Content-Type: application/xml; charset=UTF-8
Date: Sat, 12 Dec 2015 17:20:31 GMT
Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.2
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Connection: keep-alive
Transfer-Encoding: chunked
<?xml version="1.0" encoding="UTF-8" ?>
<application>
<version>1.5.2</version>
<edition>FREE</edition>
<databaseUpdateId>9acbb3aefdc941d9bb8e6d4d98b814b9</databaseUpdateId>
<cdsAnonymousEnabled>false</cdsAnonymousEnabled>
Serviio configuration and log files: can be found here.
I also attached three screenshots (1. duplicates, 2. removed duplicates, 3. fetch as one entry perfectly) from the log if you are interested in.
I think the problem is (if you let me guessing), that sometimes the delta update machanism and the full library refresh mechanism can be run at the same time, that's why the duplicate entries created. I do now know the internal processes, so maybe I'm wrong.
If you need a more detailed log file or something else, just let me know (I am familiar with Java and log4j

Sorry for the too much information but I am working as a software engineer, and I know that every little piece of information and/or file can help.
Sincerely and thanks for the assist!