You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Uncaught RuntimeException: Chrome process stopped before startup completed. Additional info: Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitte
#603
Open
dev-mediakojo opened this issue
Feb 9, 2024
· 2 comments
Can't get it to work. It keeps failing when attempting to create a new browser. I tested with /usr/bin/chromium and /usr/bin/google-chrome-stable. Error is persistent.
Here is some additional Info:
Server debian 12.4
PHP 8.2.15
Chromium 121.0.6167.160 built on Debian 12.4, running on Debian 12.4
Google Chrome 121.0.6167.160
Can't get it to work. It keeps failing when attempting to create a new browser. I tested with /usr/bin/chromium and /usr/bin/google-chrome-stable. Error is persistent.
use HeadlessChromium\BrowserFactory;
$browserFactory = new BrowserFactory('/usr/bin/chromium');
$browser = $browserFactory->createBrowser(); ([
'noSandbox' => true,
// 'headless' => true,
//'debugLogger' => 'php://stdout'
]);
Fatal error: Uncaught RuntimeException: Chrome process stopped before startup completed. Additional info: Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted [0209/111619.706814:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Operation not permitted (1) in /var/www/vhosts/mydomain.com/httpdocs/src/Browser/BrowserProcess.php:427 Stack trace: #0 /var/www/vhosts/mydomain.com/httpdocs/src/Utils.php(60): HeadlessChromium\Browser\BrowserProcess->HeadlessChromium\Browser{closure}() #1 /var/www/vhosts/mydomain.com/httpdocs/src/Browser/BrowserProcess.php(467): HeadlessChromium\Utils::tryWithTimeout() #2 /var/www/vhosts/mydomain.com/httpdocs/src/Browser/BrowserProcess.php(138): HeadlessChromium\Browser\BrowserProcess->waitForStartup() #3 /var/www/vhosts/mydomain.com/httpdocs/src/BrowserFactory.php(83): HeadlessChromium\Browser\BrowserProcess->start() #4 /var/www/vhosts/mydomain.com/httpdocs/index.php(15): HeadlessChromium\BrowserFactory->createBrowser() #5 {main} thrown in /var/www/vhosts/mydomain.com/httpdocs/src/Browser/BrowserProcess.php on line 427
The text was updated successfully, but these errors were encountered: