|-原 Browser was not found at the configured executablePath (/root/.cache/puppeteer/chrome
Browser was not found at the configured executablePath (/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome) 一种情况是执行路径的文件不存在,还有就是执行路径的文件不限制执行
ls ~/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome
/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome
说明执行文件存在,在laravel的php的测试文件里用
dd(
is_executable('/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome')
); ,运行的报错是
is_executable(): open_basedir restriction in effect. File(/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome) is not within the allowed path(s): (/www/wwwroot/zimu/:/tmp/) 说明不允许执行
[2026-06-15 16:21:52] production.ERROR: Douban poster parse failed {"output":"Error: Browser was not found at the configured executablePath (/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome)
at ChromeLauncher.launch (file:///www/wwwroot/zimu/node_modules/puppeteer-core/lib/puppeteer/node/BrowserLauncher.js:60:19)...