Harpal
04/07/2022, 4:36 PM/usr/local/lib/python3.7/site-packages/dagster/core/workspace/context.py:560: UserWarning: Error loading repository location moonfire-dagster-repo:dagster.core.errors.DagsterUserCodeUnreachableError: Could not reach user code server
As well as issues with reaching the postgres server.
Started execution of step "dbt_project".
Executing command: dbt --log-format json run --project-dir ./dbt --profiles-dir ./dbt/config --vars {"test_split": 0.1, "train_split": 0.8} --select +sector_cls_eval_set
Running with dbt=1.0.1-rc1
Unable to do partial parsing because config vars, config profile, or config target have changed
Found 21 models, 131 tests, 0 snapshots, 0 analyses, 167 macros, 0 operations, 0 seed files, 0 sources, 0 exposures, 0 metrics
ERROR
Encountered an error:
Database Error
connection to server at "35.195.146.254", port 5432 failed: timeout expired
17:06:45.710
This may be indicative of a larger problem accessing sercrets/credentials - but all of the other jobs work just fine.
I’ve entered the pod and it clearly contains the api-keys secret (so it has the DB password available as an env variable) so it shouldn’t be failing like this.
Steps to recreate the error:
This error came from me:
• Entering the pod manually with the following commands
◦ export DAGIT_POD_NAME=$(kubectl get pods --namespace default -l “app.kubernetes.io/name=dagster,app.kubernetes.io/instance=dagster,component=dagit” -o jsonpath=“{.items[0].metadata.name}“)
◦ kubectl --namespace default port-forward $DAGIT_POD_NAME 8080:80
• clicking the link to get to the DagitUI
• selecting the sector_cls_ALL...
job
• executing it
Any help at all debugging these types of issues would be much appreciated 🙌owen
04/07/2022, 5:11 PMHarpal
04/07/2022, 5:27 PMowen
04/07/2022, 6:13 PMHarpal
04/07/2022, 6:37 PMtarget
in the profiles.yml file was dev
instead of prod
. However that shouldn’t make a difference as dev/prod are both using the same credentials at the moment.owen
04/08/2022, 5:30 PMHarpal
04/11/2022, 8:37 AMowen
04/11/2022, 4:06 PM