Skip to content

[Bug]: Completed files are left in the temp folder when using a /tmpfs mount #871

@ARandomGitGuy

Description

@ARandomGitGuy

Prerequisites

  • I have searched existing issues and discussions to ensure this bug hasn't been reported before
  • I have read the troubleshooting section in the README
  • I have tested this issue with yt-dlp directly (not just through MeTube UI) as described in the README
  • I have checked that this is not a yt-dlp issue (if it is, please report it to yt-dlp repository instead)

Bug Description

when using a tmpfs mount and the download is completed, the file is copied into the actual downloads folder, but the file is also left in the tmpfs mount, which eventually fills up due to the files never being removed.

the files download fine, but the item is duplicated, causing the server to eventually run out of space for new items

yt-dlp Direct Test Results

the actual download works fine when running in the container or via yt-dlp from another machine, but as this assembles in place, there is no move afterwards

Environment & Configuration

Config:

services:
  metube:
    image: ghcr.io/alexta69/metube
    container_name: metube
    restart: unless-stopped
    volumes:
      - /mnt/video:/downloads
      - ./data:/state
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    tmpfs:
      - /tmp:size=20G
    environment:
      - UID=3002
      - GID=3002
      - OUTPUT_TEMPLATE=%(series)s/Season %(season_number)d/%(series)s S%(season_number)02d - E%(episode_number)02d %(title)s [%(id)s].%(ext)s
      - CUSTOM_DIRS=false
      - CREATE_CUSTOM_DIRS=false
      - STATE_DIR=/state
      - TEMP_DIR=/tmp
      - DELETE_FILE_ON_TRASHCAN=true
    logging:
      driver: local
      options:
        max-size: 1m

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions