Issue with WildFly server of F8 iPaas Keycloak started within a pod

193 views
Skip to first unread message

Charles Moulliard

unread,
Oct 7, 2016, 6:08:49 AM10/7/16
to fabric8
Hi,

When I deploy Fabric8 iPaas Keycloak (same issue too with Hawkukar), the WildFly Server which is started generates this error.

oc logs keycloak-1-nuwue
/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json (Permission denied)
=========================================================================


 
JBoss Bootstrap Environment


  JBOSS_HOME
: /opt/jboss/keycloak


  JAVA
: /usr/lib/jvm/java/bin/java


  JAVA_OPTS
:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true


=========================================================================


java
.lang.IllegalArgumentException: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE"
 at org
.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:116)
 at org
.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:335)
 at org
.jboss.logmanager.config.LogContextConfigurationImpl.prepare(LogContextConfigurationImpl.java:288)
 at org
.jboss.logmanager.config.LogContextConfigurationImpl.commit(LogContextConfigurationImpl.java:297)
 at org
.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:546)
 at org
.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:97)
 at org
.jboss.logmanager.LogManager.readConfiguration(LogManager.java:514)
 at org
.jboss.logmanager.LogManager.readConfiguration(LogManager.java:476)
 at java
.util.logging.LogManager$3.run(LogManager.java:399)
 at java
.util.logging.LogManager$3.run(LogManager.java:396)
 at java
.security.AccessController.doPrivileged(Native Method)
 at java
.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:396)
 at java
.util.logging.LogManager.access$800(LogManager.java:145)
 at java
.util.logging.LogManager$2.run(LogManager.java:345)
 at java
.security.AccessController.doPrivileged(Native Method)
 at java
.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:338)
 at java
.util.logging.LogManager.getLogManager(LogManager.java:378)
 at org
.jboss.modules.Main.main(Main.java:482)
Caused by: java.lang.reflect.InvocationTargetException
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java
.lang.reflect.Constructor.newInstance(Constructor.java:423)
 at org
.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:114)
 
... 17 more
Caused by: java.io.FileNotFoundException: /opt/jboss/keycloak/standalone/log/server.log (No such file or directory)
 at java
.io.FileOutputStream.open0(Native Method)
 at java
.io.FileOutputStream.open(FileOutputStream.java:270)
 at java
.io.FileOutputStream.<init>(FileOutputStream.java:213)
 at org
.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:151)
 at org
.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setFile(PeriodicRotatingFileHandler.java:102)
 at org
.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:189)
 at org
.jboss.logmanager.handlers.FileHandler.<init>(FileHandler.java:119)
 at org
.jboss.logmanager.handlers.PeriodicRotatingFileHandler.<init>(PeriodicRotatingFileHandler.java:70)

Steps to reproduce

- minishift start --deploy-registry=true --deploy-router=true --memory=4048 --vm-driver="xhyve"
- gofabric8 volumes

Questions :
- Is the problem related to the fact that a volume is not mounted ?
- Could the problem be related to the fact that the user of the docker container doesn't have the permissions ?

Regards,

Charles

James Strachan

unread,
Oct 7, 2016, 6:20:11 AM10/7/16
to Charles Moulliard, fabric8
could be. Also we should configure wildfly to not use log files but use stdout instead

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
James
-------
Red Hat

Twitter: @jstrachan
Email: james.s...@gmail.com
Blog: https://medium.com/@jstrachan/

open source microservices platform

Jimmi Dyson

unread,
Oct 7, 2016, 6:23:39 AM10/7/16
to James Strachan, Charles Moulliard, fabric8

Yep - ardour/stderr please.


To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
James
-------
Red Hat

Twitter: @jstrachan
Email: james.s...@gmail.com
Blog: https://medium.com/@jstrachan/

open source microservices platform

--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.

Jimmi Dyson

unread,
Oct 7, 2016, 6:24:05 AM10/7/16
to James Strachan, Charles Moulliard, fabric8

That's stdout - damn autocorrect

Charles Moulliard

unread,
Oct 7, 2016, 6:38:31 AM10/7/16
to fabric8, ch0...@gmail.com
I see that we only mount the data volume but not the parent directory which contains the configuration folder ....

To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages