owntone / owntone-container

Workflows and artifacts of the containerisation of OwnTone
https://owntone.github.io/owntone-server
2 stars 1 forks source link

docker compose error #5

Open st0nec0ld opened 6 days ago

st0nec0ld commented 6 days ago

Hi,

i try your docker, testet dietpi and pi os lite, on both same error

Attaching to OwnTone
OwnTone  |
OwnTone  |  * /proc is already mounted
OwnTone  | mount: permission denied (are you root?)
OwnTone  |
OwnTone  |  * Unable to mount tmpfs on /run.
OwnTone  |
OwnTone  |  * Can't continue.
OwnTone  |  * Mounting /run ...   OpenRC 0.52.1 is starting up Linux 6.1.21-v8+ (aarch64) [DOCKER]
OwnTone  |
OwnTone  |  * Caching service dependencies ... [ ok ]
OwnTone  | mkdir: can't create directory '/sys/fs/cgroup/openrc.syslog': Read-only file system
OwnTone  |  * Starting busybox syslog ... [ ok ]
OwnTone  | mkdir: can't create directory '/sys/fs/cgroup/openrc.dbus': Read-only file system
OwnTone  |  * /run/dbus: creating directory
OwnTone  |  * /run/dbus: correcting owner
OwnTone  |  * Starting System Message Bus ... [ ok ]
OwnTone  | mkdir: can't create directory '/sys/fs/cgroup/openrc.avahi-daemon': Read-only file system
OwnTone  |  * Starting avahi-daemon ... [ ok ]
OwnTone  | mkdir: can't create directory '/sys/fs/cgroup/openrc.avahi-dnsconfd': Read-only file system
OwnTone  |  * Starting avahi-dnsconfd ... [ ok ]
OwnTone  | mkdir: can't create directory '/sys/fs/cgroup/openrc.owntone': Read-only file system
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: OwnTone version 28.9 taking off
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: OwnTone version 28.9 taking off
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: Built with:
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: Built with:
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - ffmpeg
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - ffmpeg
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Spotify
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Spotify
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - librespot-c
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - librespot-c
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - LastFM
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - LastFM
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Chromecast
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Chromecast
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - MPD
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - MPD
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Websockets
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Websockets
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - ALSA
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - ALSA
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Webinterface
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Webinterface
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Regex
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: - Regex
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: mDNS init
OwnTone  | [2024-06-29 08:54:11] [  LOG]     mdns: Avahi state change: Client running
OwnTone  | [2024-06-29 08:54:11] [  LOG]       db: Configured to use database file '/var/cache/owntone/database.db'
OwnTone  | [2024-06-29 08:54:11] [  LOG]       db: Could not open '/var/cache/owntone/database.db': unable to open database file
OwnTone  | [2024-06-29 08:54:11] [FATAL]       db: Could not open database
OwnTone  | [2024-06-29 08:54:11] [FATAL]     main: Database init failed
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: mDNS deinit
OwnTone  | [2024-06-29 08:54:11] [  LOG]     main: Exiting.
OwnTone  |  * Starting owntone ... [ ok ]

i use docker compose

version: "3.8"
services:
  owntone:
    image: docker.io/owntone/owntone:latest
    container_name: OwnTone
    network_mode: host
    environment:
      - UID=1000
      - GID=1000
    volumes:
      - /etc/owntone:/etc/owntone
      - /mnt/media:/srv/media
      - /var/cache/owntone:/var/cache/owntone
    restart: unless-stopped

any help?

hacketiwack commented 2 days ago

You should start the container as root. My recommendation would be to use podman with quadlets to run your containers.