[GH-ISSUE #881] Bug: Disable archive method selection in UI if method is disabled via config or not installed #2056

Open
opened 2026-03-01 17:56:06 +03:00 by kerem · 2 comments
Owner

Originally created by @thenktor on GitHub (Oct 25, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/881

Describe the bug

I've disabled most archive methods (e.g. SAVE_MERCURY=False), but when adding a new link to the archive the archive method selection field still shows the disabled methods. You can select them, but of course they just do not work.

Actually I'd expect, that disabled methods do not appear in this list.

Screenshots or log output

archive-methods

ArchiveBox version

ArchiveBox v0.6.2
Cpython Linux Linux-5.13.19_1-x86_64-with-glibc2.28 x86_64
IN_DOCKER=True DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep

[i] Dependency versions:
 √  ARCHIVEBOX_BINARY     v0.6.2          valid     /usr/local/bin/archivebox                                                   
 √  PYTHON_BINARY         v3.9.5          valid     /usr/local/bin/python3.9                                                    
 √  DJANGO_BINARY         v3.1.10         valid     /usr/local/lib/python3.9/site-packages/django/bin/django-admin.py           
 √  CURL_BINARY           v7.64.0         valid     /usr/bin/curl                                                               
 -  WGET_BINARY           -               disabled  /usr/bin/wget                                                               
 √  NODE_BINARY           v15.14.0        valid     /usr/bin/node                                                               
 √  SINGLEFILE_BINARY     v0.3.16         valid     /node/node_modules/single-file/cli/single-file                              
 -  READABILITY_BINARY    -               disabled  /node/node_modules/readability-extractor/readability-extractor              
 -  MERCURY_BINARY        -               disabled  /node/node_modules/@postlight/mercury-parser/cli.js                         
 -  GIT_BINARY            -               disabled  /usr/bin/git                                                                
 -  YOUTUBEDL_BINARY      -               disabled  /usr/local/bin/youtube-dl                                                   
 √  CHROME_BINARY         v90.0.4430.93   valid     /usr/bin/chromium                                                           
 √  RIPGREP_BINARY        v0.10.0         valid     /usr/bin/rg                                                                 

[i] Source-code locations:
 √  PACKAGE_DIR           22 files        valid     /app/archivebox                                                             
 √  TEMPLATES_DIR         3 files         valid     /app/archivebox/templates                                                   
 -  CUSTOM_TEMPLATES_DIR  -               disabled                                                                              

[i] Secrets locations:
 -  CHROME_USER_DATA_DIR  -               disabled                                                                              
 -  COOKIES_FILE          -               disabled                                                                              

[i] Data locations:
 √  OUTPUT_DIR            5 files         valid     /data                                                                       
 √  SOURCES_DIR           9 files         valid     ./sources                                                                   
 √  LOGS_DIR              1 files         valid     ./logs                                                                      
 √  ARCHIVE_DIR           6 files         valid     ./archive                                                                   
 √  CONFIG_FILE           283.0 Bytes     valid     ./ArchiveBox.conf                                                           
 √  SQL_INDEX             236.0 KB        valid     ./index.sqlite3
Originally created by @thenktor on GitHub (Oct 25, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/881 #### Describe the bug I've disabled most archive methods (e.g. `SAVE_MERCURY=False`), but when adding a new link to the archive the archive method selection field still shows the disabled methods. You can select them, but of course they just do not work. Actually I'd expect, that disabled methods do not appear in this list. #### Screenshots or log output ![archive-methods](https://user-images.githubusercontent.com/371714/138683453-dc21aa8f-1dbc-4efc-a694-b5a12ee53c6d.png) #### ArchiveBox version ``` ArchiveBox v0.6.2 Cpython Linux Linux-5.13.19_1-x86_64-with-glibc2.28 x86_64 IN_DOCKER=True DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep [i] Dependency versions: √ ARCHIVEBOX_BINARY v0.6.2 valid /usr/local/bin/archivebox √ PYTHON_BINARY v3.9.5 valid /usr/local/bin/python3.9 √ DJANGO_BINARY v3.1.10 valid /usr/local/lib/python3.9/site-packages/django/bin/django-admin.py √ CURL_BINARY v7.64.0 valid /usr/bin/curl - WGET_BINARY - disabled /usr/bin/wget √ NODE_BINARY v15.14.0 valid /usr/bin/node √ SINGLEFILE_BINARY v0.3.16 valid /node/node_modules/single-file/cli/single-file - READABILITY_BINARY - disabled /node/node_modules/readability-extractor/readability-extractor - MERCURY_BINARY - disabled /node/node_modules/@postlight/mercury-parser/cli.js - GIT_BINARY - disabled /usr/bin/git - YOUTUBEDL_BINARY - disabled /usr/local/bin/youtube-dl √ CHROME_BINARY v90.0.4430.93 valid /usr/bin/chromium √ RIPGREP_BINARY v0.10.0 valid /usr/bin/rg [i] Source-code locations: √ PACKAGE_DIR 22 files valid /app/archivebox √ TEMPLATES_DIR 3 files valid /app/archivebox/templates - CUSTOM_TEMPLATES_DIR - disabled [i] Secrets locations: - CHROME_USER_DATA_DIR - disabled - COOKIES_FILE - disabled [i] Data locations: √ OUTPUT_DIR 5 files valid /data √ SOURCES_DIR 9 files valid ./sources √ LOGS_DIR 1 files valid ./logs √ ARCHIVE_DIR 6 files valid ./archive √ CONFIG_FILE 283.0 Bytes valid ./ArchiveBox.conf √ SQL_INDEX 236.0 KB valid ./index.sqlite3 ```
Author
Owner

@pirate commented on GitHub (Jan 19, 2024):

@thenktor would this solution resolve your needs? https://github.com/ArchiveBox/ArchiveBox/issues/826

<!-- gh-comment-id:1899775209 --> @pirate commented on GitHub (Jan 19, 2024): @thenktor would this solution resolve your needs? https://github.com/ArchiveBox/ArchiveBox/issues/826
Author
Owner

@omnicortex commented on GitHub (Feb 10, 2025):

+1 🙏

<!-- gh-comment-id:2649151625 --> @omnicortex commented on GitHub (Feb 10, 2025): +1 🙏
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#2056
No description provided.