Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
Normally, the application gets this error when it tries to access a file that is being used or locked by some another process.
Ensure that the file you are trying to access is not being used by any other process.
Following points could help you in troubleshooting: