-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
- s2i build -c ./WFLYCTL0056-reproducer jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:19.0 eap-test
- docker run --rm -it eap-test
If we use the embedded server to configure the server at S2I phase, then the server throws an error when it is started at runtime.
The error trace is the following:
11:43:20,205 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0056: Could not rename /opt/wildfly/standalone/configuration/standalone_xml_history/current to /opt/wildfly/standalone/configuration/standalone_xml_history/20200212-114320204: java.nio.file.DirectoryNotEmptyException: /opt/wildfly/standalone/configuration/standalone_xml_history/current at java.base/sun.nio.fs.UnixCopyFile.ensureEmptyDir(UnixCopyFile.java:384) at java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:484) at java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:267) at java.base/java.nio.file.Files.move(Files.java:1421) at org.jboss.as.controller@11.0.0.Beta8//org.jboss.as.controller.persistence.ConfigurationFile.forcedMove(ConfigurationFile.java:782) at org.jboss.as.controller@11.0.0.Beta8//org.jboss.as.controller.persistence.ConfigurationFile.createHistoryDirectory(ConfigurationFile.java:664) at org.jboss.as.controller@11.0.0.Beta8//org.jboss.as.controller.persistence.ConfigurationFile.successfulBoot(ConfigurationFile.java:507) at org.jboss.as.controller@11.0.0.Beta8//org.jboss.as.controller.persistence.BackupXmlConfigurationPersister.successfulBoot(BackupXmlConfigurationPersister.java:95) at org.jboss.as.controller@11.0.0.Beta8//org.jboss.as.controller.AbstractControllerService.finishBoot(AbstractControllerService.java:580) at org.jboss.as.server@11.0.0.Beta8//org.jboss.as.server.ServerService.finishBoot(ServerService.java:434) at org.jboss.as.server@11.0.0.Beta8//org.jboss.as.server.ServerService.boot(ServerService.java:404) at org.jboss.as.controller@11.0.0.Beta8//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416) at java.base/java.lang.Thread.run(Thread.java:834)
The reason is the server needs to move the standalone_xml_history/current to a different location when it start, but since this directory was created at S2I phase, docker mounts it in a different overlay filesystem.
That is a problem for the java code that tries to move it to a backup folder.
This issue is supposed should be fixed by EAP7-1119 , however it would be great if we have a workaround for it until getting EAP7-1119 completely done.