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

Balena audio-block error: "amixer: Control sysdefault:1 element write error: Operation not permitted" #104

Open
Orbisti95 opened this issue Jan 15, 2024 · 0 comments

Comments

@Orbisti95
Copy link

Orbisti95 commented Jan 15, 2024

Hi there,
I'm using balena along with balena-browser https://github.com/balena-labs-projects/browser and balena-audio for my app (also using appache and websocket for communication) which is running in kiosk mode. My web app is playing some videos, user hearing the sound via headhones from 3.5mm jack. This setup worked perfectly for months.
I don't know why, maybe some version changed, but now I'm getting an error message from the audio service:
amixer: Control sysdefault:1 element write error: Operation not permitted
and sound is not working on device.

Device has type of Generic x86_64 (GPT).
Adding content of my docker-compose here:

version: '2'

volumes:
  settings:                          # Only required if using PERSISTENT flag (see below)
  html:
  pulse:
services:

  browser:
    build: ./kiosk
    privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse
    network_mode: host
    depends_on:
      - wsserver
      - apache
      - audio
    volumes:
      - 'settings:/data' # Only required if using PERSISTENT flag (see below)
      - 'html:/home/html'
      - 'pulse:/run/pulse'        # Only required if using PA over UNIX socket 
    ports:
      - "8900:5900"
    labels:
      io.balena.features.dbus: '1'
    cap_add:
      - NET_ADMIN
    environment:
      DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
  wsserver:
    hostname: wsserver
    build: ./wsserver
    privileged: true # required for UDEV to find plugged in peripherals such as a USB mouse
    network_mode: host
    ports:
      - "8080:8080"
    depends_on:
      - apache
  apache:
    build: ./apache
    privileged: true
    network_mode: host
    ports:
        - '80'
    volumes:
        - html:/var/www/html

  audio:
    image: bhcr.io/balenalabs/audio-amd64
    privileged: true
    ports:
      - 4317:4317
    labels:
      io.balena.features.dbus: '1'
    volumes:
      - pulse:/run/pulse

Also getting these logs on balena-cloud:
Its seems audi service is failing and keep trying to restart.
image

Could anyone help me with this?
I'm read all the sites, tips found on internet. Nothing helped.

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

1 participant