`dbt deps` hanging for hours
See original GitHub issueDescribe the bug
In our dbt hourly job we run dbt deps
to prepare the environment. Recently one of these calls ran for 20+ hours without exiting causing us to have to cancel the job and all queued behind it.
debug log
2021-03-16 22:16:30.233096 (MainThread): Running with dbt=0.18.0
2021-03-16 22:16:30.419286 (MainThread): running dbt with arguments Namespace(cls=<class 'dbt.task.deps.DepsTask'>, debug=False, defer=None, log_cache_events=False, log_format='default', partial_parse=None, profile='user', profiles_dir='/tmp/jobs/16076742/.dbt', project_dir=None, record_timing_info=None, rpc_method='deps', single_threaded=False, state=None, strict=False, target='default', test_new_parser=False, use_cache=True, use_colors=None, vars='{}', warn_error=False, which='deps', write_json=True)
2021-03-16 22:16:30.419762 (MainThread): Tracking: tracking
2021-03-16 22:16:30.428720 (MainThread): Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x7f497ec5beb0>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x7f4995b28340>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x7f497ebea640>]}
2021-03-16 22:16:30.429537 (MainThread): Set downloads directory='/tmp/dbt-downloads-00_woskw'
2021-03-16 22:16:30.431098 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/index.json
2021-03-16 22:16:30.660592 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/index.json 200
2021-03-16 22:16:30.661170 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils.json
2021-03-16 22:16:30.875229 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils.json 200
2021-03-16 22:16:31.019027 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils/0.6.1.json
2021-03-16 22:16:31.256770 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils/0.6.1.json 200
2021-03-16 22:16:31.261008 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/codegen.json
2021-03-16 22:16:31.466288 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/codegen.json 200
2021-03-16 22:16:31.469089 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/codegen/0.3.0.json
2021-03-16 22:16:31.707643 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/codegen/0.3.0.json 200
2021-03-16 22:16:31.710224 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/audit_helper.json
2021-03-16 22:16:31.961567 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/audit_helper.json 200
2021-03-16 22:16:31.964420 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/audit_helper/0.3.0.json
2021-03-16 22:16:32.174589 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/audit_helper/0.3.0.json 200
2021-03-16 22:16:32.178468 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/calogica/dbt_expectations.json
2021-03-16 22:16:32.486733 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/calogica/dbt_expectations.json 200
2021-03-16 22:16:32.490320 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/calogica/dbt_expectations/0.2.1.json
2021-03-16 22:16:32.709086 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/calogica/dbt_expectations/0.2.1.json 200
2021-03-16 22:16:32.712931 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils.json
2021-03-16 22:16:32.938283 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils.json 200
2021-03-16 22:16:32.951697 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils/0.6.1.json
2021-03-16 22:16:33.256579 (MainThread): Response from registry: GET https://hub.getdbt.com/api/v1/fishtown-analytics/dbt_utils/0.6.1.json 200
2021-03-16 22:16:33.257373 (MainThread): Making package registry request: GET https://hub.getdbt.com/api/v1/calogica/dbt_date.json
2021-03-17 18:49:53.170015 (MainThread): Flushing usage events
2021-03-17 18:49:53.421241 (MainThread):
Steps To Reproduce
In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here.
Expected behavior
dbt deps
would exit with success or failure within a few minutes at most.
Screenshots and log output
See log in collapse section above
System information
Which database are you using dbt with?
- postgres
- redshift
- bigquery
- snowflake
- other (specify: ____________)
The output of dbt --version
:
0.18.0
The operating system you’re using:
dbt cloud
The output of python --version
:
unsure, dbt cloud
Additional context
Add any other context about the problem here.
This is running in dbt Cloud
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
`dbt deps` hanging for hours · Issue #3177 - GitHub
In our dbt hourly job we run dbt deps to prepare the environment. Recently one of these calls ran for 20+ hours without...
Read more >dbt deps - The process cannot access the file because it is ...
I got this error when trying to install tsql_utils. I 'fixed' it by adding quote marks around the versions.
Read more >Debugging errors - dbt Developer Hub
Compile the dependencies into a graph. Check that it's acyclic. Dependency Error. SQL execution, Run the models, Database Error. Let's dive into ...
Read more >Add dbt clean before compile and runs - Meltano - GitLab
This MR cleans your dbt project before you run dbt deps. This is an extra command on every run, but it reduces the...
Read more >Run Scheduling Delays related to Snowflake Incident - IsDown
We are aware of an ongoing Snowflake incident that is causing some dbt Cloud jobs that connect to Snowflake to hang until the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jtcohen6 perfect, I’ll tackle that one!
Resolved by #3275