Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Entries per Song after fresh creation #109

Open
KaeTuuN opened this issue Oct 17, 2023 · 2 comments
Open

Multiple Entries per Song after fresh creation #109

KaeTuuN opened this issue Oct 17, 2023 · 2 comments

Comments

@KaeTuuN
Copy link

KaeTuuN commented Oct 17, 2023

Seems related to ampache/ampache#1374

Created completely from scratch and lots of Songs got added 2 - 6 times.

Added catalogue Soundtracks, everthing was fine.
Added catalogue Sampler and nearly every song got added at least two times.
Stopped adding further catalogues.

Catalogue differences:

Value Soundtracks Sampler
added first second
albums 20 150
filenames %a - %T - %t %T - %a - %t

Here is my docker-compose file, created with https://github.com/Red5d/docker-autocompose

services:
  ampache:

    cap_drop:
      - "AUDIT_CONTROL"
      - "BLOCK_SUSPEND"
      - "DAC_READ_SEARCH"
      - "IPC_LOCK"
      - "IPC_OWNER"
      - "LEASE"
      - "LINUX_IMMUTABLE"
      - "MAC_ADMIN"
      - "MAC_OVERRIDE"
      - "NET_ADMIN"
      - "NET_BROADCAST"
      - "SYSLOG"
      - "SYS_ADMIN"
      - "SYS_BOOT"
      - "SYS_MODULE"
      - "SYS_NICE"
      - "SYS_PACCT"
      - "SYS_PTRACE"
      - "SYS_RAWIO"
      - "SYS_RESOURCE"
      - "SYS_TIME"
      - "SYS_TTY_CONFIG"
      - "WAKE_ALARM"

    command:
      - "run.sh"

    container_name: "ampache"

    entrypoint:
      - "docker-entrypoint.sh"

    environment:
      - "UID=1001"
      - "GID=1001"
      - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
      - "DEBIAN_FRONTEND=noninteractive"
      - "MYSQL_PASS=**Random**"

    hostname: "2944f0aa4bec"

    image: "ampache/ampache:latest"

    ipc: "private"

    labels:
      maintainer: "lachlan-00"

    logging:
      driver: "json-file"
      options: {}

    mac_address: "<removed>"

    network_mode: "<removed>"

    ports:
      - "<removed>:80/tcp"

    restart: "unless-stopped"

    volumes:
      - "/srv/data/audiobooks:/media/audiobooks"
      - "/srv/data/music:/media/music"
      - "/srv/data/sampler:/media/sampler"
      - "/srv/data/soundtracks:/media/soundtracks"
      - "966330e2982f359c2eafe1f992a9dfc30001c7f3a9b227be2ce1793e5144ca42:/etc/mysql"
      - "ampache_config:/var/www/config"
      - "ampache_log:/var/log/ampache"
      - "ampache_sql:/var/lib/mysql"

version: "3.6"

volumes:
  966330e2982f359c2eafe1f992a9dfc30001c7f3a9b227be2ce1793e5144ca42:
    external: true
  ampache_config:
    external: true
  ampache_log:
    external: true
  ampache_sql:
    external: true
@nicklayb
Copy link

nicklayb commented Nov 22, 2023

I'm experiencing the same, I'm surprised it doesn't deduplicate by file name. All (or the largest majority, haven't check them all individually) my files are present 3 times

Left: Song ID 7944; Right: Song ID 7943
image

Same file path. I'm suspecting the discovery is running in parallel 3 times but I can't find anywhere in the app to inspect/stop it.

Edit: Deleting and recreating did the same

@KaeTuuN
Copy link
Author

KaeTuuN commented Nov 23, 2023

I'm suspecting the discovery is running in parallel 3 times

Possible, but then I expect to have ALL songs the same multiple times added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants