Dear All,

After days of figuring out what is disrupting my import of solr statistics, 
I have finally caught the 'culprit'. Disabling my antivirus temporarily did 
the trick. Apparently, during the solr import, the antivirus could be 
accessing one of the index files and this would cause the error of "cannot 
access the file because it is being used by another process". This has 
nothing to do with any DSpace settings and/or configurations but may help 
anyone in the future who may encounter the same error.

Regards,
euler

On Sunday, March 8, 2020 at 11:38:27 AM UTC+8, euler wrote:
>
> Dear All,
>
> I would like to ask for any help on how to import the statistics 
> successfully. Its been 3 days now since I've started the 
> solr-import-statistics command but so far I have not completed it 
> successfully because of the error "The process cannot access the file 
> because it is being used by another process". I tried to edit the 
> solrconfig.xml and change some values like the <maxDocs> and <maxTime> 
> under the <autoCommit> configuration. We have solr exported logs since 2011 
> and so far the import process stops randomly because of the pesky "The 
> process cannot access the file because it is being used by another process" 
> error.
>
> This is on a production server and I would like to appeal for any help 
> because I have to restrict the access to localhost only to avoid other 
> processes accessing the index file in solr. Any help would be greatly 
> appreciated.
>
> Thanks in advance!
>
> On Friday, March 6, 2020 at 6:08:34 PM UTC+8, euler wrote:
>>
>> Dear All,
>>
>> Our repository is running Tomcat behind Apache via mod_jk. I already 
>> stopped the Apache service so that only Tomcat is running and is only 
>> accessible via localhost:8080. I also disabled all DSpace related scheduled 
>> tasks temporarily. When I run dspace solr-import-statistics -a import -d 
>> [dspace]/solr-export -i statistics -c, I always encountered the error 
>> "The process cannot access the file because it is being used by another 
>> process" where it disrupts the import. I also renamed the 
>> [dspace]/solr/statistics/data directory to make sure that it will create a 
>> new data directory but I encountered the error again. This is really 
>> annoying and disruptive because I have been running the 
>> solr-import-statistics now for almost 2 days and I have to rerun it again 
>> whenever that error occurred. Please advise on how can I run the 
>> solr-import-statistics successfully where it will not be stopped because an 
>> index file is being used by another process?
>>
>> We have DSpace 5.5 running in a Windows 2003 server.
>>
>> Thanks in advance and best regards,
>> euler
>>
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/cb2108a8-9528-46b4-8dd2-c3f28600706b%40googlegroups.com.

Reply via email to