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

[Terraform task] Error: Cannot find module 'azure-pipelines-task-lib/task' #657

Closed
johnburns320 opened this issue Jul 26, 2019 · 13 comments
Closed
Assignees
Labels
Area: Release Issues tracked by Release area

Comments

@johnburns320
Copy link

Pool: Hosted Ubuntu 1604

##[section]Starting: Install Terraform 0.11.14
==============================================================================
Task         : Terraform tool installer
Description  : Find in cache or download a specific version of Terraform and prepend it to the PATH
Version      : 0.0.15
Author       : Microsoft Corporation
Help         : [Learn more about this task](https://aka.ms/AA5jd97)
==============================================================================
module.js:471
    throw err;
    ^

Error: Cannot find module 'azure-pipelines-task-lib/task'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/vsts/work/_tasks/TerraformInstaller_a4789e5d-f6e8-431f-add9-379d640a883c/0.0.15/src/index.js:11:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
##[error]Exit code 1 returned from process: file name '/home/vsts/agents/2.154.3/externals/node/bin/node', arguments '"/home/vsts/work/_tasks/TerraformInstaller_a4789e5d-f6e8-431f-add9-379d640a883c/0.0.15/src/index.js"'.
##[section]Finishing: Install Terraform 0.11.14
@brennaman
Copy link

I've got the same issue.

@chshrikh chshrikh added the Area: Release Issues tracked by Release area label Jul 29, 2019
@Lovakumar Lovakumar assigned kmkumaran and unassigned omeshp and Lovakumar Jul 29, 2019
@bryceafoster
Copy link

bryceafoster commented Jul 30, 2019

I have the same issue when running the Terraform Tool Installer in Pipelines.

@mrptsai
Copy link

mrptsai commented Jul 31, 2019

I have the same issue

@ssarwa
Copy link

ssarwa commented Jul 31, 2019

I am running into the same issue. Tried all the hosted agents

@hawk3yez
Copy link

Same issue and I've tried on both Hosted/Private agent pools.

@ausfestivus
Copy link

This issue has now appeared on the Developer Forums https://developercommunity.visualstudio.com/content/problem/670951/terraform-tool-installer-not-working.html.

Adding cross references.

@RoshanKumarMicrosoft
Copy link
Contributor

We had already identified the issue .. We are fixing it.

@ausfestivus
Copy link

We had already identified the issue .. We are fixing it.

Thanks for the update @RoshanKumarMicrosoft

@ausfestivus
Copy link

Morning @RoshanKumarMicrosoft

Can we get an indicative timeline on this? Ive got pipelines to create that need to use the task and I'm unable to do so because of this issue.

@ausfestivus
Copy link

For everyone here, I just ran a pipeline and the Terraform Install task succeeded.
Perhaps it's already fixed?

@johnburns320
Copy link
Author

I re-deployed and got a successful result. Is there a commit that can be associated with this fix?

@johnburns320
Copy link
Author

I'm good with this being closed. I'd prefer the maintainers to do so referencing an appropriate commit.

@RoshanKumarMicrosoft
Copy link
Contributor

Fixed in this Commit and released new extension version. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Release Issues tracked by Release area
Projects
None yet
Development

No branches or pull requests