echonotes icon indicating copy to clipboard operation
echonotes copied to clipboard

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

Open mathiasconradt opened this issue 8 months ago • 2 comments

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

mathiasconradt avatar Jul 27 '25 21:07 mathiasconradt

It would be considerd a proof of concept. A fun project I threw together.

Are you able to share your command which you used to run the container?

specifically the volume mounts

nothingmn avatar Jul 30 '25 18:07 nothingmn

I use docker compose up -d with the sample from the README:

$ cat docker-compose.yml      
version: '3.8'
services:
  echonotes:
    image: echonotes:latest
    volumes:
      - ./incoming:/app/incoming
      - ./config.yml:/app/config.yml
      - ./summarize-notes.md:/app/summarize-notes.md
    restart: unless-stopped

and the config:

cat config.yml                                                                                                                                            
api_url: "https://df886118a88f.ngrok-free.app/api/generate"
bearer_token: ""
model: "mistral-small:22b"
whisper_model: "tiny"  #see the dockerfile, we pre-download tiny, base, and small

When I drop pdf files in the incoming folder, I can see them being moved to the 'working' folder, but that's it, nothing more happens. Except for the thrown error.

mathiasconradt avatar Jul 30 '25 19:07 mathiasconradt