-
Notifications
You must be signed in to change notification settings - Fork 59
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
[ADAP-1089] [Bug] Server socket closed when running DBT on GitHub Actions #701
Comments
Thanks for reaching out @BeltranCunef ! dbt-redshift needs a stable network connection. If the connection is lost, the Amazon Redshift Python driver will emit the error message you saw. We're not planning on changing the requirement of a stable network connection for dbt-redshift, so I'm going to close this as "not planned". |
@dbeatty10 we are having the same issue when running |
This error message is just now becoming a problem for us when testing on a local or ci. It's also comes up every now and then on slack. It's always a long running model while no other model is running. For some the deprecated But that seems to no longer be helping. Running a specific model alone that takes ~12min to full refresh always throws a BrokenPipe error. Upgrading to 1.7 returns a buffer size error, 1.5.8 shows an error message about my internet connection/vpn/etc. |
I have been having this issue on 1.7.3 with my deployments on both Dagster Cloud and through Fivetran's dbt deployment. Setting the @dbeatty10 Is it possible we can get a second look into what's causing these issues it seems to be more of a dbt issue than a "internet connection" issue considering multiple cloud deployments are failing and the revert to It's also not happening to specific models, I have some staging models that I can typically execute in < 10 seconds who are being flagged as taking 9000 seconds to execute before a Broken Pipe error or connection timeout (Set in my config). Another time it's been brought up on slack Feb 21st: https://getdbt.slack.com/archives/CJARVS0RY/p1708535489807729 |
Hey @BrettM86, did you downgrade just btw, are you, @FridayPush and @ag-serenis using the parameter (for @dbeatty10 too) I was plagued with the same broken-pipe error until I realized that it was happening when I used As soon as I removed the parameter, boom, a 17 minutes run with no broken-pipe, even with some models having errors. I added it back and the broken-pipe came back with it. So either my connection magically stayed stable for 17 minutes only when I removed |
We are not using the I do think it's something related to like 'micro-hiccups' in networking or similar. I have 10g/symmetrical internal at my house and see no indication of networking issues with anything else; but the jobs from DBT Cloud do not trigger this often at all. |
Adding a comment here just in case this is useful for someone still experiencing the issue. My setup: |
@dbeatty10 We are encountering this issue on dbt Cloud. Since we are now forced to use the versionless platform, what options do we have to address this? |
@jeffzi-metamoki It looks like you already opened up a support ticket in dbt Cloud -- thank you for doing that -- that is the best place since you are experiencing this in dbt Cloud. We'll follow-up further with you in that ticket. |
Is this a new bug in dbt-core?
Current Behavior
When running
dbt run --full-refresh
on GitHub Actions I get an error message that the server has closed the connection unexpectedly. I'm using DBT to do a full refresh of all my seeds and models excluding materialized views and others which have the tagdo_not_run
.Expected Behavior
Finishing the full refresh succesfully
Steps To Reproduce
A simple
dbt run --full-refresh -t $TARGET --profiles-dir ./ --exclude tag:my_tag config.materialized:materialized_view
where$TARGET
is a GitHub variable.Relevant log output
Completed with 1 error and 0 warnings: 01:51:21 01:51:21 Runtime Error in model my_model (models/marts/my_folder/my_model.sql) BrokenPipe: server socket closed. Please check that client side networking configurations such as Proxies, firewalls, VPN, etc. are not affecting your network connection.
Environment
Which database adapter are you using with dbt?
redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: