Closed engalar closed 3 years ago
ERROR: Executing start did not succeed: result: 11, message: Security level should be set to CHECKEVERYTHING in order to run in acceptance or production environment ERROR: Starting application failed: Application start failed
You need to setup your mendix app security level to production. https://docs.mendix.com/refguide/project-security
3q, it works!
INFO:
.
WARNING: DATABASE_ENDPOINT environment variable not found.Fallback to custom runtime variables https://github.com/mendix/cf-mendix-buildpack/#configuring-custom-runtime-settings INFO: Executing export_industrial_edge_config_variable... INFO: Adding uid to /etc/passwd INFO: Mendix Cloud Foundry Buildpack v4.17.1 [980fa62] starting... WARNING: CF_INSTANCE_INDEX environment variable not found, assuming cluster leader responsibility... DEBUG: Preprocessing M2EE defaults... DEBUG: Loading configuration from /opt/mendix/build/.local/m2ee.yaml INFO: Fixing up permissions of directory 'model' with mode 700 INFO: Fixing up permissions of directory 'web' with mode 755 INFO: Fixing up permissions of directory 'data' with mode 700 DEBUG: Loading json configuration from /opt/mendix/build/model/metadata.json DEBUG: Determining runtime version to be used... DEBUG: MxRuntime version listed in model metadata: 8.18.9.24509 DEBUG: Merging microflow constants configuration... DEBUG: Merged runtime configuration: {'ApplicationRootUrl': 'https://APP_URI/', 'MicroflowConstants': {}, 'ScheduledEventExecution': 'ALL', 'LogMinDurationQuery': 10000, 'BasePath': '/opt/mendix/build/', 'DTAPMode': 'P'} DEBUG: Searching for 8.18.9.24509 in mxjar repo locations... DEBUG: Using: /opt/mendix/build/runtimes/8.18.9.24509 DEBUG: Determining classpath to be used... DEBUG: Building classpath to run appcontainer/runtime from jars. DEBUG: Running from binary distribution. DEBUG: Using classpath: /opt/mendix/build/runtimes/8.18.9.24509/runtime/felix/bin/felix.jar:/opt/mendix/build/runtimes/8.18.9.24509/runtime/lib/com.mendix.xml-apis-1.4.1.jar DEBUG: Setting RuntimePath runtime config option to /opt/mendix/build/runtimes/8.18.9.24509/runtime DEBUG: Enabling all scheduled events DEBUG: Constant [Atlas_UI_Resources.Atlas_UI_Resources_Version] not found in environment, using default value... DEBUG: Detected database configuration using custom runtime settings. WARNING: External file store not configured, uploaded files in the app will not persist across restarts. See https://github.com/mendix/cf-mendix-buildpack for file store configuration details. DEBUG: Application name is docker_example DEBUG: Java heap size set to 512M DEBUG: Skipping New Relic setup, no license key found in environment DEBUG: Skipping Dynatrace setup, no DT_TENANTTOKEN found in environment DEBUG: Writing nginx configuration file... DEBUG: nginx configuration file written DEBUG: Writing proxy_params configuration file... DEBUG: proxy_params configuration file written INFO: Using Java version: INFO: openjdk version "11.0.10" 2021-01-19 INFO: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) INFO: OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode) INFO: The buildpack is starting the runtime... DEBUG: Running fix_mxclientsystem_symlink... DEBUG: creating mxclientsystem symlink pointing to /opt/mendix/build/runtimes/8.18.9.24509/runtime/mxclientsystem DEBUG: Checking if the runtime is already alive... INFO: Trying to start the MxRuntime... DEBUG: Environment to be used when starting the JVM: PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' HOSTNAME='257beca8543b' ADMIN_PASSWORD='Password1!' MXRUNTIME_DatabaseType='MySql' MXRUNTIME_DatabaseUserName='mendix' MXRUNTIME_DatabasePassword='mendix' MXRUNTIME_DatabaseHost='db:3306' MXRUNTIME_DatabaseName='mendix' LOGGING_CONFIG='{"": "TRACE"}' BUILDPACK_XTRACE='true' LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' HOME='/opt/mendix/build' PYTHONPATH='/opt/mendix/buildpack/lib/:/opt/mendix/buildpack/:/opt/mendix/buildpack/lib/python3.6/site-packages/' NGINX_CUSTOM_BIN_PATH='/usr/sbin/nginx' PORT='8080' VCAP_APPLICATION='{ "application_name": "docker_example", "application_uris": [ "docker_example.com" ], "limits": { "disk": 1024, "fds": 16384, "mem": 1024 } } ' MALLOC_ARENA_MAX='2' M2EE_ADMIN_PORT='8082' M2EE_ADMIN_PASS='Password1!' M2EE_ADMIN_LISTEN_ADDRESSES='' M2EE_RUNTIME_LISTEN_ADDRESSES='' DEBUG: Command line to be used when starting the JVM: /opt/mendix/build/.local/bin/java -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/mendix/build/data/tmp -XX:OnError=kill -s USR1 25 -XX:OnOutOfMemoryError=kill -s USR2 25 -Xmx512M -Xms512M -XX:MaxMetaspaceSize=256M -DMX_INSTALL_PATH=/opt/mendix/build/runtimes/8.18.9.24509 -jar /opt/mendix/build/runtimes/8.18.9.24509/runtime/launcher/runtimelauncher.jar /opt/mendix/build/ DEBUG: The JVM process has been started. DEBUG: MxRuntime status: feut DEBUG: Setting up logging... INFO - Logging: Logging to file: /opt/mendix/build/log/out.log, max size: 1099511627776KiB, max rotation: 10 INFO - M2EE: Initializing runtime... INFO - Core: Mendix Runtime 8.18.9.24509 (build 24509). Copyright © 2003-2021 Mendix bv. All rights reserved. INFO - M2EE: Initialized runtime. INFO - M2EE: Creating Runtime server... INFO - M2EE: Setting MaxFormContentSize for Runtime Server to 10485760 INFO - M2EE: Runtime server started. DEBUG: Sending MxRuntime configuration... DEBUG: {'ApplicationRootUrl': 'https://docker_example.com', 'MicroflowConstants': {'Atlas_UI_Resources.Atlas_UI_Resources_Version': ' 2.7.1'}, 'ScheduledEventExecution': 'ALL', 'LogMinDurationQuery': 10000, 'BasePath': '/opt/mendix/build/', 'DTAPMode': 'P', 'RuntimePath': '/opt/mendix/build/runtimes/8.18.9.24509/runtime', 'DatabaseType': 'MySql', 'DatabaseUserName': 'mendix', 'DatabasePassword': 'mendix', 'DatabaseHost': 'db:3306', 'DatabaseName': 'mendix'} INFO - Configuration: Updating configuration... INFO - Services: Adding 0 authority certificate(s) INFO - Configuration: Configuration updated. DEBUG: Runtime Application Container has been started DEBUG: startresponse received ERROR: Executing start did not succeed: result: 11, message: Security level should be set to CHECKEVERYTHING in order to run in acceptance or production environment ERROR: Starting application failed: Application start failed DEBUG: Stopping runtime with M2EE... INFO: Waiting for the application to shutdown... INFO - Core: Mendix Runtime is shutting down now... INFO - Core: Mendix Runtime is now shut down. DEBUG: cleaning up pid & pidfile INFO: The application has been stopped successfully. DEBUG: Terminating process group... DEBUG: Successfully sent [SIGTERM] to process group [1] 2021/08/15 07:23:09 [alert] 28#28: unlink() "/run/nginx.pid" failed (13: Permission denied)