[GH-ISSUE #130] Cannot connect to Git Repo and Terraform Enterprise server #73

Closed
opened 2026-05-06 12:37:06 +02:00 by BreizhHardware · 13 comments

Originally created by @rbehjati on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/patrickchugh/terravision/issues/130

Hi,

I am getting the following error, without any additional details:

Checking Terraform Version...

Terraform v1.9.5

ERROR: Cannot connect to Git Repo and Terraform Enterprise server. Check authorisation token, server address and network settings

 Code: 404 - Not Found

Do you know what could be the problem? I could not find anything about authorization requirements in the README.

Originally created by @rbehjati on GitHub (Sep 13, 2024). Original GitHub issue: https://github.com/patrickchugh/terravision/issues/130 Hi, I am getting the following error, without any additional details: ``` Checking Terraform Version... Terraform v1.9.5 ERROR: Cannot connect to Git Repo and Terraform Enterprise server. Check authorisation token, server address and network settings Code: 404 - Not Found ``` Do you know what could be the problem? I could not find anything about authorization requirements in the README.
Author
Owner

@ytkaczyk commented on GitHub (Sep 28, 2024):

Hi,
I have the same issue here. I created a token with terraform using terraform login and still receive the same error. --source is point to local files so git should not be necessary.
Any help would be appreciated.
Thank you!

<!-- gh-comment-id:2381026228 --> @ytkaczyk commented on GitHub (Sep 28, 2024): Hi, I have the same issue here. I created a token with terraform using `terraform login` and still receive the same error. `--source` is point to local files so git should not be necessary. Any help would be appreciated. Thank you!
Author
Owner

@funkfuzz commented on GitHub (Oct 4, 2024):

facing the same issue.

`Checking Terraform Version...

Terraform v1.9.7

ERROR: Cannot connect to Git Repo and Terraform Enterprise server. Check authorisation token, server address and network settings

Code: 404 - Not Found

<!-- gh-comment-id:2394055926 --> @funkfuzz commented on GitHub (Oct 4, 2024): facing the same issue. > `Checking Terraform Version... > > Terraform v1.9.7 > > ERROR: Cannot connect to Git Repo and Terraform Enterprise server. Check authorisation token, server address and network settings > > Code: 404 - Not Found
Author
Owner

@sicotico commented on GitHub (Jan 23, 2025):

Hi,

"I have the same problem, have you been able to solve it?"

<!-- gh-comment-id:2610403604 --> @sicotico commented on GitHub (Jan 23, 2025): Hi, "I have the same problem, have you been able to solve it?"
Author
Owner

@aomaryoussef commented on GitHub (Mar 25, 2025):

I am facing the same issue, any help?

<!-- gh-comment-id:2750955250 --> @aomaryoussef commented on GitHub (Mar 25, 2025): I am facing the same issue, any help?
Author
Owner

@ragincajunbanjo commented on GitHub (Mar 26, 2025):

I am also experiencing this issue.

<!-- gh-comment-id:2754931881 --> @ragincajunbanjo commented on GitHub (Mar 26, 2025): I am also experiencing this issue.
Author
Owner

@scottr-kr commented on GitHub (Mar 27, 2025):

Also having this issue.

<!-- gh-comment-id:2758127170 --> @scottr-kr commented on GitHub (Mar 27, 2025): Also having this issue.
Author
Owner

@flammino commented on GitHub (Apr 22, 2025):

same issue, I don't even use terraform enterprise. following

<!-- gh-comment-id:2822387031 --> @flammino commented on GitHub (Apr 22, 2025): same issue, I don't even use terraform enterprise. following
Author
Owner

@AT-LOW45 commented on GitHub (Sep 24, 2025):

Facing the same issue, following for updates

<!-- gh-comment-id:3326549519 --> @AT-LOW45 commented on GitHub (Sep 24, 2025): Facing the same issue, following for updates
Author
Owner

@patrickchugh commented on GitHub (Sep 24, 2025):

Can someone use --debug flag and show me the output? Any example repo I can try?

<!-- gh-comment-id:3326883256 --> @patrickchugh commented on GitHub (Sep 24, 2025): Can someone use --debug flag and show me the output? Any example repo I can try?
Author
Owner

@AT-LOW45 commented on GitHub (Sep 25, 2025):

Image

this is what I got for the output, I'm referencing a TF file in a local directory, but it's attempting to connect to a Git repo

<!-- gh-comment-id:3331847310 --> @AT-LOW45 commented on GitHub (Sep 25, 2025): <img width="1437" height="554" alt="Image" src="https://github.com/user-attachments/assets/70011312-8949-4320-9f47-5705d520411a" /> this is what I got for the output, I'm referencing a TF file in a local directory, but it's attempting to connect to a Git repo
Author
Owner

@patrickchugh commented on GitHub (Sep 25, 2025):

The source parameter is expecting a folder not a file

<!-- gh-comment-id:3332208162 --> @patrickchugh commented on GitHub (Sep 25, 2025): The source parameter is expecting a folder not a file
Author
Owner

@AT-LOW45 commented on GitHub (Oct 8, 2025):

user@user:/mnt/c/Users/Username$ terravision draw --source /mnt/c/Users/Username/Desktop/test-terravision



 _____                          _     _
/__   \___ _ __ _ __ __ ___   _(_)___(_) ___  _ __
  / /\/ _ \ '__| '__/ _` \ \ / / / __| |/ _ \| '_ \
 / / |  __/ |  | | | (_| |\ V /| \__ \ | (_) | | | |
 \/   \___|_|  |_|  \__,_| \_/ |_|___/_|\___/|_| |_|




Preflight check..
  dot command detected: /usr/bin/dot
  gvpr command detected: /usr/bin/gvpr
  git command detected: /usr/bin/git
  terraform command detected: /usr/bin/terraform

Checking Terraform Version...

Terraform v1.13.3
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/aws versions matching "~> 5.0"...
- Installing hashicorp/aws v5.100.0...
- Installed hashicorp/aws v5.100.0 (signed by HashiCorp)

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Thanks @patrickchugh, I manage to get Terravision running by using the absolute path of the folder. For anyone facing a similar issue, it could be that you are using the relative path of the folder.

<!-- gh-comment-id:3380017361 --> @AT-LOW45 commented on GitHub (Oct 8, 2025): ```powershell user@user:/mnt/c/Users/Username$ terravision draw --source /mnt/c/Users/Username/Desktop/test-terravision _____ _ _ /__ \___ _ __ _ __ __ ___ _(_)___(_) ___ _ __ / /\/ _ \ '__| '__/ _` \ \ / / / __| |/ _ \| '_ \ / / | __/ | | | | (_| |\ V /| \__ \ | (_) | | | | \/ \___|_| |_| \__,_| \_/ |_|___/_|\___/|_| |_| Preflight check.. dot command detected: /usr/bin/dot gvpr command detected: /usr/bin/gvpr git command detected: /usr/bin/git terraform command detected: /usr/bin/terraform Checking Terraform Version... Terraform v1.13.3 Initializing the backend... Initializing provider plugins... - Finding hashicorp/aws versions matching "~> 5.0"... - Installing hashicorp/aws v5.100.0... - Installed hashicorp/aws v5.100.0 (signed by HashiCorp) Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. ``` Thanks @patrickchugh, I manage to get Terravision running by using the **absolute** path of the folder. For anyone facing a similar issue, it could be that you are using the relative path of the folder.
Author
Owner

@patrickchugh commented on GitHub (Jan 31, 2026):

Closing due to inactivity

<!-- gh-comment-id:3828098400 --> @patrickchugh commented on GitHub (Jan 31, 2026): Closing due to inactivity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/terravision#73
No description provided.