-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The process cannot access the file because it is being used by another process. #33
Comments
感谢提交此问题。 目标文件存在这个事实应该就是问题所在。此时repox所做的操作是将刚从上游下载到临时文件移动为目标文件,只有当目标文件之前不存在时才会触发下载操作。可能是哪里的时序出现了问题。看 stacktrace 你应该是在 windows 上运行的 repox. Windows 环境下确实缺乏测试。有待重现。 一个题外话是koala仓库似乎对外部用户不是特别友好,在社区公服上已经把koala仓库禁掉了。目前公服上优先级为 1 的三个主要 maven 仓库是: oschina: http://maven.oschina.net/content/groups/public |
使用Windows下面的Oracle JDK8,遇到同样的问题: 主要表现:持续下载文件,但是每次从临时文件中拷贝jar文件时总是出现错误 Using client of fast-upstream for koala 11-29 10:39:18.832 �[34mINFO �[0;39m com.gtan.repox.GetMaster akka://repox/user/ 11-29 10:39:18.834 �[1;31mERROR�[0;39m akka.actor.OneForOneStrategy akka://repox java.nio.file.FileSystemException: C:\Users\user9.repox\storage\temp\6302\repox
ava:86) |
总是出现这个错误,并无限循环
The process cannot access the file because it is being used by another process.
用proexp查看并未发现那个进程在占用,查看目标目录中,能找到play-jdbc-api_2.11-2.5.0-sources.jar.sha1这个文件,里面也有内容。也可正常删除。
SBT改用oschina源后没有问题。
Using client of fast-upstream for koala
03-15 08:45:55.383 �[1;31mERROR�[0;39m akka.actor.OneForOneStrategy akka://repox/user/RequestQueueMaster/GetQueueWorker_187535/GetMaster_187536
�[34mC:\Users\me.repox\storage\temp\repox9210516608242367649.tmp -> C:\Users\me.repox\storage\com\typesafe\play\play-jdbc-api_2.11\2.5.0\play-jdbc-api_2.11-2.5.0-sources.jar.sha1: The process cannot access the file because it is being used by another process.
�[0;39m
java.nio.file.FileSystemException: C:\Users\me.repox\storage\temp\repox9210516608242367649.tmp -> C:\Users\me.repox\storage\com\typesafe\play\play-jdbc-api_2.11\2.5.0\play-jdbc-api_2.11-2.5.0-sources.jar.sha1: The process cannot access the file because it is being used by another process.
Using client of fast-upstream for oschina
03-15 08:45:55.390 �[39mDEBUG�[0;39m com.gtan.repox.GetMaster akka://repox/user/RequestQueueMaster/GetQueueWorker_187535/GetMaster_187536
The text was updated successfully, but these errors were encountered: