🎥 Make videos programmatically with React
troubleshooting page for "failed to launch browser process"
Jonny Burger89a35c9dc221
diff --git a/packages/docs/docs/troubleshooting/browser-launch.mdx b/packages/docs/docs/troubleshooting/browser-launch.mdxnew file mode 100644index 0000000000..16a01f3e0e--- /dev/null+++ b/packages/docs/docs/troubleshooting/browser-launch.mdx@@ -0,0 +1,30 @@+---+image: /generated/articles-docs-troubleshooting-browser-launch.png+title: Failed to launch the browser process+crumb: "Troubleshooting"+---++If you get an error message:++```+Failed to launch the browser process!++TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md // or a URL pointing to this page+```++it means the browser was not able to start. The most common reasons are++## Missing shared libraries++Visit the [installation docs](/docs/) and make sure you installed the libraries outlined in "Additional information for Linux users".++## Wrong OS or architecture++If a x64 browser binary is run on arm64 or vice versa, you will get this error.+If the browser was compiled for a different OS or Linux distribution, it might also be incompatible.+Make sure you are using the correct binary for your OS and architecture.++## Debug using `--log=verbose`++Add the `--log=verbose` flag to the `npx remotion render` command.+This will log all browser process output, helping you to debug the issue.diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex b6923786ca..c71525aa49 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -785,6 +785,7 @@ module.exports = {"troubleshooting/timed-out-page-function","troubleshooting/delay-render-proxy","troubleshooting/bundling-bundle",+ "troubleshooting/browser-launch",],},{diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex c12314c7f3..3c3a5b827e 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -996,7 +996,7 @@ export const articles = [{id: "functions",title: "npx remotion lambda functions",- relativePath: "docs/lambda/cli/functions.md",+ relativePath: "docs/lambda/cli/functions.mdx",compId: "articles-docs-lambda-cli-functions",crumb: "Lambda CLI Reference",},@@ -1101,7 +1101,7 @@ export const articles = [{id: "deployfunction",title: "deployFunction()",- relativePath: "docs/lambda/deployfunction.md",+ relativePath: "docs/lambda/deployfunction.mdx",compId: "articles-docs-lambda-deployfunction",crumb: "Lambda API",},@@ -1325,7 +1325,7 @@ export const articles = [{id: "runtime",title: "Runtime",- relativePath: "docs/lambda/runtime.md",+ relativePath: "docs/lambda/runtime.mdx",compId: "articles-docs-lambda-runtime",crumb: "Lambda",},@@ -3165,6 +3165,13 @@ export const articles = [compId: "articles-docs-troubleshooting-broken-fast-refresh",crumb: "Troubleshooting",},+ {+ id: "troubleshooting/browser-launch",+ title: "Failed to launch the browser process",+ relativePath: "docs/troubleshooting/browser-launch.mdx",+ compId: "articles-docs-troubleshooting-browser-launch",+ crumb: "Troubleshooting",+ },{id: "troubleshooting/bundling-bundle",title: "Calling bundle() in bundled code",@@ -3385,7 +3392,7 @@ export const articles = [{id: "zod-types/index",title: "@remotion/zod-types",- relativePath: "docs/zod-types/index.md",+ relativePath: "docs/zod-types/index.mdx",compId: "articles-docs-zod-types-index",crumb: "Schema",},diff --git a/packages/docs/static/generated/articles-docs-troubleshooting-browser-launch.png b/packages/docs/static/generated/articles-docs-troubleshooting-browser-launch.pngnew file mode 100644index 0000000000..64cc60864bBinary files /dev/null and b/packages/docs/static/generated/articles-docs-troubleshooting-browser-launch.png differdiff --git a/packages/renderer/src/browser/BrowserRunner.ts b/packages/renderer/src/browser/BrowserRunner.tsindex d99134d199..1e69567e4b 100644--- a/packages/renderer/src/browser/BrowserRunner.ts+++ b/packages/renderer/src/browser/BrowserRunner.ts@@ -280,9 +280,7 @@ function waitForWSEndpoint('Failed to launch the browser process!',error ? error.message : null,stderr,- '',- 'TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md',- '',+ 'Troubleshooting: https://remotion.dev/docs/troubleshooting/browser-launch',].filter(truthy).join('\n'),