Problem in importing solr statistics

37 views
Skip to first unread message

euler

unread,
Mar 6, 2020, 5:08:34 AM3/6/20
to DSpace Technical Support
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

euler

unread,
Mar 7, 2020, 10:38:27 PM3/7/20
to DSpace Technical Support
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!

euler

unread,
Mar 8, 2020, 11:05:21 PM3/8/20
to DSpace Technical Support
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
Reply all
Reply to author
Forward
0 new messages