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

Permission denied when using preconditions script #247

Closed
morgante opened this issue Jul 19, 2019 · 3 comments
Closed

Permission denied when using preconditions script #247

morgante opened this issue Jul 19, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@morgante
Copy link
Contributor

Error: Error running command '.terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions.sh \
    --credentials_path '' \
    --billing_account '018E0A-48857B-79EB94' \
    --org_id '816421441114' \
    --folder_id 'folders/857733378053' \
    --shared_vpc ''
': exit status 1. Output: Collecting google-api-python-client~=1.7 (from -r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/3f/f1/20fd18744c3d20307d634ffcc02592bc7efc45a59624e14655cf21cbfb5e/google_api_python_client-1.7.9-py3-none-any.whl (56kB)
Collecting google-auth~=1.6 (from -r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/c5/9b/ed0516cc1f7609fb0217e3057ff4f0f9f3e3ce79a369c6af4a6c5ca25664/google_auth-1.6.3-py2.py3-none-any.whl (73kB)
Collecting google-auth-httplib2>=0.0.3 (from google-api-python-client~=1.7->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/33/49/c814d6d438b823441552198f096fcd0377fd6c88714dbed34f1d3c8c4389/google_auth_httplib2-0.0.3-py2.py3-none-any.whl
Collecting uritemplate<4dev,>=3.0.0 (from google-api-python-client~=1.7->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/e5/7d/9d5a640c4f8bf2c8b1afc015e9a9d8de32e13c9016dcc4b0ec03481fb396/uritemplate-3.0.0-py2.py3-none-any.whl
Requirement already satisfied: six<2dev,>=1.6.1 in /Users/morgantep/Library/Python/3.7/lib/python/site-packages (from google-api-python-client~=1.7->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 1)) (1.12.0)
Collecting httplib2<1dev,>=0.9.2 (from google-api-python-client~=1.7->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/a8/12/213dee680d0e7d5689e3ef20c857f72932964c9d369ec50fbc39906fc757/httplib2-0.13.0-py3-none-any.whl (94kB)
Collecting pyasn1-modules>=0.2.1 (from google-auth~=1.6->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/91/f0/b03e00ce9fddf4827c42df1c3ce10c74eadebfb706231e8d6d1c356a4062/pyasn1_modules-0.2.5-py2.py3-none-any.whl (74kB)
Collecting cachetools>=2.0.0 (from google-auth~=1.6->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/2f/a6/30b0a0bef12283e83e58c1d6e7b5aabc7acfc4110df81a4471655d33e704/cachetools-3.1.1-py2.py3-none-any.whl
Collecting rsa>=3.1.4 (from google-auth~=1.6->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/02/e5/38518af393f7c214357079ce67a317307936896e961e35450b70fad2a9cf/rsa-4.0-py2.py3-none-any.whl
Collecting pyasn1<0.5.0,>=0.4.1 (from pyasn1-modules>=0.2.1->google-auth~=1.6->-r .terraform/modules/project-prod-morgantep/terraform-google-modules-terraform-google-project-factory-2d181ab/modules/core_project_factory/scripts/preconditions/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/7b/7c/c9386b82a25115cccf1903441bba3cbadcfae7b678a20167347fa8ded34c/pyasn1-0.4.5-py2.py3-none-any.whl (73kB)
Installing collected packages: httplib2, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, google-auth-httplib2, uritemplate, google-api-python-client
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/bin/pyrsa-decrypt'
Consider using the `--user` option or check the permissions.

I don't think installing the preconditions as part of install is really a good idea.

@aaron-lane aaron-lane added the bug Something isn't working label Jul 22, 2019
@evkuzin evkuzin self-assigned this Sep 23, 2019
@evkuzin
Copy link

evkuzin commented Sep 23, 2019

I check it and it seems like we have 2 options:

  • Remove prerequisites to README only
  • Refactoring preconditions.sh to support different operating systems. Because this error is usual for MacOS, but on Linux, it should work well

@ideasculptor
Copy link

ideasculptor commented Oct 18, 2019

This is a dupe of #289. I anticipate finishing the PR referenced in that one by end of day, providing the ability to conditionally add extra params, specifically the --user param, but it already works correctly, if someone needs a stopgap until it is merged.

@morgante
Copy link
Contributor Author

Duplicate of #289.

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

Successfully merging a pull request may close this issue.

4 participants