-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Errno 104] Connection reset by peer – Github Actions with dbt
commands fails randomly
#352
Comments
Thanks for the fullsome report. Other customers have reported this through our support channels. The proximate cause appears to be in the GitHub Actions behaviour -- it's not clear at this point if a change to dbt-databricks or dbt-core could effectively work around it. The last customer who encountered this issue worked around it successfully using a self-hosted actions runner. |
Hi @susodapop, I can confirm that it works with a self-hosted Github runner. We have now implemented this transitionally using this action Can you tell me if the issue is actively communicated between Github and Databricks? |
We're also getting this issue and looking for a fix |
We will work on databricks-sql-python improvements regarding http connections and retries that may help with this issue. From the dbt adapter there is very little we can do. |
Actions team recently rolled out an update to the runner image actions/runner-images#7860. Would you retry the problematic runs to see if the issue is mitigated? |
This problem seems to have solved itself. Can be closed with it. |
Describe the bug
I'm wondering if anyone else come across this error when running dbt commands for dbt in a Github Actions workflow? For about two to three days, the execution of dbt commands has been exceedingly unreliable. It always comes up with the following error message:
Error during request to server: [Errno 104] Connection reset by peer.
This may not be a problem with the adapter per se, however other users (see dbt-slack) seem to notice this problem and I wanted to give frustrated users a forum here as well, if they are also facing this challenge.
Local execution as well as execution inside a Databricks workflow of a
dbt run
works without problems – only the Github runner causes them.Which commands - be it
run
,test
ordocs generate
- fail and with which models is completely random in my observation. In the monitoring of the Databricks SQL warehouses I can see that the SQL queries were indeed executed successfully, but dbt on the Github runner does not notice this.I have recreated the environments exactly the same in terms of adapter version, dbt version, Python version, dbt artifacts and executing identity. The error only occurs on Github, so I now suspect network issues between Github and Databricks.
Expected behavior
The execution of dbt commands should run successfully on the Github runner.
Screenshots and log output
System information
The output of
dbt --version
:The operating system you're using:
Github Runner
ubuntu-latest
, see Link.The output of
python --version
:Python 3.9.10
The text was updated successfully, but these errors were encountered: