Skip to content

Docker build image command failure  #198

@alagad3

Description

@alagad3

78.42 Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
78.43 ERROR: Could not read MxBuild error file
78.43 Traceback (most recent call last):
78.43 File "/opt/mendix/buildpack/buildpack/core/mxbuild.py", line 67, in build_from_source
78.43 subprocess.check_call(args, env=mono_env)
78.43 File "/usr/lib64/python3.11/subprocess.py", line 413, in check_call
78.43 raise CalledProcessError(retcode, cmd)
78.43 subprocess.CalledProcessError: Command '['/tmp/opt/mono-5.20.1.27/bin/mono', '--config', '/tmp/opt/mono-5.20.1.27/etc/mono/config', '/opt/mendix/build/.local/mxbuild/modeler/mxbuild.exe', '--target=package', '--output=/tmp/model.mda', '--java-home=/opt/mendix/build/.local/usr/lib/jvm/Adoptium-jdk-11.0.18-Adoptium-x64', '--java-exe-path=/opt/mendix/build/.local/usr/lib/jvm/Adoptium-jdk-11.0.18-Adoptium-x64/bin/java', '--write-errors=/tmp/builderrors.json', '/opt/mendix/build/App.mpr']' died with <Signals.SIGSEGV: 11>.
78.43
78.43 During handling of the above exception, another exception occurred:
78.43
78.43 Traceback (most recent call last):
78.43 File "/opt/mendix/buildpack/buildpack/core/mxbuild.py", line 112, in _log_buildstatus_errors
78.43 with codecs.open(error_file, "r", encoding="utf-8-sig") as errorfile:
78.43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78.43 File "", line 918, in open
78.43 FileNotFoundError: [Errno 2] No such file or directory: '/tmp/builderrors.json'
78.43 ERROR: MxBuild returned errors: {"problems": [{"severity": "Error", "message": "Failed to build the model,please check application logs for details.", "locations": []}]}
78.43 ERROR: Command '['/tmp/opt/mono-5.20.1.27/bin/mono', '--config', '/tmp/opt/mono-5.20.1.27/etc/mono/config', '/opt/mendix/build/.local/mxbuild/modeler/mxbuild.exe', '--target=package', '--output=/tmp/model.mda', '--java-home=/opt/mendix/build/.local/usr/lib/jvm/Adoptium-jdk-11.0.18-Adoptium-x64', '--java-exe-path=/opt/mendix/build/.local/usr/lib/jvm/Adoptium-jdk-11.0.18-Adoptium-x64/bin/java', '--write-errors=/tmp/builderrors.json', '/opt/mendix/build/App.mpr']' died with <Signals.SIGSEGV: 11>.

Dockerfile:38

37 | # 8. Update permissions of /opt/mendix so that the app can run as a non-root user
38 | >>> RUN mkdir -p /tmp/buildcache /tmp/cf-deps /var/mendix/build /var/mendix/build/.local &&
39 | >>> chmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/git /opt/mendix/buildpack/buildpack/stage.py &&
40 | >>> cd /opt/mendix/buildpack &&
41 | >>> ./compilation.py /opt/mendix/build /tmp/buildcache /tmp/cf-deps 0 &&
42 | >>> rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/git &&
43 | >>> ln -s /opt/mendix/.java /opt/mendix/build
44 |

ERROR: failed to solve: process "/bin/sh -c mkdir -p /tmp/buildcache /tmp/cf-deps /var/mendix/build /var/mendix/build/.local && chmod +rx /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/git /opt/mendix/buildpack/buildpack/stage.py && cd /opt/mendix/buildpack && ./compilation.py /opt/mendix/build /tmp/buildcache /tmp/cf-deps 0 && rm -fr /tmp/buildcache /tmp/javasdk /tmp/opt /tmp/downloads /opt/mendix/buildpack/compilation.py /opt/mendix/buildpack/git && ln -s /opt/mendix/.java /opt/mendix/build" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions