[GH-ISSUE #1216] Bug: docker - error: exec: "bash": executable file not found in $PATH #746

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

Originally created by @eleaner on GitHub (Aug 22, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1216

Describe the bug

Docker compose when started reports

docker compose logs -f
archivebox  | error: exec: "bash": executable file not found in $PATH
archivebox  | error: exec: "bash": executable file not found in $PATH
archivebox  | error: exec: "bash": executable file not found in $PATH
archivebox  | error: exec: "bash": executable file not found in $PATH
archivebox  | error: exec: "bash": executable file not found in $PATH
archivebox exited with code 1

it seems that bash sits in /bin/bash
but docker_entrypoint.sh expects #!/usr/bin/env bash

Steps to reproduce

  1. create docker-compose.yml
version: '3.7'

services:
    archivebox:
        image: ${DOCKER_IMAGE:-archivebox/archivebox:latest}
        container_name: archivebox
        stdin_open: true
        tty: true
        ports:
            - 8000:8000
        environment:
            - USE_COLOR=True
            - SHOW_PROGRESS=False
        volumes:
            - ./data:/data
  1. docker compose up -d
  2. docker compose logs -f

ArchiveBox version

archivebox/archivebox:latest

Originally created by @eleaner on GitHub (Aug 22, 2023). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1216 #### Describe the bug Docker compose when started reports ``` docker compose logs -f archivebox | error: exec: "bash": executable file not found in $PATH archivebox | error: exec: "bash": executable file not found in $PATH archivebox | error: exec: "bash": executable file not found in $PATH archivebox | error: exec: "bash": executable file not found in $PATH archivebox | error: exec: "bash": executable file not found in $PATH archivebox exited with code 1 ``` it seems that bash sits in /bin/bash but docker_entrypoint.sh expects #!/usr/bin/env bash #### Steps to reproduce 1. create docker-compose.yml ``` version: '3.7' services: archivebox: image: ${DOCKER_IMAGE:-archivebox/archivebox:latest} container_name: archivebox stdin_open: true tty: true ports: - 8000:8000 environment: - USE_COLOR=True - SHOW_PROGRESS=False volumes: - ./data:/data ``` 2. docker compose up -d 3. docker compose logs -f #### ArchiveBox version archivebox/archivebox:latest
kerem closed this issue 2026-03-01 14:46:02 +03:00
Author
Owner

@pirate commented on GitHub (Aug 22, 2023):

strange that this hasnt popped up before, fixed: github.com/ArchiveBox/ArchiveBox@0b6064b7dd

try archivebox/archivebox:dev instead of :latest

<!-- gh-comment-id:1689057904 --> @pirate commented on GitHub (Aug 22, 2023): strange that this hasnt popped up before, fixed: https://github.com/ArchiveBox/ArchiveBox/commit/0b6064b7dd09a8355437364bc6627919d26c1fa5 try `archivebox/archivebox:dev` instead of `:latest`
Author
Owner

@eleaner commented on GitHub (Aug 23, 2023):

@pirate
it did not help

<!-- gh-comment-id:1690311865 --> @eleaner commented on GitHub (Aug 23, 2023): @pirate it did not help
Author
Owner

@pirate commented on GitHub (Nov 9, 2023):

try archivebox/archivebox:0.7.1, just released recently

<!-- gh-comment-id:1803320023 --> @pirate commented on GitHub (Nov 9, 2023): try `archivebox/archivebox:0.7.1`, just released recently
Author
Owner

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

Closing as stale, comment if you're still having problems.

<!-- gh-comment-id:1899764444 --> @pirate commented on GitHub (Jan 19, 2024): Closing as stale, comment if you're still having problems.
Author
Owner

@ede1998 commented on GitHub (Oct 5, 2024):

Leaving this in case anyone else might find it useful:
I had the same error now. It turns out that it was an outdated docker version in my case. 0.19.X seems to be too old. It works now after updating docker.

<!-- gh-comment-id:2395117452 --> @ede1998 commented on GitHub (Oct 5, 2024): Leaving this in case anyone else might find it useful: I had the same error now. It turns out that it was an outdated docker version in my case. `0.19.X` seems to be too old. It works now after updating docker.
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#746
No description provided.