Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build image command failure #198

Open
alagad3 opened this issue Jul 11, 2024 · 0 comments
Open

Docker build image command failure #198

alagad3 opened this issue Jul 11, 2024 · 0 comments

Comments

@alagad3
Copy link

alagad3 commented Jul 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant