Closed. This question needs debugging details。它当前不接受答案。












想改善这个问题吗?更新问题,以便将其作为on-topic用于堆栈溢出。

5年前关闭。



Improve this question




我在使用OpenShift并使用Gradle。我遇到了以下异常的问题。我尝试了Gradle 1.6和Gradle 1.11,但是没有运气。 Web上涵盖了一些最小的部分答案,但是它们都不起作用,例如我尝试添加-Dorg.gradle.bindaddress=$OPENSHIFT_INTERNAL_IP,但没有效果。目前,这对我来说是个大难题。任何指针/帮助将不胜感激。谢谢。
23:52:49.573 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.net.BindException: Permission denied
23:52:49.574 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.cache.internal.FileLockCommunicator.<init>(FileLockCommunicator.java:38)
23:52:49.574 [ERROR] [org.gradle.BuildExceptionReporter]    ... 44 more`

最佳答案

我认为您基本上已经遇到了这个bug-http://issues.gradle.org/browse/GRADLE-2871
我认为目前没有解决方案。设置org.gradle.bindaddress听起来不错,并且确实存在将这样的属性添加到Gradle(https://github.com/gradle/gradle/pull/242)的拉取请求,但是此代码未合并。

10-07 13:00
查看更多