[GH-ISSUE #1164] Support: How to start archivebox server in Docker #721

Closed
opened 2026-03-01 14:45:50 +03:00 by kerem · 5 comments
Owner

Originally created by @Nio692001 on GitHub (Jun 24, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1164

I have followed the Quick Start Instructions

Now When I try and start the server in Docker I get this and it ends by exiting.

I am on Mac OS 13.0.1

[i] [2023-06-24 00:23:15] ArchiveBox v0.6.2: archivebox init --setup
2023-06-23 17:23:15     > /data
2023-06-23 17:23:15 
2023-06-23 17:23:16 [^] Verifying and updating existing ArchiveBox collection to v0.6.2...
2023-06-23 17:23:16 ----------------------------------------------------------------------
2023-06-23 17:23:16 
2023-06-23 17:23:16 [*] Verifying archive folder structure...
2023-06-23 17:23:16     + ./archive, ./sources, ./logs...
2023-06-23 17:23:16     + ./ArchiveBox.conf...
2023-06-23 17:23:17 
2023-06-23 17:23:17 [*] Verifying main SQL index and running any migrations needed...
2023-06-23 17:23:18     Operations to perform:
2023-06-23 17:23:18       Apply all migrations: admin, auth, contenttypes, core, sessions
2023-06-23 17:23:18     Running migrations:
2023-06-23 17:23:18     No migrations to apply.
2023-06-23 17:23:18 
2023-06-23 17:23:18     √ ./index.sqlite3
2023-06-23 17:23:18 
2023-06-23 17:23:18 [*] Checking links from indexes and archive folders (safe to Ctrl+C)...
2023-06-23 17:23:18     √ Loaded 0 links from existing main index.
2023-06-23 17:23:18 
2023-06-23 17:23:18 [*] [2023-06-24 00:23:18] Writing 0 links to main index...
    √ ./index.sqlite30sec)./index.sqlite3
2023-06-23 17:23:18 
2023-06-23 17:23:18 ----------------------------------------------------------------------
2023-06-23 17:23:18 [√] Done. Verified and updated the existing ArchiveBox collection.
2023-06-23 17:23:18 
2023-06-23 17:23:18 [+] Installing enabled ArchiveBox dependencies automatically...
2023-06-23 17:23:18 
2023-06-23 17:23:18     Installing YOUTUBEDL_BINARY automatically using pip...
2023-06-23 17:23:18 2021.04.26 is already installed youtube-dl
2023-06-23 17:23:18 
2023-06-23 17:23:18     Installing CHROME_BINARY automatically using playwright...
2023-06-23 17:23:18 Chromium 90.0.4430.93 built is already installed chromium
2023-06-23 17:23:18 
2023-06-23 17:23:18     Installing SINGLEFILE_BINARY, READABILITY_BINARY, MERCURY_BINARY automatically using npm...
2023-06-23 17:23:18 SINGLEFILE_BINARY, READABILITY_BINARY, and MERCURURY_BINARY are already installed
2023-06-23 17:23:18 
2023-06-23 17:23:18 [√] Set up ArchiveBox and its dependencies successfully.
2023-06-23 17:23:19 ArchiveBox v0.6.2
2023-06-23 17:23:19 Cpython Linux Linux-5.15.49-linuxkit-pr-x86_64-with-glibc2.28 x86_64
2023-06-23 17:23:19 IN_DOCKER=True DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep
2023-06-23 17:23:19 
2023-06-23 17:23:19 [i] Dependency versions:
2023-06-23 17:23:19  √  ARCHIVEBOX_BINARY     v0.6.2          valid     /usr/local/bin/archivebox                                                   
2023-06-23 17:23:19  √  PYTHON_BINARY         v3.9.5          valid     /usr/local/bin/python3.9                                                    
2023-06-23 17:23:19  √  DJANGO_BINARY         v3.1.10         valid     /usr/local/lib/python3.9/site-packages/django/bin/django-admin.py           
2023-06-23 17:23:19  √  CURL_BINARY           v7.64.0         valid     /usr/bin/curl                                                               
2023-06-23 17:23:19  √  WGET_BINARY           v1.20.1         valid     /usr/bin/wget                                                               
2023-06-23 17:23:19  √  NODE_BINARY           v15.14.0        valid     /usr/bin/node                                                               
2023-06-23 17:23:19  √  SINGLEFILE_BINARY     v0.3.16         valid     /node/node_modules/single-file/cli/single-file                              
2023-06-23 17:23:19  √  READABILITY_BINARY    v0.0.2          valid     /node/node_modules/readability-extractor/readability-extractor              
2023-06-23 17:23:19  √  MERCURY_BINARY        v1.0.0          valid     /node/node_modules/@postlight/mercury-parser/cli.js                         
2023-06-23 17:23:19  √  GIT_BINARY            v2.20.1         valid     /usr/bin/git                                                                
2023-06-23 17:23:19  √  YOUTUBEDL_BINARY      v2021.04.26     valid     /usr/local/bin/youtube-dl                                                   
2023-06-23 17:23:19  √  CHROME_BINARY         v90.0.4430.93   valid     /usr/bin/chromium                                                           
2023-06-23 17:23:19  √  RIPGREP_BINARY        v0.10.0         valid     /usr/bin/rg                                                                 
2023-06-23 17:23:19 
2023-06-23 17:23:19 [i] Source-code locations:
2023-06-23 17:23:19  √  PACKAGE_DIR           22 files        valid     /app/archivebox                                                             
2023-06-23 17:23:19  √  TEMPLATES_DIR         3 files         valid     /app/archivebox/templates                                                   
2023-06-23 17:23:19  -  CUSTOM_TEMPLATES_DIR  -               disabled                                                                              
2023-06-23 17:23:19 
2023-06-23 17:23:19 [i] Secrets locations:
2023-06-23 17:23:19  -  CHROME_USER_DATA_DIR  -               disabled                                                                              
2023-06-23 17:23:19  -  COOKIES_FILE          -               disabled                                                                              
2023-06-23 17:23:19 
2023-06-23 17:23:19 [i] Data locations:
2023-06-23 17:23:19  √  OUTPUT_DIR            7 files         valid     /data                                                                       
2023-06-23 17:23:19  √  SOURCES_DIR           0 files         valid     ./sources                                                                   
2023-06-23 17:23:19  √  LOGS_DIR              1 files         valid     ./logs                                                                      
2023-06-23 17:23:19  √  ARCHIVE_DIR           0 files         valid     ./archive                                                                   
2023-06-23 17:23:19  √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf                                                           
2023-06-23 17:23:19  √  SQL_INDEX             204.0 KB        valid     ./index.sqlite3                                                             
2023-06-23 17:23:19 
2023-06-23 17:23:19 
2023-06-23 17:23:19     Hint: To view your archive index, run:
2023-06-23 17:23:19         archivebox server  # then visit http://127.0.0.1:8000
2023-06-23 17:23:19 
2023-06-23 17:23:19     To add new links, you can run:
2023-06-23 17:23:19         archivebox add ~/some/path/or/url/to/list_of_links.txt
2023-06-23 17:23:19 
2023-06-23 17:23:19     For more usage and examples, run:
2023-06-23 17:23:19         archivebox help
Originally created by @Nio692001 on GitHub (Jun 24, 2023). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1164 I have followed the Quick Start Instructions Now When I try and start the server in Docker I get this and it ends by exiting. I am on Mac OS 13.0.1 ``` [i] [2023-06-24 00:23:15] ArchiveBox v0.6.2: archivebox init --setup 2023-06-23 17:23:15 > /data 2023-06-23 17:23:15 2023-06-23 17:23:16 [^] Verifying and updating existing ArchiveBox collection to v0.6.2... 2023-06-23 17:23:16 ---------------------------------------------------------------------- 2023-06-23 17:23:16 2023-06-23 17:23:16 [*] Verifying archive folder structure... 2023-06-23 17:23:16 + ./archive, ./sources, ./logs... 2023-06-23 17:23:16 + ./ArchiveBox.conf... 2023-06-23 17:23:17 2023-06-23 17:23:17 [*] Verifying main SQL index and running any migrations needed... 2023-06-23 17:23:18 Operations to perform: 2023-06-23 17:23:18 Apply all migrations: admin, auth, contenttypes, core, sessions 2023-06-23 17:23:18 Running migrations: 2023-06-23 17:23:18 No migrations to apply. 2023-06-23 17:23:18 2023-06-23 17:23:18 √ ./index.sqlite3 2023-06-23 17:23:18 2023-06-23 17:23:18 [*] Checking links from indexes and archive folders (safe to Ctrl+C)... 2023-06-23 17:23:18 √ Loaded 0 links from existing main index. 2023-06-23 17:23:18 2023-06-23 17:23:18 [*] [2023-06-24 00:23:18] Writing 0 links to main index... √ ./index.sqlite30sec)./index.sqlite3 2023-06-23 17:23:18 2023-06-23 17:23:18 ---------------------------------------------------------------------- 2023-06-23 17:23:18 [√] Done. Verified and updated the existing ArchiveBox collection. 2023-06-23 17:23:18 2023-06-23 17:23:18 [+] Installing enabled ArchiveBox dependencies automatically... 2023-06-23 17:23:18 2023-06-23 17:23:18 Installing YOUTUBEDL_BINARY automatically using pip... 2023-06-23 17:23:18 2021.04.26 is already installed youtube-dl 2023-06-23 17:23:18 2023-06-23 17:23:18 Installing CHROME_BINARY automatically using playwright... 2023-06-23 17:23:18 Chromium 90.0.4430.93 built is already installed chromium 2023-06-23 17:23:18 2023-06-23 17:23:18 Installing SINGLEFILE_BINARY, READABILITY_BINARY, MERCURY_BINARY automatically using npm... 2023-06-23 17:23:18 SINGLEFILE_BINARY, READABILITY_BINARY, and MERCURURY_BINARY are already installed 2023-06-23 17:23:18 2023-06-23 17:23:18 [√] Set up ArchiveBox and its dependencies successfully. 2023-06-23 17:23:19 ArchiveBox v0.6.2 2023-06-23 17:23:19 Cpython Linux Linux-5.15.49-linuxkit-pr-x86_64-with-glibc2.28 x86_64 2023-06-23 17:23:19 IN_DOCKER=True DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep 2023-06-23 17:23:19 2023-06-23 17:23:19 [i] Dependency versions: 2023-06-23 17:23:19 √ ARCHIVEBOX_BINARY v0.6.2 valid /usr/local/bin/archivebox 2023-06-23 17:23:19 √ PYTHON_BINARY v3.9.5 valid /usr/local/bin/python3.9 2023-06-23 17:23:19 √ DJANGO_BINARY v3.1.10 valid /usr/local/lib/python3.9/site-packages/django/bin/django-admin.py 2023-06-23 17:23:19 √ CURL_BINARY v7.64.0 valid /usr/bin/curl 2023-06-23 17:23:19 √ WGET_BINARY v1.20.1 valid /usr/bin/wget 2023-06-23 17:23:19 √ NODE_BINARY v15.14.0 valid /usr/bin/node 2023-06-23 17:23:19 √ SINGLEFILE_BINARY v0.3.16 valid /node/node_modules/single-file/cli/single-file 2023-06-23 17:23:19 √ READABILITY_BINARY v0.0.2 valid /node/node_modules/readability-extractor/readability-extractor 2023-06-23 17:23:19 √ MERCURY_BINARY v1.0.0 valid /node/node_modules/@postlight/mercury-parser/cli.js 2023-06-23 17:23:19 √ GIT_BINARY v2.20.1 valid /usr/bin/git 2023-06-23 17:23:19 √ YOUTUBEDL_BINARY v2021.04.26 valid /usr/local/bin/youtube-dl 2023-06-23 17:23:19 √ CHROME_BINARY v90.0.4430.93 valid /usr/bin/chromium 2023-06-23 17:23:19 √ RIPGREP_BINARY v0.10.0 valid /usr/bin/rg 2023-06-23 17:23:19 2023-06-23 17:23:19 [i] Source-code locations: 2023-06-23 17:23:19 √ PACKAGE_DIR 22 files valid /app/archivebox 2023-06-23 17:23:19 √ TEMPLATES_DIR 3 files valid /app/archivebox/templates 2023-06-23 17:23:19 - CUSTOM_TEMPLATES_DIR - disabled 2023-06-23 17:23:19 2023-06-23 17:23:19 [i] Secrets locations: 2023-06-23 17:23:19 - CHROME_USER_DATA_DIR - disabled 2023-06-23 17:23:19 - COOKIES_FILE - disabled 2023-06-23 17:23:19 2023-06-23 17:23:19 [i] Data locations: 2023-06-23 17:23:19 √ OUTPUT_DIR 7 files valid /data 2023-06-23 17:23:19 √ SOURCES_DIR 0 files valid ./sources 2023-06-23 17:23:19 √ LOGS_DIR 1 files valid ./logs 2023-06-23 17:23:19 √ ARCHIVE_DIR 0 files valid ./archive 2023-06-23 17:23:19 √ CONFIG_FILE 81.0 Bytes valid ./ArchiveBox.conf 2023-06-23 17:23:19 √ SQL_INDEX 204.0 KB valid ./index.sqlite3 2023-06-23 17:23:19 2023-06-23 17:23:19 2023-06-23 17:23:19 Hint: To view your archive index, run: 2023-06-23 17:23:19 archivebox server # then visit http://127.0.0.1:8000 2023-06-23 17:23:19 2023-06-23 17:23:19 To add new links, you can run: 2023-06-23 17:23:19 archivebox add ~/some/path/or/url/to/list_of_links.txt 2023-06-23 17:23:19 2023-06-23 17:23:19 For more usage and examples, run: 2023-06-23 17:23:19 archivebox help ```
kerem closed this issue 2026-03-01 14:45:50 +03:00
Author
Owner

@pirate commented on GitHub (Jun 28, 2023):

Look like it's working correctly, what part is failing for you? This output is just from the setup command. You need to run archivebox server to start the server (like it says in the help text).

Can you post the commands you're running and what you're expecting (not just the output)

<!-- gh-comment-id:1610758755 --> @pirate commented on GitHub (Jun 28, 2023): Look like it's working correctly, what part is failing for you? This output is just from the setup command. You need to run `archivebox server` to start the server (like it says in the help text). Can you post the commands you're running and what you're expecting (not just the output)
Author
Owner

@Nio692001 commented on GitHub (Jun 30, 2023):

If I understand correctly, after install I should be able to start the container and run archivebox server then connect via http to local. The container starts, I run the coimmand then it stops. No web page.

<!-- gh-comment-id:1615277214 --> @Nio692001 commented on GitHub (Jun 30, 2023): If I understand correctly, after install I should be able to start the container and run archivebox server then connect via http to local. The container starts, I run the coimmand then it stops. No web page.
Author
Owner

@sclu1034 commented on GitHub (Jul 11, 2023):

archivebox server is the command you need to run, e,g archivebox server --quick-init 0.0.0.0:8000.

<!-- gh-comment-id:1630476988 --> @sclu1034 commented on GitHub (Jul 11, 2023): `archivebox server` is the command you need to run, e,g `archivebox server --quick-init 0.0.0.0:8000`.
Author
Owner

@shperrung commented on GitHub (Nov 22, 2023):

I join to this.
docker compose run archivebox init --setup returns docker error #unknown flag --setup

<!-- gh-comment-id:1823522462 --> @shperrung commented on GitHub (Nov 22, 2023): I join to this. `docker compose run archivebox init --setup` returns docker error `#unknown flag --setup`
Author
Owner

@pirate commented on GitHub (Dec 17, 2023):

Closing this original issue as stale for now. Please pull the latest version docker pull archivebox/archivebox:dev from Docker hub and try again.

@shperrung can you please open a new issue with a screenshot of the error in your terminal and the full output of docker compose run archivebox version.

<!-- gh-comment-id:1859308966 --> @pirate commented on GitHub (Dec 17, 2023): Closing this original issue as stale for now. Please pull the latest version `docker pull archivebox/archivebox:dev` from Docker hub and try again. @shperrung can you please open a new issue with a screenshot of the error in your terminal and the full output of `docker compose run archivebox version`.
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#721
No description provided.