Building MongoDb source code

I am encountering an error while building MongoDB source code on a Linux machine. Despite adding BAZEL_FLAGS=--config=local, the issue persists. I would appreciate any help in resolving this.

Error →
Running bazel with remote execution enabled. To disable bazel remote execution, please add BAZEL_FLAGS=–config=local to the end of your scons command line invocation.

ERROR: /home/mohakg/.engflow/creds/engflow.crt not found. Please reach out to #ask-devprod-build if you need help with the steps below.

(If the below steps are not working or you are an external person to MongoDB, remote execution can be disabled by passing BAZEL_FLAGS=–config=local at the end of your scons.py invocation)

Please complete the following steps to generate a certificate:

  • (If not in the Engineering org) Request access to the MANA group MongoDB - Sign In
  • Go to Log in to EngFlow (Uses mongodbcorp.okta.com auth URL)
  • Login with OKTA, then click the “GENERATE AND DOWNLOAD MTLS CERTIFICATE” button
    • (If logging in with OKTA doesn’t work) Login with Google using your MongoDB email, then click the “GENERATE AND DOWNLOAD MTLS CERTIFICATE” button
  • On your local system (usually your MacBook), open a terminal and run:

ZIP_FILE=~/Downloads/engflow-mTLS.zip

curl https://raw.githubusercontent.com/mongodb/mongo/master/buildscripts/setup_engflow_creds.sh -o setup_engflow_creds.sh
chmod +x ./setup_engflow_creds.sh
./setup_engflow_creds.sh mohakg localhost $ZIP_FILE local

1 Like

(I removed 2 other replies to this, pending moderation, after more than 24 hours)
I have exact same problem (Python 3.10.14)
When following the steps mentioned in:

building.md

python3 -m venv python3-venv --prompt mongo 
source python3-venv/bin/activate
buildscripts/poetry_sync.sh
python3 buildscripts/scons.py --build-profile=opt

The last statement is bailing out with the error mentioned.
Adding BAZEL_FLAGS=–config=local to the scons line has NO EFFECT
Any help on this appreciated.

nobody cares, moderators dont care anyway