Open Visya opened 8 months ago
Hey @Visya! I see you're using v1.7.1 — is this working for you on earlier versions of dbt-core
? We need to understand if this is a regression (due to some change in v1.7), versus that has never worked.
Hi @jtcohen6, I am setting up a new environment in a new system, so it never worked for me. But I have other colleagues in the same network, that are able to download packages behind the proxy.
@Visya do you happen to know which version of dbt your colleagues are using?
Currently we are running some workflows using DBT-core v 1.7.4 in which this error is happeing. This is happening ramdomly with no exact pattern.
@Visya I do not think this is a BUG related to DBT-core, It could maybe that due the concurrency of getting these packages from github is causing some crash in some cases.
I saw this error for the first time today having upgraded our snowflake connector recently. DBT core has remained the same for the last 9 months. dbt-core = "^1.5.2" dbt-snowflake = "^1.5.2" snowflake-connector-python = "^3.7.1"
Last week we upgraded from snowflake-connector-python = "^3.1.0"
@josezeta and @jfo8001 did each of you see this error for the first time today?
If so, was it intermittent, or did it happen every time to you ran dbt deps
? Are you using a proxy like the original poster, by any chance?
Also, could you share your environment details?
- OS:
- Python:
- dbt:
Examples:
OS: Ubuntu 20.04
Python: 3.9.12 (python3 --version
)
dbt-core: 1.1.1 (dbt --version
)
@dbeatty10 I'm encountering an intermittent error with dbt deps. It occurred once today, but subsequent runs (every 15 minutes) have been successful without code or environment changes. The error seems related to downloading a package's .gzip artifact. This suggests a possible transient issue with GitHub, which I believe is the artifact repository.
Environment
OS: Debian, docker image https://hub.docker.com/layers/library/python/3.8.17/images/sha256-c293ab0afb856e1f378bd676d43010154827f3e228ba859f66e5ffa6c850427e Python: 3.8.17 dbt-core: 1.7.4
A transient issue with GitHub sounds like a very possible explanation.
Agreed that this doesn't look like an issue in dbt-core, and it being rare and intermittent both supporting that judgement.
I'm going to leave this as awaiting_reponse
in case anyone adds more information that we should consider.
Wanted to add I also am dealing with the "External connection exception occurred: not a gzip file" and occasionally a rare "External connection exception occurred: Compressed file ended before the end-of-stream marker was reached" error.
OS: Microsoft Windows 10 Enterprise - 10.0.19045 Build 19045 Python: 3.11.9 DBT: 1.7.13 Snowflake: 1.7.3
I think it is specifically a git issue with dbt-labs/dbt-utils (not all packages)
Even if I reference link: https://hub.getdbt.com/dbt-labs/dbt_utils/1.1.1/ and put code:
packages:
- package: dbt-labs/dbt_utils
version: 1.1.1
in packages.yml -> get error: Version error for package dbt-labs/dbt_utils: Could not find a satisfactory version from options: ['=1.1.1', '>=0.8.0', '<2.0.0', '>=0.8.0', '<0.9.0', '>=0.8.1', '<0.9.0']
if try code:
packages:
- package: dbt-labs/dbt_utils
version: [">=0.8.0", "<0.10.0"]
in packages.yml -> get error: External connection exception occurred: not a gzip file
If I comment out only the dbt_utils reference, all other packages install fine, but then packages-lock.yml still adds dbt-labs/dbt-utils to the end of the file in which it errors.
If any advice available let me know.
@jturner18 are you still experiencing this issue?
Both of the packages.yml
files below worked for me when I ran this:
dbt deps --upgrade
# one version of packages.yml
packages:
- package: dbt-labs/dbt_utils
version: 1.1.1
# another version of packages.yml
packages:
- package: dbt-labs/dbt_utils
version: [">=0.8.0", "<0.10.0"]
Is this a new bug in dbt-core?
Current Behavior
When running dbt deps behind proxy (with
HTTP_PROXY
,HTTPS_PROXY
andFTP_PROXY
variables set up), I get an error:I tried installing with git, which works, but as soon as I try to install any bigger package that depends on
dbt_utils
, it fails with "Found duplicate project "dbt_utils". This occurs when a dependency has the same project name as some other dependency."Expected Behavior
Packages are able to be installed behind the proxy with dbt deps.
Steps To Reproduce
HTTP_PROXY
,HTTPS_PROXY
environment variables.dbt deps
.Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
I have
python-certifi-win32
installed, which resolved issues similar to this issue.