#1894·ArchiveBox

Runner hangs after `TypeError: Missing cleanup parent for ProcessKillEvent` when a snapshot handler times out

Author: benmargolinCreated Sep 29, 2026Updated Sep 29, 2026

Provide a screenshot and describe the bug

What happened: After upgrading from 0.7.2 and migrating ~3,000 snapshots, the crawl "Migrated from v0.7.2/v0.8.6" was processing the remaining queued snapshots. One snapshot's SnapshotEvent handler timed out, and killing its process then failed inside ProcessService. After that, the snapshot stayed started with its parse_html_urls ArchiveResult started for 50+ minutes. No plugin process was still running, and the rest of the crawl's queue (207 snapshots) stopped moving. Cancelling the snapshot (Snapshot.cancel()) and restarting the container got it going again.

Possibly relevant: the event bus history was at exactly history=100000 when the timeout hit, and 100001 when the kill failed. I wonder whether the kill event's parent had already been evicted from a 100k-entry history, which would explain "Missing cleanup parent". The crawl was very large (3,000+ snapshots) because it holds every migrated 0.7 snapshot.

Steps to reproduce

markdown
Stopped archivebox.
Ran `docker compose exec archivebox archivebox update --migrate-only`
That finished, restarted docker.
Crawl was working for a bit, then hung. Saw error described below.

Logs or errors

bash
**Log (worker_runner.log):**

[2026-09-29 00:07:34] ERROR abxbus ❌ ArchiveBox_ab383b69...(queue=0 active=2 history=100000 handlers=44)
  Error in event handler archivebox.services.runner.on_archivebox_CrawlStartEvent__run_snapshots(... CrawlStartEvent#a39d)
  -> EventHandlerTimeoutError(Event handler SnapshotService.on_SnapshotEvent#9c3e(... SnapshotEvent#6b26) timed out)

ERROR abxbus ❌ ArchiveBox_ab383b69...(queue=0 active=1 history=100000 handlers=44)
  Error in event handler archivebox.services.runner.on_archivebox_CrawlEvent__run_recursive_crawl(... CrawlEvent#70f2)
  -> EventHandlerTimeoutError(Event handler SnapshotService.on_SnapshotEvent#9c3e(... SnapshotEvent#6b26) timed out)

ERROR abxbus ❌ ArchiveBox_ab383b69...(queue=0 active=1 history=100001 handlers=44)
  Error in event handler ProcessService.on_ProcessKillEvent(... ProcessKillEvent#7ee9)
  -> TypeError(Missing cleanup parent for ProcessKillEvent 06abb014-69db-7a9e-8000-1a352d8b7ee9)
TypeError: Missing cleanup parent for ProcessKillEvent 06abb014-69db-7a9e-8000-1a352d8b7ee9

ArchiveBox Version

bash
0.9.70
ArchiveBox v0.9.70 COMMIT_HASH=9f0c584 BUILD_TIME=2026-09-27 05:53:22 1790488402
IN_DOCKER=True IN_QEMU=False ARCH=x86_64 OS=Linux PLATFORM=Linux-7.0.14-19-pve-x86_64-with-glibc2.41
PYTHON=Cpython (venv)
EUID=1000:1000 UID=1000:1000 ARCHIVEBOX_USER=1000:1000 FS_UID=1000:1000 FS_PERMS=644 FS_ATOMIC=True FS_REMOTE=True
DEBUG=False IS_TTY=True SUDO=False ID=76d173af:12e316ee SEARCH_BACKEND=sonic LDAP=False


 Binary Dependencies:
✅ archivewebpage 0.17.0 (chromewebstore) · archivewebpage
   ABXPKG_LIB_DIR/chromewebstore/extensions/archivewebpage.extension.json
✅ node 24.18.0 (env) · chrome, claudecode, opencode, ytdlp
   /opt/node/bin/node
✅ abxbus 2.5.65 (pnpm) · chrome
   ABXPKG_LIB_DIR/pnpm/packages/abxbus/node_modules/.pnpm/[email protected]/node_modules/abxbus/dist/cjs/index.js
✅ browsers 3.0.4 (pnpm) · chrome
   ABXPKG_LIB_DIR/pnpm/packages/chrome/node_modules/.bin/browsers
✅ chromium 153.0.8010 (env) · chrome
   ABXPKG_LIB_DIR/playwright/cache/chromium-1243/chrome-linux64/chrome
disabled claudechrome 1.0.94 (chromewebstore) · claudechrome
   disabled by CLAUDECHROME_ENABLED=False
disabled claude 2.1.283 (pnpm) · claudecode
   disabled by CLAUDECODE_ENABLED=False
✅ defuddle 0.14.0 (env) · defuddle
   ABXPKG_LIB_DIR/pnpm/packages/defuddle/node_modules/.bin/defuddle
✅ forum-dl 0.3.0 (env) · forumdl
   ABXPKG_LIB_DIR/uv/packages/forum-dl/venv/bin/forum-dl
✅ gallery-dl 1.32.13 (env) · gallerydl
   ABXPKG_LIB_DIR/uv/packages/gallery-dl/venv/bin/gallery-dl
✅ git 2.47.3 (env) · git, opencode
   /usr/bin/git
✅ istilldontcareaboutcookies 1.1.9 (chromewebstore) · istilldontcareaboutcookies
   ABXPKG_LIB_DIR/chromewebstore/extensions/istilldontcareaboutcookies.extension.json
✅ lit 2.0.0 (env) · liteparse
   ABXPKG_LIB_DIR/pnpm/packages/liteparse/node_modules/.bin/lit
✅ tesseract 5.5.0 (env) · liteparse
   /usr/bin/tesseract
✅ convert 7.1.1 (env) · liteparse
   /usr/bin/magick-im7.q16
✅ postlight-parser 2.2.3 (env) · mercury
   ABXPKG_LIB_DIR/npm/packages/mercury/node_modules/@postlight/parser/cli.js
disabled npm 11.16.0 (env) · opencode
   disabled by OPENCODE_ENABLED=False
disabled opencode 1.18.31 (pnpm) · opencode
   disabled by OPENCODE_ENABLED=False
disabled opendataloader-pdf 2.5.10 (uv) · opendataloader
   disabled by OPENDATALOADER_ENABLED=False
disabled java 21.0.12 (env) · opendataloader
   disabled by OPENDATALOADER_ENABLED=False
disabled ots 0.7.2 (uv) · opentimestamps
   disabled by OPENTIMESTAMPS_ENABLED=False
✅ papers-dl 0.0.25 (env) · papersdl
   ABXPKG_LIB_DIR/uv/packages/papers-dl/venv/bin/papers-dl
✅ feedparser 6.0.12 (uv) · parse_rss_urls
   ABXPKG_LIB_DIR/uv/packages/parse_rss_urls-6.0.12/venv/lib/python3.13/site-packages/feedparser/__init__.py
✅ pdftoppm 25.3.0 (env) · pdf
   /usr/bin/pdftoppm
✅ readability-extractor 0.0.6 (env) · readability
   ABXPKG_LIB_DIR/pnpm/packages/readability/node_modules/.bin/readability-extractor
✅ rg 14.1.1 (env) · search_backend_ripgrep
   /usr/bin/rg
✅ sonic 1.4.9 (env) · search_backend_sonic
   /usr/local/bin/sonic
✅ singlefile 1.26.5 (chromewebstore) · singlefile
   ABXPKG_LIB_DIR/chromewebstore/extensions/singlefile.extension.json
disabled tlsnotary 0.1.0 (chromewebstore) · tlsnotary
   disabled by TLSNOTARY_ENABLED=False
✅ trafilatura 2.1.0 (uv) · trafilatura
   ABXPKG_LIB_DIR/uv/packages/trafilatura-2.1.0/venv/bin/trafilatura
✅ twocaptcha 3.7.4 (chromewebstore) · twocaptcha
   ABXPKG_LIB_DIR/chromewebstore/extensions/twocaptcha.extension.json
✅ ublock 2026.901.1442 (chromewebstore) · ublock
   ABXPKG_LIB_DIR/chromewebstore/extensions/ublock.extension.json
✅ wget 1.25.0 (env) · wget
   /usr/bin/wget
✅ yt-dlp 2026.8.19 (env) · ytdlp
   ABXPKG_LIB_DIR/uv/packages/yt-dlp/venv/bin/yt-dlp
✅ ffmpeg 7.1.5 (env) · ytdlp
   /usr/bin/ffmpeg

 Code locations:
 √  PACKAGE_DIR           24 files        valid     /venv/lib/python3.13/site-packages/archivebox
 √  TEMPLATES_DIR         6 files         valid     /venv/lib/python3.13/site-packages/archivebox/templates
 -  CUSTOM_TEMPLATES_DIR  missing         unused    ./custom_templates
 -  USER_PLUGINS_DIR      missing         unused    ./custom_plugins
 √  ABXPKG_LIB_DIR        10 files        valid     /opt/archivebox/lib

 Data locations:
 √  DATA_DIR              12 files @      valid     /data
 √  CONFIG_FILE           1.8 KB          valid     ./ArchiveBox.conf
 √  SQL_INDEX             183.3 MB        valid     ./index.sqlite3
 √  ARCHIVE_DIR           1 files         valid     ./archive
 √  USERS_DIR             1 files         valid     ./archive/users
 √  SOURCES_DIR           350 files       valid     ./sources
 √  PERSONAS_DIR          18 files        valid     ./personas
 √  LOGS_DIR              7 files         valid     ./logs
 √  TMP_DIR               5 files         valid     /tmp/archivebox

How did you install the version of ArchiveBox you are using?

Docker (or Podman/LXC/K8s/TrueNAS/Proxmox/etc)

What operating system are you running on?

Linux (Ubuntu/Debian/Arch/Alpine/etc.)

What type of drive are you using to store your ArchiveBox data?

  • some of data/ is on a local SSD or NVMe drive
  • some of data/ is on a spinning hard drive or external USB drive
  • some of data/ is on a network mount (e.g. NFS/SMB/Ceph/GlusterFS/etc.)
  • some of data/ is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/Google Drive/Dropbox/etc.)

Docker Compose Configuration

bash
# Usage:
#     docker compose run archivebox init --setup
#     docker compose up
#     docker compose run archivebox version
#     docker compose run -T archivebox add < urls_to_archive.txt
#     docker compose run archivebox add --depth=1 'https://news.ycombinator.com'
#     docker compose run archivebox config --set SAVE_ARCHIVE_DOT_ORG=False
#     docker compose run archivebox help
# Documentation:
#     https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose

services:
    archivebox:
        #image: ${DOCKER_IMAGE:-archivebox/archivebox:dev}
        image: archivebox/archivebox:latest
        restart: unless-stopped
        ports:
            - 5797:5797                          # 0.9+ default port
        volumes:
            - ./data:/data                       # includes personas at /data/personas; no separate mount needed
            - tmp:/tmp/archivebox                # lets one-off `docker compose run` commands reuse the server's supervisor
            # - ./etc/crontabs:/var/spool/cron/crontabs  # uncomment this and archivebox_scheduler below to set up automatic recurring archive jobs
            # - ./archivebox:/app/archivebox             # uncomment this to mount the ArchiveBox source code at runtime (for developers working on archivebox)
        # build: .                                       # uncomment this to build the image from source code at buildtime (for developers working on archivebox)
        environment:
            - BASE_URL=https://archiver.margolin.us  # canonical URL used to reach ArchiveBox (replaces CSRF_TRUSTED_ORIGINS/ALLOWED_HOSTS in 0.9+)
            # - SERVER_SECURITY_MODE            # optional override; defaults to auto
            # - PUBLIC_INDEX=True               # set to False to prevent anonymous users from viewing snapshot list
            # - PUBLIC_SNAPSHOTS=True           # set to False to prevent anonymous users from viewing snapshot content
            # - PUBLIC_ADD_VIEW=False           # set to True to allow anonymous users to submit new URLs to archive
            # - ADMIN_USERNAME=admin            # create an admin user on first run with the given user/pass combo
            # - ADMIN_PASSWORD=SomeSecretPassword
            - PUID=1000                        # set to your host user's UID & GID if you encounter permissions issues
            - PGID=1000
            # - SEARCH_BACKEND_ENGINE=sonic     # uncomment these and sonic container below for better full-text search
            # - SEARCH_BACKEND_HOST_NAME=sonic
            # - SEARCH_BACKEND_PASSWORD=SomeSecretPassword
            # - MEDIA_MAX_SIZE=750m             # increase this filesize limit to allow archiving larger audio/video files
            - TIMEOUT=60                      # increase this number to 120+ seconds if you see many slow downloads timing out
            # - CHECK_SSL_VALIDITY=True         # set to False to disable strict SSL checking (allows saving URLs w/ broken certs)
            - SAVE_ARCHIVE_DOT_ORG=False       # set to False to disable submitting all URLs to Archive.org when archiving
            - USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
            # ...
            # add further configuration options from archivebox/config.py as needed (to apply them only to this container)
            # or set using `docker compose run archivebox config --set SOME_KEY=someval` (to persist config across all containers)
#            - CHROME_USER_DATA_DIR=/data/personas/Default/chrome_profile
#            - CHROME_USER_DATA_DIR=/data/personas
#            - DISPLAY=novnc:0.0
#            - CHROME_HEADLESS=False
        pids_limit: 2048                      # avoids low systemd task caps with Chrome and parallel extractors
        shm_size: "1gb"                       # Chrome runs more efficiently with a reasonably sized shared memory pool

        # For ad-blocking during archiving, uncomment this section and pihole service section below
        networks:
          - dns
        dns:
          - 172.20.0.53


    ######## Optional Addons: tweak examples below as needed for your specific use case ########

    ### Example: To run the Sonic full-text search backend, first download the config file to sonic.cfg
    #   $ curl -O https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic.cfg
    # After starting, backfill any existing Snapshots into the full-text index:
    #   $ docker-compose run archivebox update --index-only

    # sonic:
    #    image: valeriansaliou/sonic:latest
    #    expose:
    #        - 1491
    #    environment:
    #        - SEARCH_BACKEND_PASSWORD=SomeSecretPassword
    #    volumes:
    #        - ./sonic.cfg:/etc/sonic.cfg:ro
    #        - ./data/sonic:/var/lib/sonic/store


    ### Example: To run pihole in order to block ad/tracker requests during archiving,
    # uncomment this block and set up pihole using its admin interface

    pihole:
      image: pihole/pihole:latest
      ports:
        - 0.0.0.0:8090:80       # uncomment to access the admin HTTP interface on http://localhost:8090
      environment:
        - WEBPASSWORD=princeorg
        - DNSMASQ_LISTENING=all
      dns:
        - 127.0.0.1
        - 1.1.1.1
      networks:
        dns:
          ipv4_address: 172.20.0.53
      volumes:
        - ./etc/pihole:/etc/pihole
        - ./etc/dnsmasq:/etc/dnsmasq.d


    ### This optional container runs xvfb+noVNC so you can watch the ArchiveBox browser as it archives things,
    # or remote control it to set up a chrome profile w/ login credentials for sites you want to archive.
    # https://github.com/ArchiveBox/ArchiveBox/wiki/Chromium-Install#setting-up-a-chromium-user-profile
    # https://github.com/ArchiveBox/ArchiveBox/wiki/Chromium-Install#docker-vnc-setup

#    novnc:
#        image: theasp/novnc:latest
#        environment:
#            - DISPLAY_WIDTH=1920
#            - DISPLAY_HEIGHT=1080
#            - RUN_XTERM=no
#        ports:
#            # to view/control ArchiveBox's browser, visit: http://127.0.0.1:8080/vnc.html
#            # restricted to access from localhost by default because it has no authentication
##            - 127.0.0.1:8080:8080
#            - 8080:8080

    ### Example: Enable ability to run regularly scheduled archiving tasks by uncommenting this container
    #   $ docker compose run archivebox schedule --every=day --depth=1 'https://example.com/some/rss/feed.xml'
    # then restart the scheduler container to apply the changes to the schedule
    #   $ docker compose restart archivebox_scheduler

    # archivebox_scheduler:
    #    image: ${DOCKER_IMAGE:-archivebox/archivebox:dev}
    #    command: schedule --foreground
    #    environment:
    #        - MEDIA_MAX_SIZE=750m               # increase this number to allow archiving larger audio/video files
    #        # - TIMEOUT=60                      # increase if you see timeouts often during archiving / on slow networks
    #        # - ONLY_NEW=True                   # set to False to retry previously failed URLs when re-adding instead of skipping them
    #        # - CHECK_SSL_VALIDITY=True         # set to False to allow saving URLs w/ broken SSL certs
    #        # - SAVE_ARCHIVE_DOT_ORG=True       # set to False to disable submitting URLs to Archive.org when archiving
    #        # - PUID=502                        # set to your host user's UID & GID if you encounter permissions issues
    #        # - PGID=20
    #    volumes:
    #        - ./data:/data
    #        - ./etc/crontabs:/var/spool/cron/crontabs
    #    # cpus: 2                               # uncomment / edit these values to limit container resource consumption
    #    # mem_limit: 2048m
    #    # shm_size: 1024m


    ### Example: Put Nginx in front of the ArchiveBox server for SSL termination

    # nginx:
    #     image: nginx:alpine
    #     ports:
    #         - 443:443
    #         - 80:80
    #     volumes:
    #         - ./etc/nginx.conf:/etc/nginx/nginx.conf
    #         - ./data:/var/www


    ### Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel

    # wireguard:
    #   image: linuxserver/wireguard:latest
    #   network_mode: 'service:archivebox'
    #   cap_add:
    #     - NET_ADMIN
    #     - SYS_MODULE
    #   sysctls:
    #     - net.ipv4.conf.all.rp_filter=2
    #     - net.ipv4.conf.all.src_valid_mark=1
    #   volumes:
    #     - /lib/modules:/lib/modules
    #     - ./wireguard.conf:/config/wg0.conf:ro


    ### Example: Run PYWB in parallel and auto-import WARCs from ArchiveBox

    # pywb:
    #     image: webrecorder/pywb:latest
    #     entrypoint: /bin/sh -c '(wb-manager init default || test $$? -eq 2) && wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback;'
    #     environment:
    #         - INIT_COLLECTION=archivebox
    #     ports:
    #         - 8080:8080
    #     volumes:
    #         - ./data:/archivebox
    #         - ./data/wayback:/webarchive


volumes:
    tmp:

networks:

    # network needed for pihole container to offer :53 dns resolving on fixed ip for archivebox container
    dns:
        ipam:
            driver: default
            config:
                - subnet: 172.20.0.0/24

ArchiveBox Configuration

bash
# This is the config file for your ArchiveBox collection.
#
# You can add options here manually in INI format, or automatically by running:
#    archivebox config --set KEY=VALUE
#
# This file is kept in sync 1:1 with the current Machine.config in the DB —
# editing either side propagates to the other. ``archivebox init`` reads
# this file on startup; the admin Machine.config editor writes both.
#
# Full reference:
#    https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration

[PLUGINS]
CHROME_BINARY = /opt/archivebox/lib/playwright/bin/chromium
DEFUDDLE_BINARY = /opt/archivebox/lib/pnpm/packages/defuddle/node_modules/.bin/defuddle
FFMPEG_BINARY = /opt/archivebox/lib/env/bin/ffmpeg
FORUMDL_BINARY = /opt/archivebox/lib/uv/packages/forum-dl/venv/bin/forum-dl
GALLERYDL_BINARY = /opt/archivebox/lib/uv/packages/gallery-dl/venv/bin/gallery-dl
GIT_BINARY = /opt/archivebox/lib/env/bin/git
LITEPARSE_BINARY = /opt/archivebox/lib/pnpm/packages/liteparse/node_modules/.bin/lit
LITEPARSE_IMAGEMAGICK_BINARY = /opt/archivebox/lib/env/bin/convert
LITEPARSE_TESSERACT_BINARY = /opt/archivebox/lib/env/bin/tesseract
MERCURY_BINARY = /opt/archivebox/lib/npm/packages/mercury/node_modules/.bin/postlight-parser
NODE_BINARY = /opt/archivebox/lib/env/bin/node
PAPERSDL_BINARY = /opt/archivebox/lib/uv/packages/papers-dl/venv/bin/papers-dl
PDFTOPPM_BINARY = /opt/archivebox/lib/env/bin/pdftoppm
READABILITY_BINARY = /opt/archivebox/lib/pnpm/packages/readability/node_modules/.bin/readability-extractor
SONIC_BINARY = /opt/archivebox/lib/env/bin/sonic
TRAFILATURA_BINARY = /opt/archivebox/lib/uv/packages/trafilatura-2.1.0/venv/bin/trafilatura
WGET_BINARY = /opt/archivebox/lib/env/bin/wget
YTDLP_BINARY = /opt/archivebox/lib/uv/packages/yt-dlp/venv/bin/yt-dlp

[SHELL_CONFIG]
SECRET_KEY = (** redacted **)

[SERVER_CONFIG]
SUBMIT_ARCHIVE_DOT_ORG = False