# External connection exception occurred:

**URL:** <https://discourse.getdbt.com/t/external-connection-exception-occurred/12378>\
**Category:** Help\
**Created:** [March 8, 2024, 6:20am UTC](https://discourse.getdbt.com/t/external-connection-exception-occurred/12378 "2024-03-08T06:20:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khurramkhan1](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@khurramkhan1](https://discourse.getdbt.com/u/khurramkhan1)\
**Post date:** [March 8, 2024, 6:20am UTC](https://discourse.getdbt.com/t/external-connection-exception-occurred/12378/1 "2024-03-08T06:20:57Z")

</div>

dbt newbie here.  
I cloned an existing repo that in its requirement file was pointing to end of life dbt core version of 1.0.7 Updated it to 1.7.9 in dbt.requirements.txt and updated 3 packages (package: dbt-labs/dbt\_utils, package: dbt-msft/tsql\_utils, package: tnightengale/dbt\_meta\_testing ) version to latest as well as well.

When I run the auto-load and initialize script pwsh file, get the following error;

Getting error “dbt found 3  
| package(s) specified in packages.yml, but only 0 package(s) installed in dbt\_packages. Run “dbt deps” to install package dependencies”

But when I run dbt dps, I get the following error:  
“External connection exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))”

To be exact:

“06:15:33 Running with dbt=1.7.9  
06:15:34 Installing dbt-labs/dbt\_utils  
06:15:39 Encountered an error:  
External connection exception occurred: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))”

Any help or guidance would be deeply appreciated.

---

<div class="post-metadata">

**Author:** ![acharchar](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/acharchar/32/3749_2.png) [@acharchar](https://discourse.getdbt.com/u/acharchar)\
**Post date:** [March 9, 2024, 1:03am UTC](https://discourse.getdbt.com/t/external-connection-exception-occurred/12378/2 "2024-03-09T01:03:24Z")

</div>

I’m encountering a similar issue:

```auto
PS C:\repos\dbt-snf> dbt deps
01:01:51 Running with dbt=1.7.9
01:02:00 Encountered an error:
External connection exception occurred: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))  

```

---

<div class="post-metadata">

**Author:** ![acharchar](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/acharchar/32/3749_2.png) [@acharchar](https://discourse.getdbt.com/u/acharchar)\
**Post date:** [March 9, 2024, 3:59pm UTC](https://discourse.getdbt.com/t/external-connection-exception-occurred/12378/3 "2024-03-09T15:59:46Z")

</div>

Narrowing the issue further, the issue appears to be with the API request. Here are the logs:

```auto
[0m09:57:47.726371 [debug] [MainThread]: Making package index registry request: GET https://hub.getdbt.com/api/v1/index.json
e[0m09:57:49.324294 [debug] [MainThread]: External call exception: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

```

---

<div class="post-metadata">

**Author:** ![l.pollard](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/l.pollard/32/2778_2.png) [@l.pollard](https://discourse.getdbt.com/u/l.pollard)\
**Post date:** [April 10, 2024, 5:48pm UTC](https://discourse.getdbt.com/t/external-connection-exception-occurred/12378/4 "2024-04-10T17:48:00Z")

</div>

Same issue here - did anyone fix it? 🙂
