I try to deploy an EAR on an empty WildFly server using a script containing this CLI command:
deploy path/app.ear --server-groups=myServerGroup
However, it seems that WildFly removes the deployment. Indeed, in the wildfly/domain/log/host-controller.log
file, I see:
2017-03-23 18:00:29,173 INFO [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0001: Content added at location /opt/jboss/wildfly/domain/data/content/e1/42b70f3e3e5127f67b742db96d522c4602a779/content
2017-03-23 18:01:42,262 INFO [org.jboss.as.repository] (External Management Request Threads -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/domain/data/content/b3/ea005efe4d3f22d006db850ac1c88b0a470b3a
/content
2017-03-23 18:10:15,028 INFO [org.jboss.as.repository] (Host Controller Service Threads - 32) WFLYDR0009: Content /opt/jboss/wildfly/domain/data/content/e1/42b70f3e3e5127f67b742db96d522c4602a779 is obsolete and will
be removed
2017-03-23 18:10:15,034 INFO [org.jboss.as.repository] (Host Controller Service Threads - 32) WFLYDR0002: Content removed from location /opt/jboss/wildfly/domain/data/content/e1/42b70f3e3e5127f67b742db96d522c4602a779
/content
Moreover, if I manually run the command, the deployment works.
When does WildFly consider a content as obsolete? Why my deployment would be considered as obsolete?
UPDATE
Another example :
2017-05-23 16:06:48,493 INFO [org.jboss.as.repository] (management-handler-thread - 3) WFLYDR0001: Content added at location /opt/jboss/wildfly/domain/data/content/57/f5a4fe985f3528222053b0404654ead3502fa9/content
2017-05-23 16:13:05,281 INFO [org.jboss.as.repository] (Host Controller Service Threads - 3) WFLYDR0009: Content /opt/jboss/wildfly/domain/data/content/57/f5a4fe985f3528222053b0404654ead3502fa9 is obsolete and will be removed
2017-05-23 16:13:05,288 INFO [org.jboss.as.repository] (Host Controller Service Threads - 3) WFLYDR0002: Content removed from location /opt/jboss/wildfly/domain/data/content/57/f5a4fe985f3528222053b0404654ead3502fa9/ content