ytdlp2STRM icon indicating copy to clipboard operation
ytdlp2STRM copied to clipboard

BUG: "Error during container init: crons.json not a directory"

Open INPoppoRTUNE opened this issue 6 months ago • 1 comments

I'm unable to build a container from the docker compose, as it return the following error:

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 "/[...]/crons.json" to rootfs at "/opt/ytdlp2STRM/config/crons.json": mount /[...]/crons.json:/opt/ytdlp2STRM/config/crons.json (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 

It seems that for some reasons it expect a folder instead of a file.

If I try feeding it a folder instead of a file it return the following error during the container building process:

Traceback (most recent call last):
  File "/opt/ytdlp2STRM/main.py", line 10, in <module>
    from clases.cron import cron as cron
  File "/opt/ytdlp2STRM/clases/cron/cron.py", line 10, in <module>
    crons = c.config(
  File "/opt/ytdlp2STRM/clases/config/config.py", line 13, in get_config
    with open(self.config_file, "r") as file:
IsADirectoryError: [Errno 21] Is a directory: './config/crons.json'

where it require a file instead of a folder.

INPoppoRTUNE avatar Jul 30 '24 17:07 INPoppoRTUNE