Hello, I've just started encountering an error wit...
# community-support
t
Hello, I've just started encountering an error with my RSA configuration since upgrading to Elementary 0.18.2:
edr monitor --profiles-dir ./config debug
Output:
Copy code
2025-06-23 09:18:40 — INFO — Running with edr=0.18.2
2025-06-23 09:18:40 — INFO — Installing packages for edr internal dbt package...
2025-06-23 09:18:40 — INFO — Running dbt command --log-format json deps --project-dir /runtime/lib/python3.10/site-packages/elementary/monitor/dbt_project
{"data": {"exc": "Database Error\n  [Errno 2] No such file or directory: 'env/dbt-keys/rsa_key.p8'"}, "info": {"category": "", "code": "Q001", "extra": {}, "invocation_id": "5525ce61-9e84-4a88-9a0f-e34a9919e1ca", "level": "error", "msg": "Encountered an error while running operation: Database Error\n  [Errno 2] No such file or directory: 'env/dbt-keys/rsa_key.p8'", "name": "RunningOperationCaughtError", "pid": 8, "thread": "MainThread", "ts": "2025-06-23T09:19:28.589736Z"}}
Could not connect to the Elementary db and schema. See details below

error: Encountered an error while running operation: Database Error
  [Errno 2] No such file or directory: 'env/dbt-keys/rsa_key.p8'
Error:
Database Error
  [Errno 2] No such file or directory: 'env/dbt-keys/rsa_key.p8'
The profile in
config/profiles.yml
sets the location of the key file:
Copy code
private_key_path: "{{ env_var('SF_PRIVATE_KEY_PATH') }}"
private_key_passphrase: "{{ env_var('SF_PRIVATE_KEY_PASS') }}"
SF_PRIVATE_KEY_PATH=env/dbt-keys/rsa_key.p8
The same type of configuration is used on the profile for executing dbt commands which continue to work as expected following the update. Just as a quick test, I copied the key file on a local container to the
/runtime/lib/python3.10/site-packages/elementary/monitor/dbt_project/env/dbt-keys/rsa_key.p8
and everything starts working, so it appears to me that something in the
--project-dir
configuration has changed?
For now, changing the location of my key for the report generation step in my workflow gets things working again:
Copy code
PY_SITE=$(python3 -c 'import site; print(site.getsitepackages()[0])')
TARGET_DIR="$PY_SITE/elementary/monitor/dbt_project"
cp sf_private_key.p8 "$TARGET_DIR/sf_private_key.p8"