Dbt init fails with a non-zero returncode error message

Hi,

I have installed dbt version 0.16 in a Windows machine.

I checked the version of dbt in the machine
installed version: 0.16.1
latest version: 0.16.1

Up to date!

When I try to initiate a project i get the following error

dbt init dbt-project

Running with dbt=0.16.1
Creating dbt configuration folder at C:\Users\********\.dbt

Encountered an error:
Got a non-zero returncode running: [‘git’, ‘clone’, ‘–depth’, ‘1’, ‘GitHub - dbt-labs/dbt-starter-project: Cloned by the `dbt init` task’, ‘dbt-project’]

I am not sure about this error. Please advise.

Thank you

Hi @Ghanashyam - do you have git installed on your machine? You can check with git --version. If not, then you should install git, as it’s used by the dbt init command.

If you do already have git installed, can you try cloning this repo manually? I’d be curious if your network settings prevent you from cloning the repo, or something like that. You can try cloning the repo manually with:

git clone --depth 1 https://github.com/fishtown-analytics/dbt-starter-project.git dbt-project

Hi Drew,

Thank you for your response.

I have git installed in my machine

git --version
git version 2.23.0.windows.1

git clone --depth 1 https://github.com/fishtown-analytics/dbt-starter-project.git dbt-project
Cloning into ‘dbt-project’…
fatal: unable to access ‘https://github.com/fishtown-analytics/dbt-starter-project.git/’: SSL certificate problem: self signed certificate in certificate chain

I tried this command

git -c http.sslVerify=false clone --depth 1 https://github.com/fishtown-analytics/dbt-starter-project.git dbt-project
Cloning into ‘dbt-project’…
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 12 (delta 0), reused 10 (delta 0), pack-reused 0
Unpacking objects: 100% (12/12), done.

It seems to have cloned the project