[GH-ISSUE #429] Bugfix: chromium open multiple tabs is only supported when remote debugging is enabled #288

Closed
opened 2026-03-01 14:42:07 +03:00 by kerem · 3 comments
Owner

Originally created by @arturi on GitHub (Aug 8, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/429

Thank you for the awesome work on ArchiveBox!

Describe the bug

Getting the below error on archivebox add when trying to make pdf/screenshot with chromium. Additionally getting xdg-settings: not found.

Failed:
             Failed to save PDF
            /usr/bin/chromium-browser: 12: xdg-settings: not found
            [0808/101304.953382:ERROR:headless_shell.cc(174)] Open multiple tabs is only supported when remote debugging is enabled.
        Run to see full output:
            cd /mnt/disk/archivebox/archive/1596881575;
            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

Steps to reproduce

Ran ArchiveBox as archivebox add https://example.com

Software versions

  • OS: Ubuntu 20.04.1 LTS
  • ArchiveBox version: ArchiveBox v0.4.11
  • Python version: Python 3.8.2
  • Chrome version: Chromium 84.0.4147.105 snap
Originally created by @arturi on GitHub (Aug 8, 2020). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/429 Thank you for the awesome work on ArchiveBox! #### Describe the bug Getting the below error on `archivebox add` when trying to make pdf/screenshot with chromium. Additionally getting `xdg-settings: not found`. ```sh Failed: Failed to save PDF /usr/bin/chromium-browser: 12: xdg-settings: not found [0808/101304.953382:ERROR:headless_shell.cc(174)] Open multiple tabs is only supported when remote debugging is enabled. Run to see full output: cd /mnt/disk/archivebox/archive/1596881575; 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 ``` #### Steps to reproduce Ran ArchiveBox as `archivebox add https://example.com` #### Software versions - OS: Ubuntu 20.04.1 LTS - ArchiveBox version: ArchiveBox v0.4.11 - Python version: Python 3.8.2 - Chrome version: Chromium 84.0.4147.105 snap
kerem 2026-03-01 14:42:07 +03:00
Author
Owner

@pirate commented on GitHub (Aug 10, 2020):

Can you run these commands manually and post the output:

xdg-mime query default x-scheme-handler/https
cd /mnt/disk/archivebox/archive/1596881575
chromium-browser --headless --timeout=60000 --print-to-pdf 'https://example.com'
chromium-browser --headless --timeout=60000 --print-to-pdf=output.pdf 'https://example.com'
<!-- gh-comment-id:671143294 --> @pirate commented on GitHub (Aug 10, 2020): Can you run these commands manually and post the output: ```bash xdg-mime query default x-scheme-handler/https cd /mnt/disk/archivebox/archive/1596881575 chromium-browser --headless --timeout=60000 --print-to-pdf 'https://example.com' chromium-browser --headless --timeout=60000 --print-to-pdf=output.pdf 'https://example.com' ``` - https://askubuntu.com/questions/18418/how-to-set-which-application-is-launched-by-xdg-open - https://stackoverflow.com/questions/47790308/chrome-headless-in-ubuntu
Author
Owner

@zachscheider commented on GitHub (Aug 11, 2020):

I was also getting the 'multiple tabs' error with that same chromium snap version. It impacted screenshots and DOM dumps too.

Updating to edge fixed it for me.
sudo snap refresh --edge chromium

https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1887795

<!-- gh-comment-id:672167690 --> @zachscheider commented on GitHub (Aug 11, 2020): I was also getting the 'multiple tabs' error with that same chromium snap version. It impacted screenshots and DOM dumps too. Updating to edge fixed it for me. `sudo snap refresh --edge chromium` https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1887795
Author
Owner

@pirate commented on GitHub (Aug 11, 2020):

Since this can be fixed by upgrading chromium, I'm going to close it here. Thanks for reporting this and posting the link to the fix!

<!-- gh-comment-id:672250922 --> @pirate commented on GitHub (Aug 11, 2020): Since this can be fixed by upgrading chromium, I'm going to close it here. Thanks for reporting this and posting the link to the fix!
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#288
No description provided.