Skip to content
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

fatal: not a git repository (or any parent up to mount point /tf) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Error /tf/rover/functions.sh on or near line landingzone folder not setup properly. Fix and restart.; exiting with status 1[bug] #479

Open
Herminder39 opened this issue Jun 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Herminder39
Copy link

I need to run CAF terraform landing zone for my production environment & testing the given script however unable to run & getting below error while running. If the steps below are wrong, can you guide me on how to run or resolve it? Also, as per the video (https://www.youtube.com/watch?v=w0W90bqZaWA&list=PLU8D1GcHfTRoYHqVUV856zZ4q3ZgxWiKg&index=3) landing zone folder also not available. I think that is 2 years OLD so might be some changes. I also tried via (rover --walkthrough) however that also failed. I can share screenshot if you provide any mail ID?

rover -lz /tf/caf/caf_launchpad
-launchpad
-var-folder /tf/caf/caf_launchpad/scenario/100
-env test
-a plan

fatal: not a git repository (or any parent up to mount point /tf)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Error /tf/rover/functions.sh on or near line landingzone folder not setup properly. Fix and restart.; exiting with status 1
No terraform cloud runs found.
@calling clean_up_variables
cleanup variables
clean_up backend_files
Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Configuration (please complete the following information):

  • OS and version: [e.g. Windows 10 1909]
  • Version of the rover[e.g. 22]
  • Version of the landing zone[e.g. 11]

Additional context
Add any other context about the problem here.

@Herminder39 Herminder39 added the bug Something isn't working label Jun 20, 2023
@Herminder39
Copy link
Author

Plan: 18 to add, 0 to change, 0 to destroy.

Changes to Outputs:
~ global_settings = (sensitive value)

│ Warning: Argument is deprecated

│ with module.launchpad.module.api_management_custom_domain.azurerm_api_management_custom_domain.apim,
│ on /home/vscode/.terraform.cache/sandpit/modules/launchpad/modules/apim/api_management_custom_domain/module.tf line 1, in resource "azurerm_api_management_custom_domain" "apim":
│ 1: resource "azurerm_api_management_custom_domain" "apim" {

proxy is deprecated and will be renamed to gateway in version 3.0 of the AzureRM provider


│ Error: building AzureRM Client: please ensure you have installed Azure CLI version 2.0.79 or newer. Error parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: Could not import runpy module
│ Traceback (most recent call last):
│ File "", line 1027, in _find_and_load
│ File "", line 1002, in _find_and_load_unlocked
│ File "", line 945, in _find_spec
│ File "", line 1439, in find_spec
│ File "", line 1411, in _get_spec
│ File "", line 1548, in find_spec
│ File "", line 1591, in _fill_cache
│ OSError: [Errno 12] Cannot allocate memory: '/tf/caf/caf_launchpad'.

│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 30, in provider "azurerm":
│ 30: provider "azurerm" {



│ Error: Building AzureAD Client

│ with provider["registry.terraform.io/hashicorp/azuread"],
│ on main.tf line 84, in provider "azuread":
│ 84: provider "azuread" {

│ Please ensure you have installed Azure CLI version 2.0.81 or newer. Error parsing json result from the Azure CLI: Error waiting for the Azure CLI:
│ exit status 1: Could not import runpy module
│ Traceback (most recent call last):
│ File "", line 1027, in _find_and_load
│ File "", line 1002, in _find_and_load_unlocked
│ File "", line 945, in _find_spec
│ File "", line 1439, in find_spec
│ File "", line 1411, in _get_spec
│ File "", line 1548, in find_spec
│ File "", line 1591, in _fill_cache
│ OSError: [Errno 12] Cannot allocate memory: '/tf/caf/caf_launchpad'.

Terraform plan return code: 1
Error 1 on or near line 57: Error running terraform plan; exiting with status 1

@calling clean_up_variables
cleanup variables

@Herminder39
Copy link
Author

Via /tf/caf/caf_launchpad/scenario/100 \ & /tf/caf/caf_launchpad/scenario/200, after running the script, I can see Storage
Key vault, Manage identity deployment successfully. I would like to know if ONLY these resources should deploy or just because the landing zone folder is missing, other resources were not deployed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant