beets-audible icon indicating copy to clipboard operation
beets-audible copied to clipboard

Folders are being created as root

Open alexander-paterson opened this issue 1 year ago • 1 comments

When I run beet import /input the folders that get created are owned by root instead of my user.

This is my docker compose file

version: "3"
services:
  beets:
    image: lscr.io/linuxserver/beets:1.6.0-ls180
    container_name: beets
    environment:
      # Update as needed
      - PUID=1000
      - PGID=100
      - TZ=Europe/London
    ports:
      - 8337:8337
    volumes:
      - /srv/dev-disk-by-uuid-f94e80d8-a1e4-4ee9-8ca1-dbef7eb0d715/_docker_configs/beets/config:/config
      - /srv/dev-disk-by-uuid-f94e80d8-a1e4-4ee9-8ca1-dbef7eb0d715/_docker_configs/beets/scripts:/custom-cont-init.d
      - /srv/dev-disk-by-uuid-ac34a28b-4afa-4cbd-aa8f-1d273b35380b/more_media/audiobooks:/audiobooks
      - /srv/dev-disk-by-uuid-a4322c9b-c2f7-4120-8b71-1444f5d201f2/_downloads/books:/import
    restart: unless-stopped
networks: {}

Looking in the terminal, it appears that beets is running as the correct user.

firefox_Afd1Z6rXVJ

alexander-paterson avatar Aug 24 '24 15:08 alexander-paterson

I don't have any ideas off the top of my head on why that might be, since the plugin doesn't create any folders itself but uses Beets own mechanisms. I would start by creating a shell into the container with that PUID and PGID and troubleshoot from there.

Neurrone avatar Aug 26 '24 13:08 Neurrone

You need to run the shell as a non-root user. Taken from the linuxserver documentation:

docker exec -it -u abc beets bash

andzno1 avatar Sep 23 '24 12:09 andzno1

Closing this to clean up old issues. Let me know if this is still relevant.

Neurrone avatar Nov 03 '24 13:11 Neurrone