我正在安装了java-8-oracle的Ubuntu 14.04.3 LTS上从source安装Spinnaker。
在启动redis,C *并配置$ HOME / .spinnaker / spinnaker-local.yml之后,我运行了
$ SPINNAKER_HOME / build / spinnaker / dev / run_dev.sh
如建议的here。
如下所示,所有的大三角帆组件构建均失败,并显示消息“无法从共享对象映射段:不允许操作”。
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'rush-core'.
> Failed to notify project evaluation listener.
> /tmp/jna-dharmi/jna4851962221283619240.tmp: /tmp/jna-dharmi/jna4851962221283619240.tmp: failed to map segment from shared object: Operation not permitted
> Could not initialize class nebula.plugin.info.ci.POSIXUtil
> Could not initialize class nebula.plugin.info.ci.POSIXUtil
带有stacktrace和debug标志,我在clouddriver上看到以下与JNA相关的stacktrace。
[org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
[org.gradle.BuildExceptionReporter]
[org.gradle.BuildExceptionReporter] * What went wrong:
[org.gradle.BuildExceptionReporter] A problem occurred configuring root project 'clouddriver'.
[org.gradle.BuildExceptionReporter] > Failed to notify project evaluation listener.
[org.gradle.BuildExceptionReporter] > /tmp/jna-dharmi/jna4716337565952230017.tmp: /tmp/jna-dharmi/jna4716337565952230017.tmp: failed to map segment from shared object: Operation not permitted
[org.gradle.BuildExceptionReporter]
[org.gradle.BuildExceptionReporter] * Exception is:
[org.gradle.BuildExceptionReporter] org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'clouddriver'.
[org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:79)
[org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:74)
[org.gradle.BuildExceptionReporter] at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
[org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:496)
.....
[org.gradle.BuildExceptionReporter] Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener.
[org.gradle.BuildExceptionReporter] at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:55)
[org.gradle.BuildExceptionReporter] at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
.....
[org.gradle.BuildExceptionReporter] Caused by: java.lang.UnsatisfiedLinkError: /tmp/jna-dharmi/jna4716337565952230017.tmp: /tmp/jna-dharmi/jna4716337565952230017.tmp: failed to map segment from shared object: Operation not permitted
[org.gradle.BuildExceptionReporter] at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:752)
[org.gradle.BuildExceptionReporter] at com.sun.jna.Native.loadNativeLibrary(Native.java:737)
org.gradle.BuildExceptionReporter] at com.sun.jna.Native.<clinit>(Native.java:129)
[org.gradle.BuildExceptionReporter] at nebula.plugin.info.ci.POSIXUtil.<clinit>(POSIXUtil.groovy:8)
赞赏任何指针。
最佳答案
更改JNA的tmp位置可以解决此问题。
-Djna.tmpdir="/some/other/location"
参考link。