linuxserver / docker-daapd

GNU General Public License v3.0
103 stars 37 forks source link

[BUG] <title>New owntone docker compose install error - owntone does not start - Cannot open /etc/owntone.conf #87

Closed yeluripati-ha closed 3 months ago

yeluripati-ha commented 4 months ago

Is there an existing issue for this?

Current Behavior

Used docker compose file to create docker instance using latest image. The container is created and started, but owntone server does not start, docker logs reveal owntone is not able to open the /etc/owntone.conf file. The file is created, and exists but has no rw permissions on it. Manually updating permisssions, changing ownership, nothing seems to work.

Expected Behavior

Owntone server should start up.

Steps To Reproduce

Create a docker instance using the following compose file:

services: owntone: image: "lscr.io/linuxserver/daapd:latest" network_mode: "host" container_name: "owntone" hostname: "owntone" restart: "unless-stopped" volumes:

Environment

- OS: Synology Linux
Linux MediaNAS 4.4.302+ #69057 SMP Fri Jan 12 17:02:28 CST 2024 x86_64 GNU/Linux synology_geminilake_920+
- How docker service was installed:
Container Manager in Synology

CPU architecture

x86-64

Docker creation

docker-compose up --detach --force-recreate

docker-compose.yaml
services:
  owntone:
    image: "lscr.io/linuxserver/daapd:latest"
    network_mode: "host"
    container_name: "owntone"
    hostname: "owntone"
    restart: "unless-stopped"
    volumes:
      - /volume1/documents/owntone-data:/config
      - /volume1/documents/MyBook/Music:/music
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[ls.io-init] done.
[2024-02-20T00:03:05Z INFO  librespot] librespot 0.4.2 UNKNOWN (Built on 2023-08-01, Build ID: 1690865570, Profile: release)
[2024-02-19 18:03:06] [FATAL]   config: Could not open config file /etc/owntone.conf
[2024-02-19 18:03:06] [FATAL]     main: Config file errors; please fix your config
Found user 'avahi' (UID 86) and group 'avahi' (GID 86).
Successfully dropped root privileges.
avahi-daemon 0.8 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Loading service file /etc/avahi/services/sftp-ssh.service.
Loading service file /etc/avahi/services/ssh.service.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
*** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
github-actions[bot] commented 4 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

LinuxServer-CI commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

homerr commented 3 months ago

Tried to replicate this, but cannot. Starts up fine on my Debian host, so guessing this must be a Synology issue, the kernel is quite old from 2016-2017.

Would recommend joining Discord as there may be other Synology users around who could help.