Skip to content

playwright Failed to download firefox #33527

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

Closed
Tratcher opened this issue Jun 14, 2021 · 9 comments
Closed

playwright Failed to download firefox #33527

Tratcher opened this issue Jun 14, 2021 · 9 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components feature-playwright 🎭 This issue is related to Playwright E2E Project Template Tests task test-failure
Milestone

Comments

@Tratcher
Copy link
Member

Error Message

  Failed to install browsers
EXEC : error : Failed to download firefox, caused by [D:\workspace\_work\1\s\src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Failed to download firefox, caused by
EXEC : error : connect ETIMEDOUT 13.107.246.70:443 [D:\workspace\_work\1\s\src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) connect ETIMEDOUT 13.107.246.70:443
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
D:\workspace\_work\1\s\.packages\playwrightsharp\0.192.0\build\netstandard2.0\PlaywrightSharp.targets(20,5): error MSB3073: The command "playwright.cmd install" exited with code 1. [D:\workspace\_work\1\s\src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj]
##[error].packages\playwrightsharp\0.192.0\build\netstandard2.0\PlaywrightSharp.targets(20,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "playwright.cmd install" exited with code 1.

Build

https://dev.azure.com/dnceng/public/_build/results?buildId=1184309&view=logs&j=6c33d704-163a-5170-38fa-caa7bc99f17c&t=4a2ac175-72f0-54eb-c8b6-eb1e5d86c7d5&l=1911

@Tratcher Tratcher added test-failure area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Jun 14, 2021
@javiercn javiercn added area-blazor Includes: Blazor, Razor Components and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Jun 15, 2021
@javiercn
Copy link
Member

@HaoK do you think we can apply the recommendations here and here to avoid downloading the browsers from external sources when possible?

@HaoK
Copy link
Member

HaoK commented Jun 15, 2021

Sure i'll give it a shot

@HaoK HaoK self-assigned this Jun 15, 2021
@HaoK HaoK added this to the 6.0-preview7 milestone Jun 15, 2021
@mkArtakMSFT mkArtakMSFT modified the milestones: 6.0-preview7, 6.0-rc1 Jun 15, 2021
@ghost ghost added the Working label Jul 21, 2021
@HaoK
Copy link
Member

HaoK commented Aug 11, 2021

I ran into weird issues with azdo restore and seemingly unrelated mac os job issues trying out the azdo caching, #33557 was my PR to try out these suggestions that seemed to cache/restore the playwright binaries correctly, so it does seem promising

@HaoK HaoK removed the Working label Aug 11, 2021
@HaoK HaoK unassigned HaoK Aug 11, 2021
@HaoK HaoK modified the milestones: 6.0-rc1, Next sprint planning Aug 11, 2021
@ghost
Copy link

ghost commented Aug 11, 2021

Thanks for contacting us.

We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@TanayParikh
Copy link
Contributor

TanayParikh commented Nov 4, 2021

Another failure: https://dev.azure.com/dnceng/public/_build/results?buildId=1454787&view=logs&jobId=f43b187f-6c15-531c-a59b-e4fba4e9ed20&j=f43b187f-6c15-531c-a59b-e4fba4e9ed20&t=98a09275-a4dd-593e-c21a-1f8bea3be5b1

Note; 504 in this case

 Failed to install browsers
EXEC : error : Failed to download firefox, caused by [/Users/runner/work/1/s/src/Shared/BrowserTesting/src/Microsoft.AspNetCore.BrowserTesting.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Failed to download firefox, caused by
EXEC : error : Download failed: server returned code 504. URL: https://playwright.azureedge.net/builds/firefox/1234/firefox-mac-10.14.zip [/Users/runner/work/1/s/src/Shared/BrowserTesting/src/Microsoft.AspNetCore.BrowserTesting.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Download failed: server returned code 504. URL: https://playwright.azureedge.net/builds/firefox/1234/firefox-mac-10.14.zip
      at /Users/runner/work/1/s/artifacts/bin/Microsoft.AspNetCore.BrowserTesting/Release/net7.0/.playwright/osx/native/package/lib/install/browserFetcher.js:127:27
      at ClientRequest.requestCallback (/Users/runner/work/1/s/artifacts/bin/Microsoft.AspNetCore.BrowserTesting/Release/net7.0/.playwright/osx/native/package/lib/install/browserFetcher.js:172:13)
      at Object.onceWrapper (events.js:421:26)
      at ClientRequest.emit (events.js:314:20)
      at HTTPParser.parserOnIncomingClient (_http_client.js:601:27)
      at HTTPParser.parserOnHeadersComplete (_http_common.js:122:17)
      at TLSSocket.socketOnData (_http_client.js:474:22)
      at TLSSocket.emit (events.js:314:20)
      at addChunk (_stream_readable.js:297:12)
      at readableAddChunk (_stream_readable.js:272:9)
/Users/runner/work/1/s/.packages/playwrightsharp/0.192.0/build/netstandard2.0/PlaywrightSharp.targets(19,5): error MSB3073: The command "./playwright.sh install" exited with code 1. [/Users/runner/work/1/s/src/Shared/BrowserTesting/src/Microsoft.AspNetCore.BrowserTesting.csproj]
##[error].packages/playwrightsharp/0.192.0/build/netstandard2.0/PlaywrightSharp.targets(19,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "./playwright.sh install" exited with code 1.

@TanayParikh
Copy link
Contributor

Another one:
https://dev.azure.com/dnceng/public/_build/results?buildId=1464595&view=logs&j=6c33d704-163a-5170-38fa-caa7bc99f17c&t=4a2ac175-72f0-54eb-c8b6-eb1e5d86c7d5&s=6884a131-87da-5381-61f3-d7acc3b91d76

EXEC : error : Failed to download firefox, caused by [D:\a\_work\1\s\src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Failed to download firefox, caused by
EXEC : error : end of central directory record signature not found [D:\a\_work\1\s\src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) end of central directory record signature not found
      at D:\a\_work\1\s\artifacts\bin\Microsoft.AspNetCore.BrowserTesting\Release\net6.0\.playwright\win-x64\native\package\node_modules\yauzl\index.js:187:14
      at D:\a\_work\1\s\artifacts\bin\Microsoft.AspNetCore.BrowserTesting\Release\net6.0\.playwright\win-x64\native\package\node_modules\yauzl\index.js:631:5
      at D:\a\_work\1\s\artifacts\bin\Microsoft.AspNetCore.BrowserTesting\Release\net6.0\.playwright\win-x64\native\package\node_modules\fd-slicer\index.js:32:7
      at FSReqCallback.wrapper [as oncomplete] (fs.js:520:5)
D:\a\_work\1\s\.packages\playwrightsharp\0.192.0\build\netstandard2.0\PlaywrightSharp.targets(20,5): error MSB3073: The command "playwright.cmd install" exited with code 1. [D:\a\_work\1\s\src\Shared\BrowserTesting\src\Microsoft.AspNetCore.BrowserTesting.csproj]
##[error].packages\playwrightsharp\0.192.0\build\netstandard2.0\PlaywrightSharp.targets(20,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "playwright.cmd install" exited with code 1.

@javiercn
Copy link
Member

@TanayParikh you are doing work in this area, so I'm going to hold-off on this one until you are done, since I'm not sure what impact it'll have.

My goal with this PR is to try and make sure we follow the guidance here. If that's something you also want to tackle as part of your changes that sounds good to me.

@mkArtakMSFT mkArtakMSFT modified the milestones: 7.0-preview2, 7.0-preview5 Feb 7, 2022
@TanayParikh TanayParikh added the feature-playwright 🎭 This issue is related to Playwright E2E Project Template Tests label Feb 10, 2022
@ghost
Copy link

ghost commented May 24, 2022

Thanks for contacting us.

We're moving this issue to the .NET 7 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@TanayParikh
Copy link
Contributor

TanayParikh commented Dec 21, 2022

Closing this out now, it was resolved via #38414 's new Playwright installation mechanism.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-playwright 🎭 This issue is related to Playwright E2E Project Template Tests task test-failure
Projects
None yet
Development

No branches or pull requests

6 participants