jboss-dockerfiles / wildfly

Docker image for WildFly project
https://quay.io/repository/wildfly/wildfly
MIT License
279 stars 236 forks source link

Deployments folder permissions change randomly #124

Closed tunessofia closed 3 years ago

tunessofia commented 4 years ago

In my project we have mapped as volume a folder for .jar deployments. It happens that sometimes this folder has the permissions changed inside the container. And this error happens

�[0m�[33m15:04:11,074 WARN  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0039: /opt/jboss/keycloak/standalone/deployments is not writable
�[0m�[33m15:04:11,075 WARN  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0043: Deployment directory scan failed due to inaccessible deployment directory: /opt/jboss/keycloak/standalone/deployments

Initially the folder has the permissions for user 1000 and group 1000 (as we set) And sometimes, without we knowing why, when this error happens, inside the container the folder has the permissions set for user and group 1001.

we dont even know who the 1001 user is. Can someone help?

tunessofia commented 3 years ago

found the source of the problem

spoilerdo commented 3 years ago

Can you share the solution?

tunessofia commented 3 years ago

Can you share the solution?

it was not related with wildfly. it was the deployment of a sevice in the same machine as the container that was chaging the folders permissions