Networkaudiod error

Creating a bug report/issue

Required Information

  • DietPi version | 8.5.1
  • Distro version | bullseye 0
  • Kernel version | 5.15.32-v7+
  • SBC model | RPi 3 Model B (armv7l)
  • Power supply used | HDPlex
  • SD card used | SanDisk Xtreme

Additional Information (if applicable)

  • Software title | networkaudiod / Naa Player
  • Was the software title installed freshly or updated/migrated? no
  • Can this issue be replicated on a fresh installation of DietPi? reinstalled networkaudiod

Steps to reproduce

  1. reboot pi, reboot the hqplayer server
  2. play through hqp client

Expected behaviour

  • music

Actual behaviour

  • nothing

Extra details

Worked until I updated to 8.5.1 this morning

● networkaudiod.service - Network Audio Adapter daemon
     Loaded: loaded (/lib/systemd/system/networkaudiod.service; disabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-05-30 23:17:33 BST; 15min ago
   Main PID: 1004 (networkaudiod)
      Tasks: 1 (limit: 2179)
        CPU: 621ms
     CGroup: /system.slice/networkaudiod.service
             └─1004 /usr/sbin/networkaudiod

May 30 23:31:11 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): push to queue timed out!
May 30 23:31:11 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): begin disconnection
May 30 23:31:11 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): ALSA output engine stopping...
May 30 23:31:12 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): ALSA output engine stop request...
May 30 23:31:13 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): clALSAEngine::Stop(): snd_pcm_wait()
May 30 23:31:24 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): snd_pcm_drain() failed: (-5) Unknown error -5
May 30 23:31:24 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): ALSA output engine stopped
May 30 23:31:24 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): ALSA output backend uninitialized
May 30 23:31:24 pi3 networkaudiod[1097]: sh: 1: /etc/networkaudiod/ondisconnected: not found
May 30 23:31:24 pi3 networkaudiod[1004]: [/usr/sbin/networkaudiod] (1004): disconnected 192.168.1.36:56384
root@pi3:~# aplay -l 
**** List of PLAYBACK Hardware Devices ****
card 0: sndallodigione [snd_allo_digione], device 0: Allo DigiOne HiFi wm8804-spdif-0 [Allo DigiOne HiFi wm8804-spdif-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Welcome to our community.

Would it be possible to share the entire log

journalctl -u networkaudiod.service

And do you have a backup that could be used to restore to a previous state?

Also, does local audio playback with the DigiOne work? speaker-test

Unfortunately no backup, I use Naa on another device (odroid c2) with dietpi and usb, that one works fine.

Cannot upload the journalctl output.

-- Journal begins at Tue 2022-05-31 08:56:08 CEST, ends at Tue 2022-05-31 08:57:41 CEST. --
May 31 08:56:23 pi3 systemd[1]: Started Network Audio Adapter daemon.
May 31 08:56:23 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): networkaudiod Copyright (C) 2011-2022 Jussi Laako / Signalyst. All rights reserved.
May 31 08:56:23 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): create alsa engine
May 31 08:56:23 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): listen discovery on ::
May 31 08:56:23 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): listen discovery on 0.0.0.0
May 31 08:56:24 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): discovery from 192.168.1.36:42032
May 31 08:56:24 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): discovery from 192.168.1.36:42032
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): connection from 192.168.1.36:44222
May 31 08:56:25 pi3 networkaudiod[606]: sh: 1: /etc/networkaudiod/onconnected: not found
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): asoundlib version: 1.2.4
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): Found ALSA device: hw:CARD=sndallodigione,DEV=0 - snd_allo_digione: Allo DigiOne HiFi wm8804-spdif-0
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): begin disconnection
May 31 08:56:25 pi3 networkaudiod[608]: sh: 1: /etc/networkaudiod/ondisconnected: not found
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): disconnected 192.168.1.36:44222
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): connection from 192.168.1.36:44224
May 31 08:56:25 pi3 networkaudiod[610]: sh: 1: /etc/networkaudiod/onconnected: not found
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): Input set channels: 2 (2)
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): Input supports DSD with any base rate
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): asoundlib version: 1.2.4
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output device: hw:CARD=sndallodigione,DEV=0
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output control element: Tx Source
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output mixer element: Tx Source
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output access mode: RW_INTERLEAVED
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format: S24_LE
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM bits: 32
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM physical width: 32
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM rates: 32000 - 192000
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output DSD not supported
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 32000
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 44100
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 48000
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 64000
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 88200
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 96000
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 176400
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output rate available: 192000
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output backend initialized
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 32000/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 44100/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 48000/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 64000/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 88200/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 96000/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 176400/32/2
May 31 08:56:25 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output PCM format available: 192000/32/2
May 31 08:57:18 pi3 networkaudiod[978]: sh: 1: /etc/networkaudiod/onstart: not found
May 31 08:57:18 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): start 192000/32/2 [pcm]
May 31 08:57:18 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output set channels: 2 (2)
May 31 08:57:18 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output set sampling rate: 192000 (192000)
May 31 08:57:18 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): enter streaming mode
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output engine starting...
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output set hardware parameters for requested rate: 192000
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output channels: 2 - 2
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output active channels: 2
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output number of periods: 2 - 2048
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output period times: 166 - 85334
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output period sizes: 32 - 16384
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output period time: 85333
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output periods: 16384 (85) / 4
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output engine started at: 192000 (192000)
May 31 08:57:19 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output engine running...
May 31 08:57:29 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): push to queue timed out!
May 31 08:57:29 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): begin disconnection
May 31 08:57:29 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output engine stopping...
May 31 08:57:30 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output engine stop request...
May 31 08:57:31 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): clALSAEngine::Stop(): snd_pcm_wait()
May 31 08:57:41 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): snd_pcm_drain() failed: (-5) Unknown error -5
May 31 08:57:41 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output engine stopped
May 31 08:57:41 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): ALSA output backend uninitialized
May 31 08:57:41 pi3 networkaudiod[985]: sh: 1: /etc/networkaudiod/ondisconnected: not found
May 31 08:57:41 pi3 networkaudiod[475]: [/usr/sbin/networkaudiod] (475): disconnected 192.168.1.36:44224

Simply copy your output into a *.txt file. This one should be possible to upload.


Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

No. But this device also works with usb, so it seems to be a problem with the digione driver. Don’t see any error messages, however.

card 0: sndallodigione [snd_allo_digione], device 0: Allo DigiOne HiFi wm8804-spdif-0 [Allo DigiOne HiFi wm8804-spdif-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Seems to be a known issue. Tried Ropieee, does not work either.

Works again, no idea, what the problem was.

Thx for sharing. I will have a look to our forum configuration

ok I updated our forum setting to allow new user to add 1 attachment per post. Hope this will help :smiley:

Btw speaker-test -c 2 should work. It might be possible that some audio sources have a format that is not natively supported be the sound card (like 1 channel with speaker-test. In this case the auto-conversion plugin should help, which can be enabled in dietpi-config.

Yes, thanks, this works. The device is fully functional, maybe there was a problem with the power supplies.