question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Go task failed with an error: Error: There was an error when attempting to execute the process '/opt/hostedtoolcache/go/1.13.3/x64/bin/go'. This may indicate the process failed to start. Error: spawn /opt/hostedtoolcache/go/1.13.3/x64/bin/go ENOENT

See original GitHub issue

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: here
go get list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises? Azure Pipelines

  • Agent - Hosted or Private: Hosted

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version: Ubuntu 1604

Issue Description

[Include task name(s), screenshots and any other relevant details] It was working before the 1/1/2020…

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

##[section]Starting: go get
==============================================================================
Task         : Go
Description  : Get, build, or test a Go application, or run a custom Go command
Version      : 0.3.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/go
==============================================================================
[command]/opt/hostedtoolcache/go/1.13.3/x64/bin/go get -v -t -d all
##[error]The Go task failed with an error: Error: There was an error when attempting to execute the process '/opt/hostedtoolcache/go/1.13.3/x64/bin/go'. This may indicate the process failed to start. Error: spawn /opt/hostedtoolcache/go/1.13.3/x64/bin/go ENOENT
##[section]Finishing: go get

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

[Insert error from the logs here for a quick overview]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
xtezcommented, Dec 24, 2020

@tejasd1990 I totally forgot I can cut an internal ticket. Already being investigated by RM azure integration team. Sorry!

Issue persists, reopening will help users to track the progress.

2020-12-24T23:12:21.0649124Z ##[section]Starting: Go Unit Testing
2020-12-24T23:12:21.0659997Z ==============================================================================
2020-12-24T23:12:21.0660341Z Task         : Go
2020-12-24T23:12:21.0660829Z Description  : Get, build, or test a Go application, or run a custom Go command
2020-12-24T23:12:21.0661128Z Version      : 0.3.2
2020-12-24T23:12:21.0661390Z Author       : Microsoft Corporation
2020-12-24T23:12:21.0661727Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/go
2020-12-24T23:12:21.0662129Z ==============================================================================
2020-12-24T23:12:21.2117838Z [command]/usr/bin/go test -v -cover
2020-12-24T23:12:21.2405140Z ##[error]The Go task failed with an error: Error: There was an error when attempting to execute the process '/usr/bin/go'. This may indicate the process failed to start. Error: spawn /usr/bin/go ENOENT
2020-12-24T23:12:21.2426441Z ##[section]Finishing: Go Unit Testing
2reactions
a8reecommented, Feb 26, 2020

Also seeing this issue today

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terraform fail to spawn when used in a deployment job
"Error: There was an error when attempting to execute the process 'C:\hostedtoolcache\windows\terraform\0.12.7\x64\terraform.exe'. This may indicate the ...
Read more >
spawn terraform ENOENT when running Terraform in Azure ...
This may indicate the process failed to start. Error : spawn /opt/hostedtoolcache/terraform/1.0.10/x64/terraform ENOENT. Finishing: init ...
Read more >
Error: spawn terraform ENOENT during Azure Pipeline ...
Turns out the working directory path was incorrect, as the directory structure had been changed. Changing all the named working directories ...
Read more >
Troubleshoot CI-CD, Azure DevOps, and GitHub issues
Use different methods to troubleshoot CI-CD issues in Azure Data Factory and Synapse Analytics.
Read more >
Azure Devops init going wrong - Terraform - HashiCorp Discuss
But all of a sudden we are getting these errors in the Init phase. Initializing the backend... ╷ │ Error: Invalid backend configuration...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found