Rayrun
← Back to Discord Forum

"npx playwright install" timing out in CircleCI

Logan (Apryse)posted in #help-playwright
Open in Discord
Logan (Apryse)

Hello,

Yesterday, our CircleCI pipelines started failing randomly. We are running npx playwright install --with-deps chromium as one of our steps, but that command is timing out after ten minutes with the following error:

Too long with no output (exceeded 10m0s): context deadline exceeded

Daemons using outdated libraries
Which services should be restarted?

xvfb.service

We have not made any changes to our playwright version or config - this error started happening out of the blue.

Has anyone run into this and managed to resolve it?

image.png

This thread is trying to answer question "Has anyone encountered and resolved an issue where 'npx playwright install --with-deps chromium' times out in CircleCI?"

4 replies
Logan (Apryse)

Just a follow up, I ended up fixing this by adding

environment:
      NEEDRESTART_MODE: a
      DEBIAN_FRONTEND: noninteractive

To our CircleCI config. I don't know why this fixes it, but it does!

tphillips8117

DEBIAN_FRONTEND: noninteractive means it should not expect to have any user input, which it looks like it was, which was stalling the installation and failing

tphillips8117

NEEDRESTART_MODE could be set to l if you are setting DEBIAN_FRONTEND: noninteractive

image.png

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.