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

Having trouble building/installing inside an ubuntu 20.04 docker container #636

Open
lpmi-13 opened this issue Mar 18, 2022 · 0 comments
Open

Comments

@lpmi-13
Copy link

lpmi-13 commented Mar 18, 2022

I'm very interested in this tool, and have been trying multiple different ways to compile and run it, but so far haven't had any luck. I thought for the cleanest reproducible error, I'd try to do it inside of a container based on an ubuntu20.04 base image, and have received the following error logging from the respective Dockerfile:

command and result:

docker build -t genny .
[+] Building 187.2s (9/9) FINISHED                                                                                             
 => [internal] load build definition from Dockerfile                                                                      0.1s
 => => transferring dockerfile: 468B                                                                                      0.0s
 => [internal] load .dockerignore                                                                                         0.0s
 => => transferring context: 2B                                                                                           0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                           1.8s
 => [1/6] FROM docker.io/library/ubuntu:20.04@sha256:bea6d19168bbfd6af8d77c2cc3c572114eb5d113e6f422573c93cb605a0e2ffb     0.0s
 => CACHED [2/6] RUN apt update -y && apt install -y build-essential git python3 python3-pip python3.8-venv curl          0.0s
 => CACHED [3/6] RUN git clone https://github.com/mongodb/genny /opt/genny                                                0.0s
 => CACHED [4/6] RUN mkdir -p /opt/mongodbtoolchain/revisions                                                             0.0s
 => CACHED [5/6] WORKDIR /opt/genny                                                                                       0.0s
 => ERROR [6/6] RUN ./run-genny install -d ubuntu2004                                                                   185.3s
------                                                                                                                         
 > [6/6] RUN ./run-genny install -d ubuntu2004:                                                                                
