Skip to content

Conversation

@natikgadzhi
Copy link
Contributor

What

This PR fixes #1812 and fixed #1811. It essentially:

  • Updates playwright to 1.52.0 in Dockerfile
  • And updates playwright-chromium to 1.52 in package.json and the lockfile.

How

I've hit the same problems as @wayubi and others, and had same error output, i.e:

{"level":50,"time":1746226913038,"pid":30,"hostname":"e0ec72572b93","err":{"type":"Error","message":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝","stack":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝\n    at getBrowser (/app/build/server/chunks/index3-B2v3H0b0.js:163:34)\n    at getPlaywrightCtx (/app/build/server/chunks/index3-B2v3H0b0.js:172:45)\n    at withPage (/app/build/server/chunks/index3-B2v3H0b0.js:194:21)\n    at scrapeUrl (/app/build/server/chunks/index3-B2v3H0b0.js:795:10)\n    at /app/build/server/chunks/index3-B2v3H0b0.js:782:24\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1138:11)\n    at runWebSearch (/app/build/server/chunks/index3-B2v3H0b0.js:1719:36)\n    at textGenerationWithoutTitle (/app/build/server/chunks/_server.ts-rt34-uHp.js:496:30)\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1149:13)\n    at async textGeneration (/app/build/server/chunks/_server.ts-rt34-uHp.js:484:3)\n    at async Object.start (/app/build/server/chunks/_server.ts-rt34-uHp.js:817:26)","name":"Error"},"msg":"Error scraping webpage: https://cats.com/cat-care-for-beginners"}
{"level":50,"time":1746226913039,"pid":30,"hostname":"e0ec72572b93","err":{"type":"Error","message":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝","stack":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝\n    at getBrowser (/app/build/server/chunks/index3-B2v3H0b0.js:163:34)\n    at getPlaywrightCtx (/app/build/server/chunks/index3-B2v3H0b0.js:172:45)\n    at withPage (/app/build/server/chunks/index3-B2v3H0b0.js:194:21)\n    at scrapeUrl (/app/build/server/chunks/index3-B2v3H0b0.js:795:10)\n    at /app/build/server/chunks/index3-B2v3H0b0.js:782:24\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1138:11)\n    at runWebSearch (/app/build/server/chunks/index3-B2v3H0b0.js:1719:36)\n    at textGenerationWithoutTitle (/app/build/server/chunks/_server.ts-rt34-uHp.js:496:30)\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1149:13)\n    at async textGeneration (/app/build/server/chunks/_server.ts-rt34-uHp.js:484:3)\n    at async Object.start (/app/build/server/chunks/_server.ts-rt34-uHp.js:817:26)","name":"Error"},"msg":"Error scraping webpage: https://thevets.com/resources/pet-health-care/how-to-take-care-of-a-cat/"}
{"level":50,"time":1746226913039,"pid":30,"hostname":"e0ec72572b93","err":{"type":"Error","message":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝","stack":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝\n    at getBrowser (/app/build/server/chunks/index3-B2v3H0b0.js:163:34)\n    at getPlaywrightCtx (/app/build/server/chunks/index3-B2v3H0b0.js:172:45)\n    at withPage (/app/build/server/chunks/index3-B2v3H0b0.js:194:21)\n    at scrapeUrl (/app/build/server/chunks/index3-B2v3H0b0.js:795:10)\n    at /app/build/server/chunks/index3-B2v3H0b0.js:782:24\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1138:11)\n    at runWebSearch (/app/build/server/chunks/index3-B2v3H0b0.js:1719:36)\n    at textGenerationWithoutTitle (/app/build/server/chunks/_server.ts-rt34-uHp.js:496:30)\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1149:13)\n    at async textGeneration (/app/build/server/chunks/_server.ts-rt34-uHp.js:484:3)\n    at async Object.start (/app/build/server/chunks/_server.ts-rt34-uHp.js:817:26)","name":"Error"},"msg":"Error scraping webpage: https://www.rspca.org.uk/adviceandwelfare/pets/cats"}
{"level":50,"time":1746226913039,"pid":30,"hostname":"e0ec72572b93","err":{"type":"Error","message":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝","stack":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝\n    at getBrowser (/app/build/server/chunks/index3-B2v3H0b0.js:163:34)\n    at getPlaywrightCtx (/app/build/server/chunks/index3-B2v3H0b0.js:172:45)\n    at withPage (/app/build/server/chunks/index3-B2v3H0b0.js:194:21)\n    at scrapeUrl (/app/build/server/chunks/index3-B2v3H0b0.js:795:10)\n    at /app/build/server/chunks/index3-B2v3H0b0.js:782:24\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1138:11)\n    at runWebSearch (/app/build/server/chunks/index3-B2v3H0b0.js:1719:36)\n    at textGenerationWithoutTitle (/app/build/server/chunks/_server.ts-rt34-uHp.js:496:30)\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1149:13)\n    at async textGeneration (/app/build/server/chunks/_server.ts-rt34-uHp.js:484:3)\n    at async Object.start (/app/build/server/chunks/_server.ts-rt34-uHp.js:817:26)","name":"Error"},"msg":"Error scraping webpage: https://vetexplainspets.com/cat-care-tips-for-beginners/"}
{"level":50,"time":1746226913039,"pid":30,"hostname":"e0ec72572b93","err":{"type":"Error","message":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝","stack":"browserType.launch: Executable doesn't exist at /home/user/.cache/ms-playwright/chromium_headless_shell-1169/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝\n    at getBrowser (/app/build/server/chunks/index3-B2v3H0b0.js:163:34)\n    at getPlaywrightCtx (/app/build/server/chunks/index3-B2v3H0b0.js:172:45)\n    at withPage (/app/build/server/chunks/index3-B2v3H0b0.js:194:21)\n    at scrapeUrl (/app/build/server/chunks/index3-B2v3H0b0.js:795:10)\n    at /app/build/server/chunks/index3-B2v3H0b0.js:782:24\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1138:11)\n    at runWebSearch (/app/build/server/chunks/index3-B2v3H0b0.js:1719:36)\n    at textGenerationWithoutTitle (/app/build/server/chunks/_server.ts-rt34-uHp.js:496:30)\n    at mergeAsyncGenerators (/app/build/server/chunks/index3-B2v3H0b0.js:1149:13)\n    at async textGeneration (/app/build/server/chunks/_server.ts-rt34-uHp.js:484:3)\n    at async Object.start (/app/build/server/chunks/_server.ts-rt34-uHp.js:817:26)","name":"Error"},"msg":"Error scraping webpage: https://www.catster.com/cat-health-care/how-to-take-care-of-a-cat/"}

I've built the images locally and realized that the version of chromium that it's trying to run is indeed not there.

I think this is because we pin npm install playwright but then run unpinned npx playwright install, but either way — aligning versions manually solves this.

QA

I did verify this locally and on my deployment.

@wayubi
Copy link

wayubi commented May 10, 2025

I've tested and confirmed that this PR fixes the problem.

image

My son uses this for basic school research, and the web search fixed in this PR helps a lot. Please merge it in. Thanks.

@gmanskibiditoilet
Copy link

I've tested and confirmed that this PR fixes the problem.

image

My son uses this for basic school research, and the web search fixed in this PR helps a lot. Please merge it in. Thanks.

thanks for confirming that this PR works. now its time to merge it anyway.

@nsarrazin nsarrazin merged commit 495869a into huggingface:main May 12, 2025
5 checks passed
Copy link
Contributor

@nsarrazin nsarrazin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! Looks great, merging it now.

maksym-work pushed a commit to siilats/chat-ui that referenced this pull request Jul 2, 2025
Matsenas pushed a commit to Matsenas/chat-ui that referenced this pull request Jul 4, 2025
Matsenas pushed a commit to Matsenas/chat-ui that referenced this pull request Jul 4, 2025
gary149 pushed a commit to gary149/chat-ui that referenced this pull request Aug 29, 2025
gary149 pushed a commit to gary149/chat-ui that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web search feature fails again Web Search with SearxNG fails due to failure to scrape websites that were returned by SearxNG

4 participants