info There appears to be trouble with you network connection
jauggy opened this issue · comments
Before opening an issue please read this.
Are you reporting a bug or a feature request ?
- [ x] Bug
- Feature request
Description
Expected behavior
Install packages
Reproduction
I created a pipeline in Azure Devops.
I added this repo: https://gitlab.com/joshua.augustinus/vc-portal-coreui.git
I add the following tasks to the agent job:
- Yarn Tool Installer (I didn't change any settings)
- Yarn task (I didn't change any settings)
MANDATORY FOR BUGS: Insert debug trace
Raw logs:
https://dev.azure.com/jauggy0098/a98a4eb7-6a58-4ff9-b696-10872cb62235/_apis/build/builds/5/logs/12
System information
VSTS or TFS:
- [ x] VSTS
- TFS
Agent:
- [x ] Hosted
- Custom
OS:
- [x ] Windows
- Mac
- Linux
Yarn version:
1.x
Node version:
Node version*
Does this mean I just need to contact Azure support?
OK I think I may have solved the issue. You need to add the following argument when using yarn task:
install --network-timeout 1000000
@jauggy Can confirm. I saw the same issue with Microsoft hosted agents in DevOps. Even when using their own Artifacts registry. Increasing the timeout has prevented those issues.
OK I think I may have solved the issue. You need to add the following argument when using yarn task:
install --network-timeout 1000000
Can confirm too. yarn install succeeded at worst around 7 minutes.
for me it seems only happen on Windows agent. Ubuntu agent is much faster.