You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gentics Mesh Version, operating system, or hardware.
v0.24.0
Operating System
Openshift
JVM
from the Docker Image
Problem
In Openshift any Pod runs with a random user id. So writing mesh.lock during startup fails
02:09:55.921 [Veiled Pupitar] INFO [main] - Could not find keystore {config/keystore.jceks}. Creating one for you..
--
| 02:09:55.981 [Veiled Pupitar] INFO [main] - Keystore {config/keystore.jceks} created. The keystore password is listed in your {mesh.yml} file.
| Exception in thread "main" java.io.IOException: Permission denied
| at java.io.UnixFileSystem.createFileExclusively(Native Method)
| at java.io.File.createNewFile(File.java:1012)
| at com.gentics.mesh.cli.MeshImpl.createLockFile(MeshImpl.java:378)
| at com.gentics.mesh.cli.MeshImpl.run(MeshImpl.java:120)
| at com.gentics.mesh.cli.MeshImpl.run(MeshImpl.java:103)
| at com.gentics.mesh.server.ServerRunner.main(ServerRunner.java:55)
| 02:09:55.984 [Veiled Pupitar] INFO [Thread-0] - Mesh shutting down...
| Error while shutting down mesh.
| java.lang.NullPointerException
| at com.gentics.mesh.cli.MeshImpl.shutdown(MeshImpl.java:356)
| at com.gentics.mesh.cli.MeshImpl.lambda$registerShutdownHook$2(MeshImpl.java:268)
| at java.lang.Thread.run(Thread.java:745)
/data, /config, /elasticsearch and /tmp (via MESH_TEMP_DIR) is writable via emptyDir volumes.
But mesh still tries to write /mesh/mesh.lock which is not possible.
Reproducer
oc new-app gentics/mesh
Expected behaviour and actual behaviour
It should be written to MESH_TEMP_DIR by default IMHO
Is there any undocumented env var for setting the lock file location?
The text was updated successfully, but these errors were encountered:
Thanks for the issue. The path to every file, folder that is managed by Gentics Mesh should be configurable. I'll try to squeeze the change into the next 0.24.x release. There is currently no setting for this. The path to the lock file is always relative to the current working directory.
@MehrCurry OpenShift support for Mesh has been improved with release 1.3.3 - The containers / pods can now be run with any UID. Group permissions on the default folders have been changed as well.
Gentics Mesh Version, operating system, or hardware.
Operating System
JVM
Problem
In Openshift any Pod runs with a random user id. So writing mesh.lock during startup fails
/data, /config, /elasticsearch and /tmp (via MESH_TEMP_DIR) is writable via emptyDir volumes.
But mesh still tries to write /mesh/mesh.lock which is not possible.
Reproducer
oc new-app gentics/mesh
Expected behaviour and actual behaviour
It should be written to MESH_TEMP_DIR by default IMHO
Is there any undocumented env var for setting the lock file location?
The text was updated successfully, but these errors were encountered: