ERROR - M2EE: An error occurred while initializing the Runtime: UploadedFilesPath /opt/mendix/build/data/files is not writable by this process
0
We are deployed Mendix application into On-premises by using Docker and minikube using below yaml file but afetr deploye the application we are facing issue. apiVersion: apps/v1 kind: StatefulSet metadata: name: mendix-k8s-stateful labels: app: mendix-k8s spec: serviceName: mendix-app-service replicas: 2 selector: matchLabels: app: mendix-k8s template: metadata: labels: app: mendix-k8s spec: containers: - name: mendix-app image: ams:xlss imagePullPolicy: IfNotPresent ports: - containerPort: 8080 volumeMounts: - mountPath: "/opt/mendix/build/data/files" subPath: files name: mendix-data env: - name: ADMIN_PASSWORD valueFrom: secretKeyRef: name: mendix-app-secrets key: admin-password - name: DATABASE_ENDPOINT valueFrom: secretKeyRef: name: mendix-app-secrets key: db-endpoint - name: LICENSE_ID valueFrom: secretKeyRef: name: mendix-app-secrets key: license-id - name: LICENSE_KEY valueFrom: secretKeyRef: name: mendix-app-secrets key: license-key volumes: - hostPath: path: "/home/docker/mendix-files" name: mendix-data -------------------------------------------------------------------------------------------------------------------------------------------- We are facing below erro INFO: Executing export_industrial_edge_config_variable...INFO: Setting CF_INSTANCE_INDEX to 0 based on hostname mendix-k8s-stateful-0INFO: Adding uid to /etc/passwdINFO: Mendix Cloud Foundry Buildpack v4.30.14 [dadf3dc] starting...INFO: Fixing up permissions of directory 'model' with mode 700INFO: Fixing up permissions of directory 'web' with mode 755INFO: Fixing up permissions of directory 'data' with mode 700WARNING: External file store not configured. Files stored by the application will not persist across restarts. See https://github.com/mendix/cf-mendix-buildpack for file store configuration details.INFO: MENDIX-LOGGING-HEARTBEAT: Heartbeat number 1INFO: Using Java version:INFO: openjdk version "11.0.16.1" 2022-08-12INFO: OpenJDK Runtime Environment Temurin-11.0.16.1+1 (build 11.0.16.1+1)INFO: OpenJDK 64-Bit Server VM Temurin-11.0.16.1+1 (build 11.0.16.1+1, mixed mode)INFO: The buildpack is starting the runtime...INFO: Trying to start the MxRuntime...2024-07-05 10:37:07.206 INFO - M2EE: Added admin request handler '/prometheus' with servlet class 'com.mendix.metrics.prometheus.PrometheusServlet'2024-07-05 10:37:07.478 INFO - Logging: Logging to file: /opt/mendix/build/log/out.log, max size: 1099511627776KiB, max rotation: 10INFO - M2EE: Added admin request handler '/prometheus' with servlet class 'com.mendix.metrics.prometheus.PrometheusServlet'INFO - Logging: Logging to file: /opt/mendix/build/log/out.log, max size: 1099511627776KiB, max rotation: 10INFO - M2EE: Initializing runtime...INFO - Core: Mendix Runtime 10.1.1.12532 (build 10.1.1.12532). Copyright © 2003-2023 Mendix bv. All rights reserved.INFO - M2EE: Initialized runtime.INFO - M2EE: Creating Runtime server...INFO - M2EE: Setting MaxFormContentSize for Runtime Server to 10485760INFO - M2EE: Runtime server started.INFO - Configuration: Updating configuration...INFO - Configuration: updateConfiguration: ApplicationRootUrl=https://docker_example.com, LogMinDurationQuery=10000INFO - Configuration: Configuration updated. ERROR - M2EE: An error occurred while initializing the Runtime: UploadedFilesPath /opt/mendix/build/data/files is not writable by this processcom.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: UploadedFilesPath /opt/mendix/build/data/files is not writable by this process at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:253) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: UploadedFilesPath /opt/mendix/build/data/files is not writable by this process at com.mendix.basis.conf.ConfigValueChecker$.com$mendix$basis$conf$ConfigValueChecker$$error(ConfigValueChecker.scala:197) at com.mendix.basis.conf.ConfigValueChecker.fileError(ConfigValueChecker.scala:145) at com.mendix.basis.conf.ConfigValueChecker.$anonfun$checkFileOrDirectory$1(ConfigValueChecker.scala:162) at com.mendix.basis.conf.ConfigValueChecker.checkValue(ConfigValueChecker.scala:175) at com.mendix.basis.conf.ConfigValueChecker.checkFileOrDirectory(ConfigValueChecker.scala:149) at com.mendix.basis.conf.ConfigValueChecker.checkDirectory(ConfigValueChecker.scala:32) at com.mendix.basis.conf.ConfigurationImpl.processFileLocationConfiguration(ConfigurationImpl.scala:385) at com.mendix.basis.conf.ConfigurationImpl.updateConfiguration(ConfigurationImpl.scala:160) at com.mendix.basis.conf.ConfigurationImpl.checkConfig(ConfigurationImpl.scala:221) at com.mendix.basis.impl.ProjectModelStoreLoaderImpl.load(ProjectModelStoreLoaderImpl.scala:28) at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:213) at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.scala:30) at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.scala:17) at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandlerBase.service(HttpAdminHandlerBase.java:128) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
asked
Rajinkumar Nampelly
0 answers