Skip to content

summarize-notes.md: not a directory: unknown: Are you trying to mount a directory onto a file #2

@mathiasconradt

Description

@mathiasconradt

Trying to run the app via docker-compose and created a config.yml

It fails cause the md file is a file, not a folder. Is that intentional?

 ⠹ Container echonotes-echonotes-1  Starting 0.3s 
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/mconradt/Documents/echonotes/summarize-notes.md" to rootfs at "/app/summarize-notes.md": mount /home/mconradt/Documents/echonotes/summarize-notes.md:/app/summarize-notes.md (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

tree:

░▒▓      ~/Documents/echonotes/echonotes     main ▓▒░ tree                                                                                                                                    ░▒▓ 1 ✘  23:11:42   ▓▒░
.
├── config.sample.yml
├── config.yml
├── Dockerfile
├── incoming
├── main.py
├── README.md
├── requirements.txt
├── run.sh
├── sample-pdf-file.pdf
└── summarize-notes.md

2 directories, 9 files

When I make it a directory instead and start it via docker, I get this when placing a pdf in the incoming folder:

2025-07-27 21:04:06,011 - INFO - Moved /app/incoming/sample-pdf-file.pdf to /app/incoming/working/sample-pdf-file.pdf
2025-07-27 21:04:06,011 - INFO - Processing PDF: /app/incoming/working/sample-pdf-file.pdf
2025-07-27 21:04:06,012 - INFO - Extracting text from /app/incoming/working/sample-pdf-file.pdf
2025-07-27 21:04:06,079 - INFO - Extracted text written to /app/incoming/working/sample-pdf-file_extracted.txt
2025-07-27 21:04:06,079 - ERROR - Error reading markdown prompt file /app/summarize-notes.md: [Errno 21] Is a directory: '/app/summarize-notes.md'
2025-07-27 21:04:06,079 - ERROR - Error processing /app/incoming/sample-pdf-file.pdf: [Errno 21] Is a directory: '/app/summarize-notes.md'

By the way: is this project still maintained or was it just a proof of concept? Came across it via a Reddit post on Scriberr. But seems that the last commit was 10 months ago.

Docker version 26.1.5+dfsg1, build a72d7cd
on Kali Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions