Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


MPD error Failed to Open Output
#1
The following is from the last error in the MPD log:

2024-03-03 20:19:11.816785 ERROR [src/bin.rs:286] Playback error: ALSA function 'snd_pcm_open' failed with error 'EINVAL: Invalid argument'
2024-03-03 20:19:11.817014 INFO [src/processing.rs:37] Playback thread has already stopped.
Mar 03 20:19 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_poll_descriptors_revents() failed: No such device
Mar 03 20:19 : exception: Failed to open audio output

The menu setting (reentered and 'Set') is for ALSA Direct) as has been working fine in my recent 8.3.9 fresh install on my RPi 4B. This is with my Protodac and the CDSP using the provided V2 configuration. It hits this error on both the SD card channel test and my music file from external USB SSD drives.

I'm happy to run diagnostics ...

Thanks, Skip
Reply
#2
Reboot and post the startup log.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from the any of the Config screens. The startup log will be at the end of System info output.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(03-04-2024, 11:27 AM)Tim Curtis Wrote: Reboot and post the startup log.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from the any of the Config screens. The startup log will be at the end of System info output.
Here goes:
Code:
20240304 081956 worker: --
20240304 081956 worker: -- Start moOde 8 series
20240304 081956 worker: --
20240304 081956 worker: Successfully daemonized
20240304 081956 worker: Wait for Linux startup...
20240304 082008 worker: Linux startup complete
20240304 082008 worker: Boot config backed up
20240304 082009 worker: Session loaded
20240304 082011 worker: Package holds applied
20240304 082012 worker: File check complete
20240304 082012 worker: Debug logging off
20240304 082012 worker: Reduced logging off
20240304 082012 worker: --
20240304 082012 worker: -- Audio debug
20240304 082012 worker: --
20240304 082012 worker: ALSA cards:   0:sndrpirpidac | 1:empty | 2:empty | 3:empty
20240304 082012 worker: MPD config:   0:ProtoDAC TDA1387 X8 | mixer:none | cardnum:0
20240304 082012 worker: Mixer name:   none exists
20240304 082012 worker: Hdwr volume:  controller not detected
20240304 082012 worker: Volume knob:  67
20240304 082012 worker: --
20240304 082012 worker: -- System
20240304 082012 worker: --
20240304 082013 worker: Host:     moode
20240304 082013 worker: Model:    Pi-4B 1.1 4GB
20240304 082013 worker: moOde:    8.3.9 2024-02-23
20240304 082013 worker: RaspiOS:  11.9 Bullseye 64-bit
20240304 082013 worker: Kernel:   6.1.21 64-bit
20240304 082013 worker: MPD ver:  0.23.14
20240304 082013 worker: CPU gov:  ondemand
20240304 082013 worker: Userid:   spack
20240304 082013 worker: Homedir:  /home/spack
20240304 082013 worker: Timezone: America/Los_Angeles
20240304 082013 worker: Keyboard: us
20240304 082014 worker: USB boot: enabled
20240304 082014 worker: File sys: expanded
20240304 082014 worker: HDMI out: off
20240304 082014 worker: Sys LED0: on
20240304 082014 worker: Sys LED1: on
20240304 082014 worker: --
20240304 082014 worker: -- Network
20240304 082014 worker: --
20240304 082014 worker: Eth: adapter exists
20240304 082014 worker: Eth: timeout off
20240304 082014 worker: Eth: method  dhcp
20240304 082014 worker: Eth: address 192.168.1.3
20240304 082014 worker: Eth: netmask 255.255.255.0
20240304 082014 worker: Eth: gateway 192.168.1.1
20240304 082014 worker: Eth: pri DNS 192.168.1.1
20240304 082014 worker: Eth: domain  lan
20240304 082014 worker: Wlan: adapter does not exist
20240304 082014 worker: --
20240304 082014 worker: -- Software update
20240304 082014 worker: --
20240304 082014 worker: Automatic check off
20240304 082014 worker: --
20240304 082014 worker: -- File sharing
20240304 082014 worker: --
20240304 082014 worker: SMB file sharing:  off
20240304 082014 worker: NFS file sharing:  off
20240304 082014 worker: DLNA file sharing: off
20240304 082014 worker: --
20240304 082014 worker: -- Audio config
20240304 082014 worker: --
20240304 082014 worker: MPD config:    updated
20240304 082014 worker: Audio device:  ProtoDAC TDA1387 X8
20240304 082014 worker: Formats:       S16_LE, S24_LE
20240304 082014 worker: Mixer type     CamillaDSP
20240304 082014 worker: Mixer name     none exists
20240304 082014 worker: Hdwr volume:   controller not detected
20240304 082014 worker: ALSA card:     0
20240304 082014 worker: ALSA mode:     Direct
20240304 082014 worker: ALSA loopback: off
20240304 082015 worker: CamillaDSP:    V2-ProtoDAC
20240304 082015 worker: Renderers:     active flags reset
20240304 082015 worker: --
20240304 082015 worker: -- MPD startup
20240304 082015 worker: --
20240304 082015 worker: MPD service:        started
20240304 082015 worker: MPD port 6600:      accepting connections
20240304 082015 worker: MPD ALSA Default:   on
20240304 082015 worker: MPD ALSA Bluetooth: off
20240304 082015 worker: MPD HTTP Server:    off
20240304 082015 worker: MPD crossfade:      off
20240304 082015 worker: MPD ignore CUE:     no
20240304 082015 worker: MPD CDSP volsync:   on
20240304 082015 worker: MPD CDSP volrange:  60 dB
20240304 082015 worker: --
20240304 082015 worker: -- Music sources
20240304 082015 worker: --
20240304 082015 worker: USB auto-mount: udisks-glue
20240304 082015 worker: USB drives:     no drives found
20240304 082015 worker: NAS sources:    no music sources defined
20240304 082015 worker: --
20240304 082015 worker: -- Feature availability
20240304 082015 worker: --
20240304 082015 worker: Input select:    available, src MPD, out ProtoDAC TDA1387 X8
20240304 082015 worker: Bluetooth:       available, ALSA mode Default
20240304 082015 worker: AirPlay:         available
20240304 082015 worker: Spotify Connect: available
20240304 082015 worker: Squeezelite:     available
20240304 082015 worker: RoonBridge:      not installed
20240304 082015 worker: Multiroom:       available
20240304 082015 worker: UPnP client:     available
20240304 082015 worker: GPIO buttons:    available
20240304 082015 worker: HTTPS mode:      available
20240304 082015 worker: Stream recorder: n/a
20240304 082015 worker: --
20240304 082015 worker: -- Volume levels
20240304 082015 worker: --
20240304 082015 worker: Volume knob:   67
20240304 082015 worker: Saved MPD vol: -1
20240304 082015 worker: Saved SRC vol: 0
20240304 082015 worker: Mixer type:    null
20240304 082015 worker: Hdwr volume:   controller not detected
20240304 082015 worker: CDSP volume:   -19.8dB
20240304 082015 worker: --
20240304 082015 worker: -- Peripherals
20240304 082015 worker: --
20240304 082016 worker: Local display:   off
20240304 082016 worker: On-screen kbd:   off
20240304 082016 worker: Rotary encoder:  off
20240304 082016 worker: USB volume knob: off
20240304 082016 worker: LCD updater:     off
20240304 082016 worker: --
20240304 082016 worker: -- Miscellaneous
20240304 082016 worker: --
20240304 082016 worker: Auto-CoverView:    off
20240304 082016 worker: CoverView timeout: Never
20240304 082016 worker: Auto-shuffle:      off
20240304 082016 worker: Auto-play:         off
20240304 082016 worker: Web SSH server:    off
20240304 082016 worker: Maintenance task:  360 mins
20240304 082016 worker: Current view:      reset to Playback
20240304 082016 worker: Session check:     ok
20240304 082016 worker: --
20240304 082016 worker: -- Startup complete
20240304 082016 worker: --
20240304 082016 worker: Mount monitor:    off
20240304 082016 worker: Radio monitor:    off
20240304 082016 worker: Watchdog monitor: started
20240304 082016 worker: Responsiveness:   Default
20240304 082016 worker: Ready
Reply
#4
Many confusing issues related to booting, mounting usb3 SSD drives, and database generation. Please await further info before putting in any time.

Thanks, Skip
Reply
#5
Sure, no prob. The log looks ok btw.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: