fabric8io / kubeflix

Kubernetes integration with Netflix OSS
266 stars 69 forks source link

Permission denied deploying Hystrix Dashboard 1.0.26 image on OpenShift #150

Closed jamesnetherton closed 7 years ago

jamesnetherton commented 8 years ago

Not sure what version of the Jetty 9 base image fabric8/hystrix-dashboard:1.0.26 is using, but I hit permissions issues on OpenShift. Seems ok if I build & deploy using fabric8/jetty-9:1.1.10 as the base image.

Pod logs:

Checking *.war in /maven
Linking /maven/ROOT.war --> /opt/jetty/webapps/ROOT.war
ln: failed to create symbolic link '/opt/jetty/webapps/ROOT.war': Permission denied
Running Jetty: 
I> No access restrictor found, access to all MBean is allowed
Jolokia: Agent started with URL http://172.17.0.3:8778/jolokia/
2016-10-31 19:14:07.856:INFO:ifasjoejs.Server:jetty-8.y.z-SNAPSHOT
2016-10-31 19:14:07.893:INFO:ifasjoejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:9779
2016-10-31 19:14:08.162:INFO::main: Logging initialized @503ms
2016-10-31 19:14:08.218:WARN:oejs.HomeBaseWarning:main: This instance of Jetty is not running from a separate {jetty.base} directory, this is not recommended.  See documentation at http://www.eclipse.org/jetty/documentation/current/startup.html
2016-10-31 19:14:08.371:WARN:oejuc.FileNoticeLifeCycleListener:main: 
java.io.FileNotFoundException: /opt/jetty/jetty.state (Permission denied)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
    at java.io.FileWriter.<init>(FileWriter.java:78)
    at org.eclipse.jetty.util.component.FileNoticeLifeCycleListener.writeState(FileNoticeLifeCycleListener.java:45)
    at org.eclipse.jetty.util.component.FileNoticeLifeCycleListener.lifeCycleStarting(FileNoticeLifeCycleListener.java:57)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.setStarting(AbstractLifeCycle.java:188)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:67)
    at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1510)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1435)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.eclipse.jetty.start.Main.invokeMain(Main.java:214)
    at org.eclipse.jetty.start.Main.start(Main.java:457)
    at org.eclipse.jetty.start.Main.main(Main.java:75)