I have my tmp directory mapped to an SMB share. Youtarr is trying to delete that directory on startup, but it cannot and errors out. It would be nice to have Youtarr switch from deleting the tmp directory itself to cleaning the leftover files inside it instead.
Logs:
tempBasePath=/tmp/youtarr-downloads
[2026-09-15 23:33:10.891 +0000] INFO: Cleaning temp directory
[2026-09-15 23:33:10.902 +0000] DEBUG: WebSocket client connected
tempBasePath=/tmp/youtarr-downloads
[2026-09-15 23:33:10.922 +0000] ERROR: Error cleaning temp directory
err: {
"type": "Error",
"message": "EBUSY: resource busy or locked, rmdir '/tmp/youtarr-downloads'",
"stack":
Error: EBUSY: resource busy or locked, rmdir '/tmp/youtarr-downloads'
"errno": -16,
"code": "EBUSY",
"syscall": "rmdir",
"path": "/tmp/youtarr-downloads"
}
[2026-09-15 23:33:10.923 +0000] ERROR: Error cleaning temp directory on startup
err: {
"type": "Error",
"message": "Failed to clean temp directory: EBUSY: resource busy or locked, rmdir '/tmp/youtarr-downloads'",
"stack":
Error: Failed to clean temp directory: EBUSY: resource busy or locked, rmdir '/tmp/youtarr-downloads'
at TempPathManager.cleanTempDirectory (/app/server/modules/download/tempPathManager.js:167:13)
at async DownloadModule.initializeTempDirectory (/app/server/modules/downloadModule.js:31:7)
}
Docker Compose:
/home/administrator/containers: local storage
/home/administrator/mnt: SMB share
youtarr:
image: dialmaster/youtarr:latest
container_name: Youtarr
restart: always
depends_on:
youtarr-db:
condition: service_healthy
gluetun4:
condition: service_started
bgutil-provider:
condition: service_started
environment:
IN_DOCKER_CONTAINER: 1
TZ: America/Chicago
DB_HOST: Youtarr-DB
DB_PORT: 3321
DB_USER: youtarr
DB_PASSWORD: **********
DB_NAME: youtarr
AUTH_ENABLED: true
LOG_LEVEL: debug
YOUTUBE_OUTPUT_DIR: /home/administrator/mnt/Main/Media/MediaLibraries/YouTube/youtarr
YOUTARR_COOKIES_FILE: /app/config/cookies.txt
# ports:
# - 3011:3011
volumes:
- /home/administrator/mnt/Main/Media/MediaLibraries/YouTube/youtarr:/usr/src/app/data
- /home/administrator/containers/youtarr/images:/app/server/images
- /home/administrator/containers/youtarr/config:/app/config
- /home/administrator/containers/youtarr/jobs:/app/jobs
- /home/administrator/mnt/MainFast/ActiveMedia/Youtarr:/tmp/youtarr-downloads
- /home/administrator/mnt/Main/MediaUnfinished/Downloads/Firefox/cookies.txt:/app/config/cookies.txt
network_mode: "container:Gluetun4_No-Port-Fwd"
healthcheck:
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--output", "/dev/null", "http://localhost:3011/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
I have my tmp directory mapped to an SMB share. Youtarr is trying to delete that directory on startup, but it cannot and errors out. It would be nice to have Youtarr switch from deleting the tmp directory itself to cleaning the leftover files inside it instead.
Logs:
Docker Compose:
/home/administrator/containers: local storage/home/administrator/mnt: SMB share