[GH-ISSUE #292] Bugfix::zygote_host_impl_linux.cc #212

Closed
opened 2026-03-01 14:41:34 +03:00 by kerem · 1 comment
Owner

Originally created by @Solemnly on GitHub (Nov 6, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/292

Describe the bug

When I start fetching a URL, this error appears for PDF, DOM and screenshot. The other methods are working fine.

 Failed: Failed to take screenshot
[1106/092352.226771:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

It's when I run it under root. Same with acc with sudo rights.

Steps to reproduce

Fresh updated and upgraded system with a fresh installation of AB.

Screenshots or log output

[+] [2019-11-06 09:23:51] "https://example.com"
    https://example.com
    > output/archive/1573028631
      > title
      > favicon
      > wget
      > pdf
        Failed: Failed to print PDF
            [1106/092352.160369:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
        Run to see full output:
            cd /root/ArchiveBox/output/archive/1573028631;
            chromium-browser --headless "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,2000 --timeout=60000 --print-to-pdf https://example.com
      > screenshot
        Failed: Failed to take screenshot
            [1106/092352.226771:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
        Run to see full output:
            cd /root/ArchiveBox/output/archive/1573028631;
            chromium-browser --headless "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,2000 --timeout=60000 --screenshot https://example.com
      > dom
        Failed: Failed to fetch DOM
            [1106/092352.282578:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
        Run to see full output:
            cd /root/ArchiveBox/output/archive/1573028631;
            chromium-browser --headless "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,2000 --timeout=60000 --dump-dom https://example.com
      > media
      > archive_org
[√] [2019-11-06 09:23:55] Update of 1 pages complete (4.29 sec)

Software versions

  • OS: (Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-66-generic x86_64))
  • ArchiveBox version: (94dba22)
  • Python version: (Python 3.6.8)
  • Chrome version: (Chromium 78.0.3904.70)
Originally created by @Solemnly on GitHub (Nov 6, 2019). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/292 #### Describe the bug When I start fetching a URL, this error appears for PDF, DOM and screenshot. The other methods are working fine. ``` Failed: Failed to take screenshot [1106/092352.226771:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. ``` It's when I run it under root. Same with acc with sudo rights. #### Steps to reproduce Fresh updated and upgraded system with a fresh installation of AB. #### Screenshots or log output ``` [+] [2019-11-06 09:23:51] "https://example.com" https://example.com > output/archive/1573028631 > title > favicon > wget > pdf Failed: Failed to print PDF [1106/092352.160369:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Run to see full output: cd /root/ArchiveBox/output/archive/1573028631; chromium-browser --headless "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,2000 --timeout=60000 --print-to-pdf https://example.com > screenshot Failed: Failed to take screenshot [1106/092352.226771:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Run to see full output: cd /root/ArchiveBox/output/archive/1573028631; chromium-browser --headless "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,2000 --timeout=60000 --screenshot https://example.com > dom Failed: Failed to fetch DOM [1106/092352.282578:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Run to see full output: cd /root/ArchiveBox/output/archive/1573028631; chromium-browser --headless "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36" --window-size=1440,2000 --timeout=60000 --dump-dom https://example.com > media > archive_org [√] [2019-11-06 09:23:55] Update of 1 pages complete (4.29 sec) ``` #### Software versions - OS: (Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-66-generic x86_64)) - ArchiveBox version: (94dba22) - Python version: (Python 3.6.8) - Chrome version: (Chromium 78.0.3904.70)
kerem closed this issue 2026-03-01 14:41:34 +03:00
Author
Owner

@pirate commented on GitHub (Nov 6, 2019):

The solution is to not run ArchiveBox as root.

https://github.com/pirate/ArchiveBox/wiki/Security-Overview#do-not-run-as-root

<!-- gh-comment-id:550507588 --> @pirate commented on GitHub (Nov 6, 2019): The solution is to not run ArchiveBox as root. https://github.com/pirate/ArchiveBox/wiki/Security-Overview#do-not-run-as-root
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#212
No description provided.