[GH-ISSUE #1138] Bug: Changing the port in the docker compose file does not work. #2222

Closed
opened 2026-03-01 17:57:25 +03:00 by kerem · 2 comments
Owner

Originally created by @MarvinJWendt on GitHub (Apr 16, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1138

Describe the bug

I cannot change the port in the docker compose file. Running on 8000 works, but setting it to anything else will make the server unreachable.

# does work
command: server --quick-init 0.0.0.0:8000
# does not work
command: server --quick-init 0.0.0.0:9000

(And yes, I also changed the exposed port of the container 😉)

Screenshots or log output

No error output (Output information implies that everything works)

Log output

archivebox-archivebox-1  | [i] [2023-04-17 00:00:40] ArchiveBox v0.6.2: archivebox server --quick-init 0.0.0.0:9000
archivebox-archivebox-1  |     > /data
archivebox-archivebox-1  | 
archivebox-archivebox-1  | [^] Verifying and updating existing ArchiveBox collection to v0.6.2...
archivebox-archivebox-1  | ----------------------------------------------------------------------
archivebox-archivebox-1  | 
archivebox-archivebox-1  | [*] Verifying archive folder structure...
archivebox-archivebox-1  |     + ./archive, ./sources, ./logs...
archivebox-archivebox-1  |     + ./ArchiveBox.conf...
archivebox-archivebox-1  | 
archivebox-archivebox-1  | [*] Verifying main SQL index and running any migrations needed...
archivebox-archivebox-1  |     Operations to perform:
archivebox-archivebox-1  |     Apply all migrations: admin, auth, contenttypes, core, sessions
archivebox-archivebox-1  |     Running migrations:
archivebox-archivebox-1  |     No migrations to apply.
archivebox-archivebox-1  | 
archivebox-archivebox-1  |     √ ./index.sqlite3
archivebox-archivebox-1  | 
archivebox-archivebox-1  | [*] Checking links from indexes and archive folders (safe to Ctrl+C)...
archivebox-archivebox-1  |     √ Loaded 1 links from existing main index.
archivebox-archivebox-1  |     > Skipping full snapshot directory check (quick mode)
archivebox-archivebox-1  | 
archivebox-archivebox-1  | ----------------------------------------------------------------------
archivebox-archivebox-1  | [√] Done. Verified and updated the existing ArchiveBox collection.
archivebox-archivebox-1  | 
archivebox-archivebox-1  |     Hint: To view your archive index, run:
archivebox-archivebox-1  |         archivebox server  # then visit http://127.0.0.1:8000
archivebox-archivebox-1  | 
archivebox-archivebox-1  |     To add new links, you can run:
archivebox-archivebox-1  |         archivebox add ~/some/path/or/url/to/list_of_links.txt
archivebox-archivebox-1  | 
archivebox-archivebox-1  |     For more usage and examples, run:
archivebox-archivebox-1  |         archivebox help
archivebox-archivebox-1  | 
archivebox-archivebox-1  | [+] Starting ArchiveBox webserver...
archivebox-archivebox-1  |     > Logging errors to ./logs/errors.log
archivebox-archivebox-1  | Performing system checks...
archivebox-archivebox-1  | 
archivebox-archivebox-1  | System check identified no issues (0 silenced).
archivebox-archivebox-1  | April 17, 2023 - 00:00:42
archivebox-archivebox-1  | Django version 3.1.10, using settings 'core.settings'
archivebox-archivebox-1  | Starting development server at http://0.0.0.0:9000/
archivebox-archivebox-1  | Quit the server with CONTROL-C.

ArchiveBox version

ArchiveBox v0.6.2
Cpython Linux Linux-5.10.0-9-amd64-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           v1.20.1         valid     /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    v0.0.2          valid     /node/node_modules/readability-extractor/readability-extractor              
 √  MERCURY_BINARY        v1.0.0          valid     /node/node_modules/@postlight/mercury-parser/cli.js                         
 √  GIT_BINARY            v2.20.1         valid     /usr/bin/git                                                                
 √  YOUTUBEDL_BINARY      v2021.04.26     valid     /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           1 files         valid     ./sources                                                                   
 √  LOGS_DIR              1 files         valid     ./logs                                                                      
 √  ARCHIVE_DIR           1 files         valid     ./archive                                                                   
 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf                                                           
 √  SQL_INDEX             208.0 KB        valid     ./index.sqlite3 
Originally created by @MarvinJWendt on GitHub (Apr 16, 2023). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1138 #### Describe the bug I cannot change the port in the docker compose file. Running on `8000` works, but setting it to anything else will make the server unreachable. ```yml # does work command: server --quick-init 0.0.0.0:8000 ``` ```yml # does not work command: server --quick-init 0.0.0.0:9000 ``` (And yes, I also changed the exposed port of the container 😉) #### Screenshots or log output No error output (Output information implies that everything works) <details><summary>Log output</summary> <p> ``` archivebox-archivebox-1 | [i] [2023-04-17 00:00:40] ArchiveBox v0.6.2: archivebox server --quick-init 0.0.0.0:9000 archivebox-archivebox-1 | > /data archivebox-archivebox-1 | archivebox-archivebox-1 | [^] Verifying and updating existing ArchiveBox collection to v0.6.2... archivebox-archivebox-1 | ---------------------------------------------------------------------- archivebox-archivebox-1 | archivebox-archivebox-1 | [*] Verifying archive folder structure... archivebox-archivebox-1 | + ./archive, ./sources, ./logs... archivebox-archivebox-1 | + ./ArchiveBox.conf... archivebox-archivebox-1 | archivebox-archivebox-1 | [*] Verifying main SQL index and running any migrations needed... archivebox-archivebox-1 | Operations to perform: archivebox-archivebox-1 | Apply all migrations: admin, auth, contenttypes, core, sessions archivebox-archivebox-1 | Running migrations: archivebox-archivebox-1 | No migrations to apply. archivebox-archivebox-1 | archivebox-archivebox-1 | √ ./index.sqlite3 archivebox-archivebox-1 | archivebox-archivebox-1 | [*] Checking links from indexes and archive folders (safe to Ctrl+C)... archivebox-archivebox-1 | √ Loaded 1 links from existing main index. archivebox-archivebox-1 | > Skipping full snapshot directory check (quick mode) archivebox-archivebox-1 | archivebox-archivebox-1 | ---------------------------------------------------------------------- archivebox-archivebox-1 | [√] Done. Verified and updated the existing ArchiveBox collection. archivebox-archivebox-1 | archivebox-archivebox-1 | Hint: To view your archive index, run: archivebox-archivebox-1 | archivebox server # then visit http://127.0.0.1:8000 archivebox-archivebox-1 | archivebox-archivebox-1 | To add new links, you can run: archivebox-archivebox-1 | archivebox add ~/some/path/or/url/to/list_of_links.txt archivebox-archivebox-1 | archivebox-archivebox-1 | For more usage and examples, run: archivebox-archivebox-1 | archivebox help archivebox-archivebox-1 | archivebox-archivebox-1 | [+] Starting ArchiveBox webserver... archivebox-archivebox-1 | > Logging errors to ./logs/errors.log archivebox-archivebox-1 | Performing system checks... archivebox-archivebox-1 | archivebox-archivebox-1 | System check identified no issues (0 silenced). archivebox-archivebox-1 | April 17, 2023 - 00:00:42 archivebox-archivebox-1 | Django version 3.1.10, using settings 'core.settings' archivebox-archivebox-1 | Starting development server at http://0.0.0.0:9000/ archivebox-archivebox-1 | Quit the server with CONTROL-C. ``` </p> </details> #### ArchiveBox version <!-- Run the `archivebox version` command locally then copy paste the result here: --> ```logs ArchiveBox v0.6.2 Cpython Linux Linux-5.10.0-9-amd64-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 v1.20.1 valid /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 v0.0.2 valid /node/node_modules/readability-extractor/readability-extractor √ MERCURY_BINARY v1.0.0 valid /node/node_modules/@postlight/mercury-parser/cli.js √ GIT_BINARY v2.20.1 valid /usr/bin/git √ YOUTUBEDL_BINARY v2021.04.26 valid /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 1 files valid ./sources √ LOGS_DIR 1 files valid ./logs √ ARCHIVE_DIR 1 files valid ./archive √ CONFIG_FILE 81.0 Bytes valid ./ArchiveBox.conf √ SQL_INDEX 208.0 KB valid ./index.sqlite3 ``` <!-- Tickets without full version info will closed until it is provided, we need the full output here to help you solve your issue -->
kerem closed this issue 2026-03-01 17:57:25 +03:00
Author
Owner

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

Sorry for the late response, did you ever end up getting this working?

I haven't been able to replicate the issue on archivebox/archivebox:dev.

<!-- gh-comment-id:1589359712 --> @pirate commented on GitHub (Jun 13, 2023): Sorry for the late response, did you ever end up getting this working? I haven't been able to replicate the issue on `archivebox/archivebox:dev`.
Author
Owner

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

Closing as stale

<!-- gh-comment-id:1899641910 --> @pirate commented on GitHub (Jan 19, 2024): Closing as stale
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#2222
No description provided.