#9 13.09   ERROR: Command errored out with exit status 1:                                                                      
#9 13.09    command: /opt/genny/genny_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b0gunzls/PyYAML/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b0gunzls/PyYAML/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-f7kryfwu
#9 13.09        cwd: /tmp/pip-install-b0gunzls/PyYAML/
#9 13.09   Complete output (6 lines):
#9 13.09   usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
#9 13.09      or: setup.py --help [cmd1 cmd2 ...]
#9 13.09      or: setup.py --help-commands
#9 13.09      or: setup.py cmd --help
#9 13.09   
#9 13.09   error: invalid command 'bdist_wheel'
#9 13.09   ----------------------------------------
#9 13.09   ERROR: Failed building wheel for PyYAML
#9 13.36   ERROR: Command errored out with exit status 1:
#9 13.36    command: /opt/genny/genny_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b0gunzls/antlr4-python3-runtime/setup.py'"'"'; __file__='"'"'/tmp/pip-install-b0gunzls/antlr4-python3-runtime/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-vvxb8cuz
#9 13.36        cwd: /tmp/pip-install-b0gunzls/antlr4-python3-runtime/
#9 13.36   Complete output (6 lines):
#9 13.36   usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
#9 13.36      or: setup.py --help [cmd1 cmd2 ...]
#9 13.36      or: setup.py --help-commands
#9 13.36      or: setup.py cmd --help
#9 13.36   
#9 13.36   error: invalid command 'bdist_wheel'
#9 13.36   ----------------------------------------
#9 13.36   ERROR: Failed building wheel for antlr4-python3-runtime
#9 21.64 [info ] [genny.download      ] Downloaded and installed. into=/opt/genny/build/curator name=curator timestamp=2022-03-18T11:24:31Z
#9 101.7 [info ] [genny.download      ] Downloaded and installed. into=/data/mci/gennytoolchain name=gennytoolchain timestamp=2022-03-18T11:25:51Z
#9 101.9 -- The CXX compiler identification is GNU 9.4.0
#9 101.9 -- Detecting CXX compiler ABI info
#9 102.0 -- Detecting CXX compiler ABI info - done
#9 102.0 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#9 102.0 -- Detecting CXX compile features
#9 102.0 -- Detecting CXX compile features - done
#9 102.0 -- Looking for C++ include pthread.h
#9 102.1 -- Looking for C++ include pthread.h - found
#9 102.1 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
#9 102.2 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
#9 102.2 -- Looking for pthread_create in pthreads
#9 102.2 -- Looking for pthread_create in pthreads - not found
#9 102.2 -- Looking for pthread_create in pthread
#9 102.3 -- Looking for pthread_create in pthread - found
#9 102.3 -- Found Threads: TRUE  
#9 102.4 -- Found OpenSSL: /data/mci/gennytoolchain/installed/x64-linux/debug/lib/libcrypto.a (found suitable version "1.1.1k", minimum required is "1.1")  
#9 102.5 -- Found Boost: /data/mci/gennytoolchain/installed/x64-linux/include (found suitable version "1.75.0", minimum required is "1.75") found components: filesystem log_setup log program_options date_time thread regex chrono atomic 
#9 102.6 CMake Warning at /data/mci/gennytoolchain/installed/x64-linux-dynamic/share/libmongocxx-0.0.0/libmongocxx-config.cmake:15 (message):
#9 102.6   This CMake target is deprecated.  Use 'mongo::mongocxx_shared' instead.
#9 102.6   Consult the example projects for further details.
#9 102.6 Call Stack (most recent call first):
#9 102.6   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.6   cmake/FindMongoCxx.cmake:15 (find_package)
#9 102.6   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.6   src/third_party/CMakeLists.txt:7 (find_package)
#9 102.6 
#9 102.6 
#9 102.6 CMake Warning at /data/mci/gennytoolchain/installed/x64-linux-dynamic/share/libbsoncxx-0.0.0/libbsoncxx-config.cmake:15 (message):
#9 102.6   This CMake target is deprecated.  Use 'mongo::bsoncxx_shared' instead.
#9 102.6   Consult the example projects for further details.
#9 102.6 Call Stack (most recent call first):
#9 102.6   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.6   /data/mci/gennytoolchain/installed/x64-linux-dynamic/share/libmongocxx-0.0.0/libmongocxx-config.cmake:22 (find_package)
#9 102.6   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.6   cmake/FindMongoCxx.cmake:15 (find_package)
#9 102.6   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.6   src/third_party/CMakeLists.txt:7 (find_package)
#9 102.6 
#9 102.6 
#9 102.7 CMake Warning at /data/mci/gennytoolchain/installed/x64-linux-dynamic/share/libbsoncxx-0.0.0/libbsoncxx-config.cmake:15 (message):
#9 102.7   This CMake target is deprecated.  Use 'mongo::bsoncxx_shared' instead.
#9 102.7   Consult the example projects for further details.
#9 102.7 Call Stack (most recent call first):
#9 102.7   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.7   cmake/FindMongoCxx.cmake:16 (find_package)
#9 102.7   /data/mci/gennytoolchain/scripts/buildsystems/vcpkg.cmake:861 (_find_package)
#9 102.7   src/third_party/CMakeLists.txt:7 (find_package)
#9 102.7 
#9 102.7 
#9 102.8 -- Found ZLIB: /data/mci/gennytoolchain/installed/x64-linux/debug/lib/libz.a (found version "1.2.11") 
#9 103.0 CMake Deprecation Warning at src/third_party/cppcodec/CMakeLists.txt:1 (cmake_minimum_required):
#9 103.0   Compatibility with CMake < 2.8.12 will be removed from a future version of
#9 103.0   CMake.
#9 103.0 
#9 103.0   Update the VERSION argument <min> value or use a ...<max> suffix to tell
#9 103.0   CMake that the project does not need compatibility with older versions.
#9 103.0 
#9 103.0 
#9 103.0 CMake Warning (dev) at src/third_party/cppcodec/CMakeLists.txt:2 (project):
#9 103.0   Policy CMP0048 is not set: project() command manages VERSION variables.
#9 103.0   Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
#9 103.0   command to set the policy and suppress this warning.
#9 103.0 
#9 103.0   The following variable(s) would be set to empty:
#9 103.0 
#9 103.0     PROJECT_VERSION
#9 103.0     PROJECT_VERSION_MAJOR
#9 103.0     PROJECT_VERSION_MINOR
#9 103.0     PROJECT_VERSION_PATCH
#9 103.0 This warning is for project developers.  Use -Wno-dev to suppress it.
#9 103.0 
#9 103.0 -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
#9 103.1 -- Did NOT find system Catch2, instead using bundled version
#9 103.1 -- Found Boost: /data/mci/gennytoolchain/installed/x64-linux/include (found suitable version "1.75.0", minimum required is "1.66") found components: date_time regex 
#9 103.2 -- Found OpenSSL: /data/mci/gennytoolchain/installed/x64-linux/debug/lib/libcrypto.a (found version "1.1.1k")  
#9 103.3 /opt/genny/cmake
#9 103.3 -- Found cppcodec: /opt/genny/src/third_party/cppcodec  
#9 103.4 /opt/genny/cmake
#9 104.2 -- Configuring done
#9 104.3 -- Generating done
#9 104.3 -- Build files have been written to: /opt/genny/build
#9 104.3 ninja: Entering directory `build'
#9 104.3 [0/2 (  0%) 0.000s] Re-checking globbed directories...
#9 106.1 [1/126 (  0%) 1.770s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/recorder.pb.cc.o
#9 106.2 [2/126 (  1%) 1.821s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/poplar.pb.cc.o
#9 106.2 [3/126 (  2%) 1.867s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/collector.pb.cc.o
#9 106.3 [4/126 (  3%) 1.948s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/metrics.pb.cc.o
#9 106.8 [5/126 (  3%) 2.453s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/poplar.grpc.pb.cc.o
#9 106.9 [6/126 (  4%) 2.575s] Building CXX object src/third_party/cppcodec/tool/CMakeFiles/base64dec.dir/base64dec.cpp.o
#9 107.1 [7/126 (  5%) 2.768s] Linking CXX executable src/third_party/cppcodec/tool/base64dec
#9 107.5 [8/126 (  6%) 3.132s] Building CXX object src/third_party/cppcodec/tool/CMakeFiles/base32dec.dir/base32dec.cpp.o
#9 107.7 [9/126 (  7%) 3.332s] Linking CXX executable src/third_party/cppcodec/tool/base32dec
#9 107.8 [10/126 (  7%) 3.473s] Building CXX object src/third_party/cppcodec/tool/CMakeFiles/hexdec.dir/hexdec.cpp.o
#9 108.0 [11/126 (  8%) 3.678s] Linking CXX executable src/third_party/cppcodec/tool/hexdec
#9 108.4 [12/126 (  9%) 4.018s] Building CXX object src/third_party/cppcodec/tool/CMakeFiles/hexenc.dir/hexenc.cpp.o
#9 108.6 [13/126 ( 10%) 4.220s] Linking CXX executable src/third_party/cppcodec/tool/hexenc
#9 108.7 [14/126 ( 11%) 4.395s] Building CXX object src/third_party/cppcodec/tool/CMakeFiles/base64enc.dir/base64enc.cpp.o
#9 108.9 [15/126 ( 11%) 4.507s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/metrics.grpc.pb.cc.o
#9 109.0 [16/126 ( 12%) 4.609s] Linking CXX executable src/third_party/cppcodec/tool/base64enc
#9 109.2 [17/126 ( 13%) 4.869s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/recorder.grpc.pb.cc.o
#9 109.4 [18/126 ( 14%) 5.052s] Building CXX object src/third_party/cppcodec/tool/CMakeFiles/base32enc.dir/base32enc.cpp.o
#9 109.4 [19/126 ( 15%) 5.073s] Building CXX object src/third_party/poplar/CMakeFiles/poplarlib.dir/poplarlib/collector.grpc.pb.cc.o
#9 109.5 [20/126 ( 15%) 5.138s] Building CXX object src/third_party/cppcodec/example/CMakeFiles/type_support_wrapper.dir/type_support_wrapper.cpp.o
#9 109.6 [21/126 ( 16%) 5.243s] Linking CXX static library src/third_party/poplar/libpoplarlib.a
#9 109.6 [22/126 ( 17%) 5.260s] Linking CXX executable src/third_party/cppcodec/tool/base32enc
#9 109.7 [23/126 ( 18%) 5.301s] Linking CXX executable src/third_party/cppcodec/example/type_support_wrapper
#9 110.0 [24/126 ( 19%) 5.605s] Building CXX object src/third_party/cppcodec/example/CMakeFiles/helloworld.dir/helloworld.cpp.o
#9 110.2 [25/126 ( 19%) 5.801s] Linking CXX executable src/third_party/cppcodec/example/helloworld
#9 110.2 [26/126 ( 20%) 5.895s] Building CXX object src/third_party/cppcodec/test/CMakeFiles/minimal_decode.dir/minimal_decode.cpp.o
#9 110.4 [27/126 ( 21%) 6.045s] Linking CXX executable src/third_party/cppcodec/test/minimal_decode
#9 112.2 [28/126 ( 22%) 7.838s] Building CXX object src/third_party/cppcodec/test/CMakeFiles/benchmark_cppcodec.dir/benchmark_cppcodec.cpp.o
#9 112.4 [29/126 ( 23%) 8.061s] Linking CXX executable src/third_party/cppcodec/test/benchmark_cppcodec
#9 115.2 [30/126 ( 23%) 10.886s] Building CXX object src/canaries/CMakeFiles/canaries.dir/src/tasks.cpp.o
#9 119.8 [31/126 ( 24%) 15.427s] Building CXX object src/canaries/CMakeFiles/genny-canaries.dir/src/main.cpp.o
#9 120.0 [32/126 ( 25%) 15.692s] Building CXX object src/canaries/CMakeFiles/canaries_benchmark.dir/benchmark/canaries_benchmark.cpp.o
#9 124.9 [33/126 ( 26%) 20.589s] Building CXX object src/canaries/CMakeFiles/canaries.dir/src/Loops.cpp.o
#9 125.9 [34/126 ( 26%) 21.573s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/RunCommand.cpp.o
#9 126.6 [35/126 ( 27%) 22.258s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/RollingCollections.cpp.o
#9 129.9 [36/126 ( 28%) 25.571s] Building CXX object src/third_party/catch2/CMakeFiles/catch2.dir/src/catch2.cpp.o
#9 130.4 [37/126 ( 29%) 26.095s] Linking CXX shared library src/third_party/catch2/libcatch2.so
#9 137.0 [38/126 ( 30%) 32.638s] Building CXX object src/third_party/cppcodec/test/CMakeFiles/test_cppcodec.dir/test_cppcodec.cpp.o
#9 139.6 [39/126 ( 30%) 35.268s] Linking CXX executable src/third_party/cppcodec/test/test_cppcodec
#9 140.4 [40/126 ( 31%) 36.023s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/HelloWorld.cpp.o
#9 140.9 [41/126 ( 32%) 36.577s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/CollectionScanner.cpp.o
#9 142.6 [42/126 ( 33%) 38.235s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/CommitLatency.cpp.o
#9 144.0 [43/126 ( 34%) 39.620s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/Insert.cpp.o
#9 145.0 [44/126 ( 34%) 40.698s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/Deleter.cpp.o
#9 176.7 [45/126 ( 35%) 72.303s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/CrudActor.cpp.o
#9 176.7 FAILED: src/cast_core/CMakeFiles/cast_core.dir/src/CrudActor.cpp.o 
#9 176.7 /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DCARES_STATICLIB -DENABLE_DIGEST -DENABLE_HTTPS -Dcast_core_EXPORTS -I../src/cast_core/include -I../src/cast_core/src -I../src/gennylib/include -I../src/third_party/loki/include -I../src/metrics/include -I../src/third_party/poplar -I../src/value_generators/include -I../src/third_party/simple-beast-client/include -isystem /data/mci/gennytoolchain/installed/x64-linux/include -isystem /data/mci/gennytoolchain/installed/x64-linux-dynamic/include/bsoncxx/v_noabi -isystem /data/mci/gennytoolchain/installed/x64-linux-dynamic/include/mongocxx/v_noabi -isystem ../src/third_party/cppcodec -fPIC -std=c++17 -MD -MT src/cast_core/CMakeFiles/cast_core.dir/src/CrudActor.cpp.o -MF src/cast_core/CMakeFiles/cast_core.dir/src/CrudActor.cpp.o.d -o src/cast_core/CMakeFiles/cast_core.dir/src/CrudActor.cpp.o -c ../src/cast_core/src/CrudActor.cpp
#9 176.7 ../src/cast_core/src/CrudActor.cpp: In member function 'genny::Duration {anonymous}::Delay::evaluate()':
#9 176.7 ../src/cast_core/src/CrudActor.cpp:1203:5: warning: control reaches end of non-void function [-Wreturn-type]
#9 176.7  1203 |     }
#9 176.7       |     ^
#9 176.7 c++: fatal error: Killed signal terminated program cc1plus
#9 176.7 compilation terminated.
#9 178.7 [46/126 ( 36%) 74.331s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/InsertRemove.cpp.o
#9 180.8 [47/126 ( 37%) 76.450s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/LoggingActor.cpp.o
#9 181.8 [48/126 ( 38%) 77.495s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/NopMetrics.cpp.o
#9 183.6 [49/126 ( 38%) 79.272s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/Loader.cpp.o
#9 183.7 [50/126 ( 39%) 79.330s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/MonotonicLoader.cpp.o
#9 184.1 [51/126 ( 40%) 79.758s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/MoveRandomChunkToRandomShard.cpp.o
#9 184.5 [52/126 ( 41%) 80.128s] Building CXX object src/cast_core/CMakeFiles/cast_core.dir/src/MonotonicSingleLoader.cpp.o
#9 184.5 ninja: build stopped: subcommand failed.
#9 184.7 [error] [genny.cmd_runner    ] Error in command     cmd=['ninja', '-C', 'build'] cwd=/opt/genny env={'PATH': '/data/mci/gennytoolchain/downloads/tools/ninja-1.10.1-linux::/data/mci/gennytoolchain/downloads/tools/cmake-3.20.2-linux/cmake-3.20.2-linux-x86_64/bin:/opt/mongodbtoolchain/v3/bin:/opt/genny/genny_venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'NINJA_STATUS': '[%f/%t (%p) %es] '} output=None returncode=1 timestamp=2022-03-18T11:27:14Z uuid=4f11a6ec
#9 184.7 [critical] [genny.tasks.compile ] Genny compile has failed. This is sometimes caused by having an old mongodbtoolchain. To update: curl -o toolchain_installer.sh http://mongodbtoolchain.build.10gen.cc/installer.sh && bash toolchain_installer.sh timestamp=2022-03-18T11:27:14Z
#9 184.8 Traceback (most recent call last):
#9 184.8   File "/opt/genny/src/lamplib/src/genny/cli.py", line 548, in <module>
#9 184.8     cli()
#9 184.8   File "/opt/genny/genny_venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
#9 184.8     return self.main(*args, **kwargs)
#9 184.8   File "/opt/genny/genny_venv/lib/python3.8/site-packages/click/core.py", line 782, in main
#9 184.8     rv = self.invoke(ctx)
#9 184.8   File "/opt/genny/genny_venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
#9 184.8     return _process_result(sub_ctx.command.invoke(sub_ctx))
#9 184.8   File "/opt/genny/genny_venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
#9 184.8     return ctx.invoke(self.callback, **ctx.params)
#9 184.8   File "/opt/genny/genny_venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
#9 184.8     return callback(*args, **kwargs)
#9 184.8   File "/opt/genny/genny_venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
#9 184.8     return f(get_current_context(), *args, **kwargs)
#9 184.8   File "/opt/genny/src/lamplib/src/genny/cli.py", line 124, in cmake_compile_install
#9 184.8     compile.compile_and_install(
#9 184.8   File "/opt/genny/src/lamplib/src/genny/tasks/compile.py", line 172, in compile_and_install
#9 184.8     compile_all(
#9 184.8   File "/opt/genny/src/lamplib/src/genny/tasks/compile.py", line 103, in compile_all
#9 184.8     run_command(
#9 184.8   File "/opt/genny/src/lamplib/src/genny/cmd_runner.py", line 64, in run_command
#9 184.8     raise e
#9 184.8   File "/opt/genny/src/lamplib/src/genny/cmd_runner.py", line 38, in run_command
#9 184.8     result: subprocess.CompletedProcess = subprocess.run(
#9 184.8   File "/usr/lib/python3.8/subprocess.py", line 516, in run
#9 184.8     raise CalledProcessError(retcode, process.args,
#9 184.8 subprocess.CalledProcessError: Command '['ninja', '-C', 'build']' returned non-zero exit status 1.
------
executor failed running [/bin/sh -c ./run-genny install -d ubuntu2004]: exit code: 1

contents of Dockerfile:

FROM ubuntu:20.04

RUN apt update -y && apt install -y build-essential git python3 python3-pip python3.8-venv

RUN git clone https://github.com/mongodb/genny /opt/genny

RUN mkdir -p /opt/mongodbtoolchain/revisions

WORKDIR /opt/genny

RUN ./run-genny install -d ubuntu2004

I also thought about attempting to use the C++ compiler and Python3.7 versions included in the mongodbtoolchain, as mentioned in https://github.com/mongodb/genny/blob/master/docs/setup.md , but I couldn't find any results in google for that, so I would happily raise a PR to update the docs if that's what's needed for this particular error, and you can point me in the right direction.

I also attempted to resolve this by updating the mongodbtoolchain via curl -o toolchain_installer.sh http://mongodbtoolchain.build.10gen.cc/installer.sh && bash toolchain_installer.sh but it didn't seem to resolve it. I can add the error logging including that command in the Dockerfile as well if that would be helpful.

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