[GH-ISSUE #718] Autosetup hangs during npm install on Ubuntu #453

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

Originally created by @ilovefreesw on GitHub (Apr 20, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/718

Describe the bug

During the initialization, the setup freezes at the same step every time as shown in the screenshot.

image

Steps to reproduce

1: Install via pip3 install archivebox
2: Run archivebox init --setup to get stuck at the npm modules installation part.

Screenshots or log output

ArchiveBox version

ArchiveBox v0.6.2
Cpython Linux Linux-5.4.0-72-generic-x86_64-with-glibc2.29 x86_64
IN_DOCKER=False 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.8.5          valid     /usr/bin/python3.8                                                          
 √  DJANGO_BINARY         v3.1.8          valid     /usr/local/lib/python3.8/dist-packages/django/bin/django-admin.py           
 √  CURL_BINARY           v7.68.0         valid     /usr/bin/curl                                                               
 √  WGET_BINARY           v1.20.3         valid     /usr/bin/wget                                                               
 √  NODE_BINARY           v14.16.1        valid     /opt/node-v14.16.1/bin/node                                                 
 X  SINGLEFILE_BINARY     ?               invalid   single-file                                                                 
 X  READABILITY_BINARY    ?               invalid   readability-extractor                                                       
 X  MERCURY_BINARY        ?               invalid   mercury-parser                                                              
 √  GIT_BINARY            v2.25.1         valid     /usr/bin/git                                                                
 √  YOUTUBEDL_BINARY      v2021.04.17     valid     /usr/local/bin/youtube-dl                                                   
 √  CHROME_BINARY         v90.0.4430.72   valid     /usr/bin/google-chrome                                                      
 X  RIPGREP_BINARY        ?               invalid   rg                                                                          

[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /usr/local/lib/python3.8/dist-packages/archivebox                           
 √  TEMPLATES_DIR         3 files         valid     /usr/local/lib/python3.8/dist-packages/archivebox/templates                 
 -  CUSTOM_TEMPLATES_DIR  -               disabled                                                                              

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

[i] Data locations:
 √  OUTPUT_DIR            7 files         valid     /home/testo101/test                                                         
 √  SOURCES_DIR           0 files         valid     ./sources                                                                   
 √  LOGS_DIR              0 files         valid     ./logs                                                                      
 √  ARCHIVE_DIR           0 files         valid     ./archive                                                                   
 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf                                                           
 √  SQL_INDEX             204.0 KB        valid     ./index.sqlite3                                                             

[!] Warning: Missing 4 recommended dependencies
    ! SINGLEFILE_BINARY: single-file (unable to detect version)
      Hint: To install all packages automatically run: archivebox setup
            or to disable it and silence this warning: archivebox config --set SAVE_SINGLEFILE=False
            
    ! READABILITY_BINARY: readability-extractor (unable to detect version)
      Hint: To install all packages automatically run: archivebox setup
            or to disable it and silence this warning: archivebox config --set SAVE_READABILITY=False
            
    ! MERCURY_BINARY: mercury-parser (unable to detect version)
      Hint: To install all packages automatically run: archivebox setup
            or to disable it and silence this warning: archivebox config --set SAVE_MERCURY=False
            
    ! RIPGREP_BINARY: rg (unable to detect version)
Originally created by @ilovefreesw on GitHub (Apr 20, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/718 #### Describe the bug During the initialization, the setup freezes at the same step every time as shown in the screenshot. ![image](https://user-images.githubusercontent.com/77317006/115435365-5fd2b200-a227-11eb-8974-89f627d09fbe.png) #### Steps to reproduce 1: Install via `pip3 install archivebox` 2: Run `archivebox init --setup` to get stuck at the npm modules installation part. #### Screenshots or log output #### ArchiveBox version ``` ArchiveBox v0.6.2 Cpython Linux Linux-5.4.0-72-generic-x86_64-with-glibc2.29 x86_64 IN_DOCKER=False 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.8.5 valid /usr/bin/python3.8 √ DJANGO_BINARY v3.1.8 valid /usr/local/lib/python3.8/dist-packages/django/bin/django-admin.py √ CURL_BINARY v7.68.0 valid /usr/bin/curl √ WGET_BINARY v1.20.3 valid /usr/bin/wget √ NODE_BINARY v14.16.1 valid /opt/node-v14.16.1/bin/node X SINGLEFILE_BINARY ? invalid single-file X READABILITY_BINARY ? invalid readability-extractor X MERCURY_BINARY ? invalid mercury-parser √ GIT_BINARY v2.25.1 valid /usr/bin/git √ YOUTUBEDL_BINARY v2021.04.17 valid /usr/local/bin/youtube-dl √ CHROME_BINARY v90.0.4430.72 valid /usr/bin/google-chrome X RIPGREP_BINARY ? invalid rg [i] Source-code locations: √ PACKAGE_DIR 23 files valid /usr/local/lib/python3.8/dist-packages/archivebox √ TEMPLATES_DIR 3 files valid /usr/local/lib/python3.8/dist-packages/archivebox/templates - CUSTOM_TEMPLATES_DIR - disabled [i] Secrets locations: - CHROME_USER_DATA_DIR - disabled - COOKIES_FILE - disabled [i] Data locations: √ OUTPUT_DIR 7 files valid /home/testo101/test √ SOURCES_DIR 0 files valid ./sources √ LOGS_DIR 0 files valid ./logs √ ARCHIVE_DIR 0 files valid ./archive √ CONFIG_FILE 81.0 Bytes valid ./ArchiveBox.conf √ SQL_INDEX 204.0 KB valid ./index.sqlite3 [!] Warning: Missing 4 recommended dependencies ! SINGLEFILE_BINARY: single-file (unable to detect version) Hint: To install all packages automatically run: archivebox setup or to disable it and silence this warning: archivebox config --set SAVE_SINGLEFILE=False ! READABILITY_BINARY: readability-extractor (unable to detect version) Hint: To install all packages automatically run: archivebox setup or to disable it and silence this warning: archivebox config --set SAVE_READABILITY=False ! MERCURY_BINARY: mercury-parser (unable to detect version) Hint: To install all packages automatically run: archivebox setup or to disable it and silence this warning: archivebox config --set SAVE_MERCURY=False ! RIPGREP_BINARY: rg (unable to detect version) ```
kerem closed this issue 2026-03-01 14:43:43 +03:00
Author
Owner

@pirate commented on GitHub (Apr 21, 2021):

Sometimes the npm dependency resolution is slower than normal for a few hours, not sure why but other users have hit this before and it usually gets better within 24hr.

You can also try installing the npm stuff manually instead of using the autosetup:

cd path/to/your/archivebox/dir
rm -Rf package.json package-lock.json node_modules
npm install --save --no-audit --no-fund --loglevel=error 'git+https://github.com/gildas-lormeau/SingleFile.git'
npm install --save --no-audit --no-fund --loglevel=error 'git+https://github.com/ArchiveBox/readability-extractor.git'
npm install --save --no-audit --no-fund --loglevel=error '@postlight/mercury-parser'

archivebox init      # without --setup 
<!-- gh-comment-id:823805861 --> @pirate commented on GitHub (Apr 21, 2021): Sometimes the npm dependency resolution is slower than normal for a few hours, not sure why but other users have hit this before and it usually gets better within 24hr. You can also try installing the npm stuff manually instead of using the autosetup: ```bash cd path/to/your/archivebox/dir rm -Rf package.json package-lock.json node_modules npm install --save --no-audit --no-fund --loglevel=error 'git+https://github.com/gildas-lormeau/SingleFile.git' npm install --save --no-audit --no-fund --loglevel=error 'git+https://github.com/ArchiveBox/readability-extractor.git' npm install --save --no-audit --no-fund --loglevel=error '@postlight/mercury-parser' archivebox init # without --setup ```
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#453
No description provided.