title: After a few days, I can no longer start Puppeteer until I restart the server
body: <ul>
  <li>Puppeteer version: 10.2.0</li>
  <li>Platform / OS version: Ubuntu 20.04.3 LTS aarch64</li>
  <li>Node.js version: v.14.17.6</li>
  <li>Happens on any URL.</li>
  </ul>
  <p>This is my test script:</p>
  <p><em>bug.hr/homepage.js</em></p>
  <pre><code>const puppeteer = require('puppeteer-extra');
  
  (async () =&gt; {
      const eventPage = `https://www.bug.hr/`;
      const browser = await puppeteer.launch({
          headless: true,
          dumpio: true
      });
      const page = await browser.newPage();
      await page.goto(eventPage, {
          waitUntil: 'domcontentloaded'
      });
      console.log(&quot;TITLE: &quot;, await page.evaluate(() =&gt; document.title));
      await browser.close();
  })();
  </code></pre>
  <p>That should start Puppeteer (and it does after I restart the server), instead, I get this:</p>
  <pre><code>ubuntu@ip-123-45-67-89:/var/www/tests$ env DEBUG=&quot;puppeteer:*&quot; node bug.hr/homepage.js 
    puppeteer:launcher Calling /usr/bin/chromium-browser --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=Translate --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --enable-blink-features=IdleDetection --headless --hide-scrollbars --mute-audio about:blank --remote-debugging-port=0 --user-data-dir=/tmp/puppeteer_dev_chrome_profile-fvYjAc +0ms
  
  DevTools listening on ws://127.0.0.1:42943/devtools/browser/5a94e4ce-f053-4e83-afdb-f44731fc185e
  [1109/015336.602361:ERROR:devtools_http_handler.cc(292)] Error writing DevTools active port to file
  [1109/015336.608627:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  [1109/015336.612599:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015336.613361:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015336.613265:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
    puppeteer:protocol:SEND ► {&quot;method&quot;:&quot;Target.setDiscoverTargets&quot;,&quot;params&quot;:{&quot;discover&quot;:true},&quot;id&quot;:1} +0ms
    puppeteer:protocol:RECV ◀ {&quot;method&quot;:&quot;Target.targetCreated&quot;,&quot;params&quot;:{&quot;targetInfo&quot;:{&quot;targetId&quot;:&quot;17591FCF231B151133561BADC2D1A20C&quot;,&quot;type&quot;:&quot;page&quot;,&quot;title&quot;:&quot;&quot;,&quot;url&quot;:&quot;about:blank&quot;,&quot;attached&quot;:false,&quot;canAccessOpener&quot;:false,&quot;browserContextId&quot;:&quot;3F175AC4C3C999720E0FFEFA74971974&quot;}}} +0ms
    puppeteer:protocol:RECV ◀ {&quot;method&quot;:&quot;Target.targetCreated&quot;,&quot;params&quot;:{&quot;targetInfo&quot;:{&quot;targetId&quot;:&quot;3066064f-b08d-429f-af6c-99c828566f63&quot;,&quot;type&quot;:&quot;browser&quot;,&quot;title&quot;:&quot;&quot;,&quot;url&quot;:&quot;&quot;,&quot;attached&quot;:false,&quot;canAccessOpener&quot;:false}}} +1ms
    puppeteer:protocol:RECV ◀ {&quot;method&quot;:&quot;Target.targetCreated&quot;,&quot;params&quot;:{&quot;targetInfo&quot;:{&quot;targetId&quot;:&quot;7b188175-60bc-4608-b6a2-a83ed34381b0&quot;,&quot;type&quot;:&quot;browser&quot;,&quot;title&quot;:&quot;&quot;,&quot;url&quot;:&quot;&quot;,&quot;attached&quot;:true,&quot;canAccessOpener&quot;:false}}} +0ms
    puppeteer:protocol:RECV ◀ {&quot;id&quot;:1,&quot;result&quot;:{}} +0ms
    puppeteer:protocol:SEND ► {&quot;method&quot;:&quot;Target.createTarget&quot;,&quot;params&quot;:{&quot;url&quot;:&quot;about:blank&quot;},&quot;id&quot;:2} +4ms
    puppeteer:protocol:RECV ◀ {&quot;method&quot;:&quot;Target.targetCreated&quot;,&quot;params&quot;:{&quot;targetInfo&quot;:{&quot;targetId&quot;:&quot;BD017C91F9A3803C4D1204C1F648B61E&quot;,&quot;type&quot;:&quot;page&quot;,&quot;title&quot;:&quot;&quot;,&quot;url&quot;:&quot;&quot;,&quot;attached&quot;:false,&quot;canAccessOpener&quot;:false,&quot;browserContextId&quot;:&quot;3F175AC4C3C999720E0FFEFA74971974&quot;}}} +4ms
    puppeteer:protocol:RECV ◀ {&quot;id&quot;:2,&quot;result&quot;:{&quot;targetId&quot;:&quot;BD017C91F9A3803C4D1204C1F648B61E&quot;}} +0ms
  [1109/015336.626616:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
    puppeteer:protocol:RECV ◀ {&quot;method&quot;:&quot;Target.targetCrashed&quot;,&quot;params&quot;:{&quot;targetId&quot;:&quot;17591FCF231B151133561BADC2D1A20C&quot;,&quot;status&quot;:&quot;crashed&quot;,&quot;errorCode&quot;:133}} +187ms
  [1109/015336.827392:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015336.827421:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 1 time(s)
  [1109/015336.834997:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  [1109/015336.838813:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015336.839148:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
    puppeteer:protocol:RECV ◀ {&quot;method&quot;:&quot;Target.targetCrashed&quot;,&quot;params&quot;:{&quot;targetId&quot;:&quot;BD017C91F9A3803C4D1204C1F648B61E&quot;,&quot;status&quot;:&quot;crashed&quot;,&quot;errorCode&quot;:133}} +49ms
  [1109/015337.039942:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015337.039973:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 2 time(s)
  [1109/015337.047216:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  [1109/015337.051080:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.051332:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.248703:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015337.248732:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 3 time(s)
  [1109/015337.255892:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  [1109/015337.259819:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.260091:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.454161:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015337.454191:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 4 time(s)
  [1109/015337.461741:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  [1109/015337.465935:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.466181:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.666248:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015337.666276:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 5 time(s)
  [1109/015337.673524:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  [1109/015337.677539:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.677807:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.880581:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015337.880610:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 6 time(s)
  [1109/015337.882645:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is 
  [1109/015337.884399:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015337.884679:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015338.076122:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015338.076151:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 7 time(s)
  [1109/015338.078253:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is 
  [1109/015338.079942:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015338.080236:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015338.268891:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015338.268920:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 8 time(s)
  [1109/015338.271026:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is 
  [1109/015338.272679:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015338.272975:FATAL:sandbox_bpf.cc(283)] Kernel refuses to turn on BPF filters
  [1109/015338.461377:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=133
  [1109/015338.461406:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 9 time(s)
  [1109/015338.461419:FATAL:gpu_data_manager_impl_private.cc(417)] GPU process isn't usable. Goodbye.
  </code></pre>
  <p>I can't reproduce it at will. This happens after the server has been running for a week or two weeks.
  After I restart the server, it works again.</p>
  <p>I believe the culprit is <code>Kernel refuses to turn on BPF filters</code>, from the logs.</p>
  <p>Source of the error: <a href="https://chromium.googlesource.com/chromium/src/+/lkgr/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#282" rel="nofollow noreferrer">https://chromium.googlesource.com/chromium/src/+/lkgr/sandbox/linux/seccomp-bpf/sandbox_bpf.cc#282</a></p>
  <p>Can be fixed by passing <code>--disable-seccomp-filter-sandbox</code> argument to Chrome, which introduces security concerns, as it disables Layer-2 of the Chrome sandbox (<a href="https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux/sandboxing.md#the-sandbox-1" rel="nofollow noreferrer">https://chromium.googlesource.com/chromium/src/+/HEAD/docs/linux/sandboxing.md#the-sandbox-1</a>)</p>
  <p><code>/usr/bin/chromium-browser --product-version</code> gives 95.0.4638.69</p>
  <p>It also happens when I run <code>apt update &amp;&amp; apt upgrade</code>:</p>
  <pre><code>/usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524/usr/bin/mandb:
  can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter: Unknown error 524
  /usr/bin/mandb: can't load seccomp filter/usr/bin/mandb: can't load seccomp filter: Unknown error 524: Unknown error 524
  </code></pre>
  <p>This wasn't happening on Ubuntu-amd64 (now it's Arm).</p>
  <p>Any ideas?</p>
  <p>Thank you</p>