Closed jptrsn closed 2 years ago
Thanks for opening your first issue here! Be sure to follow the issue template!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Have you solved this problem? I ran into the same problem.
it works well with following docker-compose.yml file:
version: "2.1"
services:
daapd:
image: linuxserver/daapd
container_name: owntone
environment:
- PUID=1000
- PGID=29
- TZ=Asia/Shanghai
volumes:
- /disk/data1/codebase/docker/owntone/config:/config
- /disk/data1/media/music:/music
devices:
- /dev/snd
network_mode: host
restart: unless-stopped
I've switched to using a fifo output instead. As mentioned in the original post, if you use docker to launch a bash terminal inside the container and modify permissions on the sound devices, it will allow you to use local output.
In your case, once the container is running, you would want to run the following comands:
docker exec -it owntone /bin/bash
(bash terminal inside your owntone container)
chmod +666 /dev/snd/*
(add permissions to all sound devices)
exit
(quit the bash terminal)
It would be great if the authors of the docker container could add the command to the docker file and then build a new version of the container, but so far I've not heard anything from anyone.
i mean my case sovled this problem. because the gourp of id:29 has the access permission of audio devices.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have this issue as well, but I use - PGID=50
.
I suspect that very few people will have this issue because very few people change the group ID, however I still feel that this is an important bug to address.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Expected Behavior
Selecting a local audio output should allow user to hear audio from local audio hardware.
Current Behavior
Following messages appear in logs after boot, no local audio will work.
Details of issue are also explored in this issue
Steps to Reproduce
/dev/snd
to devices accessible to container.chmod 666 /dev/snd/*
Environment
OS: Ubuntu Server 20.04.1 CPU architecture: x86_64 How docker service was installed: Docker installed from official repo, running container using docker-compose.
Command used to create docker container (run/create/compose/screenshot)
Docker logs