Thank you for your donation!


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


Problem: mpd fails due to thesycon_dsd_workaround config entry
#1
I get this error:


Code:
Dec 18 10:33:45 moode mpd[1008]: Dec 18 10:33 : exception: Failed to configure output in line 49; Error in setting "thesycon_dsd_workaround" on line 59; Not a valid boolean ("yes" or "no"): ""

Dec 18 10:33:45 moode systemd[1]: mpd.service: Main process exited, code=exited, status=1/FAILURE

It appears that /etc/mpd.conf has “” as value for this config entry.
If I edit it and restart mpd it works again, but after rebooting the OS, the entry is reverted to “” because the file is ‘generated by the mpd configuration page’.
Reply
#2
Reboot and post the information below.

Code:
# Moode startup log
moodeutl -l

# Directory listing
ls -l /var/local/www

ETA: Also post the following SQL dump
Code:
moodeutl -q "select * from cfg_mpd"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(12-18-2021, 11:58 AM)Tim Curtis Wrote: Reboot and post the information below.

Code:
# Moode startup log
moodeutl -l

# Directory listing
ls -l /var/local/www

20211218 103206 worker: -- Start
20211218 103207 worker: Successfully daemonized
20211218 103208 worker: Integrity check (passed)
20211218 103209 command/index: Connection to MPD failed
20211218 103210 worker: File check (OK)
20211218 103210 moode.php: MPD connect failed: cmd=(playlist)
20211218 103211 worker: Session vacuumed
20211218 103211 worker: Session loaded
20211218 103211 worker: Debug logging (OFF)
20211218 103211 worker: -- Audio debug
20211218 103211 worker: ALSA cards: (0:IQaudIODAC | 1:empty | 2:empty | 3:empty
20211218 103211 worker: MPD config: (0:IQaudIO Pi-DAC+ | mixerSadDigital) | card:0)
20211218 103212 worker: ALSA mixer actual (Digital)
20211218 103212 worker: ALSA Digital volume set to (0%)
20211218 103212 worker: -- System
20211218 103213 moode.php: MPD connect failed: cmd=(playlist)
20211218 103214 moode.php: MPD connect failed: cmd=(playlist)
20211218 103214 worker: Host     (moode)
20211218 103214 worker: moOde    (7.6.0 2021-11-20)
20211218 103214 worker: RaspiOS  (10.11)
20211218 103214 worker: Kernel   (5.10.63-v7+ #1496)
20211218 103214 worker: Platform (Pi-2B 1.1 1GB)
20211218 103214 worker: ARM arch (armv7l, 32-bit kernel)
20211218 103214 worker: MPD ver  (0.23.4_p0x3)
20211218 103214 worker: CPU gov  (ondemand)
20211218 103214 worker: USB boot not available
20211218 103215 worker: File system expanded
20211218 103215 worker: HDMI port off
20211218 103215 worker: -- Network
20211218 103215 worker: IP address check timeout (90 secs)
20211218 103215 worker: eth0 adapter exists
20211218 103215 worker: eth0 IP address check (No)
20211218 103215 worker: IP addr (10.20.30.54)
20211218 103215 worker: Netmask (255.255.255.0)
20211218 103215 worker: Gateway (10.20.30.254)
20211218 103215 worker: Pri DNS (10.20.30.254)
20211218 103215 worker: Domain  (fritz.box)
20211218 103215 worker: wlan0 adapter does not exist
20211218 103215 worker: -- Audio config
20211218 103216 worker: MPD conf updated
20211218 103216 worker: ALSA card number (0)
20211218 103216 worker: MPD audio output (IQaudIO Pi-DAC+)
20211218 103217 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20211218 103217 worker: ALSA mixer name (Digital)
20211218 103217 worker: MPD mixer type (hardware)
20211218 103217 worker: Hdwr volume controller exists
20211218 103217 worker: Max ALSA volume (100%)
20211218 103217 worker: ALSA output mode (Direct: hw)
20211218 103217 worker: ALSA loopback (Off)
20211218 103217 worker: Reset renderer active flags
20211218 103217 worker: CamillaDSP (off)
20211218 103217 worker: -- MPD startup
20211218 103217 worker: MPD started
20211218 103240 worker: MPD accepting connections
20211218 103240 worker: MPD crossfade (off)
20211218 103240 worker: MPD ignore CUE files (yes)
20211218 103240 worker: -- Feature availability
20211218 103240 worker: Source select (available)
20211218 103240 worker: Source select (source: MPD)
20211218 103240 worker: Source select (output: IQaudIO Pi-DAC+)
20211218 103240 worker: Bluetooth (available)
20211218 103240 worker: Airplay renderer (available: started)
20211218 103240 worker: Spotify renderer (available: started)
20211218 103240 worker: Squeezelite (available)
20211218 103240 worker: RoonBridge renderer (not installed)
20211218 103240 worker: Multiroom sender (available)
20211218 103240 worker: Multiroom receiver (available)
20211218 103240 worker: UPnP renderer (available)
20211218 103240 worker: DLNA server (available)
20211218 103240 worker: UPnP browser (available)
20211218 103240 worker: GPIO button handler (available)
20211218 103240 worker: Stream recorder (n/a)
20211218 103240 worker: -- Music sources
20211218 103240 worker: USB sources (none attached)
20211218 103241 worker: NAS and UPnP sources (mountall initiated)
20211218 103241 worker: -- Other
20211218 103241 worker: USB volume knob (Off)
20211218 103241 worker: Shellinabox SSH started
20211218 103241 worker: USB auto-mounter (udisks-glue)
20211218 103241 worker: LED0 (On)
20211218 103241 worker: LED1 (On)
20211218 103241 worker: Saved MPD vol level (0)
20211218 103241 worker: Preamp volume level (0)
20211218 103242 worker: MPD volume level (100) restored
20211218 103242 worker: ALSA Digital volume (0%)
20211218 103242 worker: Auto-play (Off)
20211218 103242 worker: Maintenance interval (3 hours)
20211218 103242 worker: Screen saver activation (Never)
20211218 103242 worker: Session permissions (OK)
20211218 103242 worker: Watchdog started
20211218 103242 worker: Ready
20211218 103243 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103249 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103249 moode.php: MPD connect failed: cmd=(playlist)
20211218 103250 moode.php: MPD connect failed: cmd=(playlist)
20211218 103255 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103256 moode.php: MPD connect failed: cmd=(playlist)
20211218 103301 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103308 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103314 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103314 moode.php: MPD connect failed: cmd=(playlist)
20211218 103320 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103320 moode.php: MPD connect failed: cmd=(playlist)
20211218 103326 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103327 moode.php: MPD connect failed: cmd=(playlist)
20211218 103333 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103339 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103339 moode.php: MPD connect failed: cmd=(playlist)
20211218 103348 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103349 moode.php: MPD connect failed: cmd=(playlist)
20211218 103354 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103400 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103407 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103413 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103419 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103425 watchdog: Error: MPD restarted (check syslog for errors)
20211218 103527 worker: Job alsa_output_mode


total 23288
drwxr-xr-x 2 root staff     4096 Dec  8  2020 commandw
-rwxrwxrwx 1 root staff        0 Dec 18 10:32 currentsong.txt
drwxrwxrwx 2 root staff     4096 Dec 18 14:19 db
drwxr-xr-x 5 root staff     4096 Dec 23  2020 imagesw
-rwxrwxrwx 1 root root  23758263 Dec 18 10:32 libcache_all.json
-rwxrwxrwx 1 root root         0 Dec 18 10:32 libcache_folder.json
-rwxrwxrwx 1 root root         0 Dec 18 10:32 libcache_format.json
-rwxrwxrwx 1 root root         0 Dec 18 10:32 libcache_hdonly.json
-rwxrwxrwx 1 root root         0 Dec 18 10:32 libcache_lossless.json
-rwxrwxrwx 1 root root         0 Dec 18 10:32 libcache_lossy.json
-rwxrwxrwx 1 root root         0 Dec 18 10:32 libcache_tag.json
-rwxrwxrwx 1 root root        32 Dec 23  2020 playhistory.log
drwxr-xr-x 3 root root      4096 Feb 26  2021 spotify_cache
-rwxrwxrwx 1 root root         0 Dec 18 10:32 sysinfo.txt
-rw-r--r-- 1 root root      1836 Mar 18  2021 update-r701.log
-rw-r--r-- 1 root root      3808 Mar 18  2021 update-r701.txt
-rw-r--r-- 1 root root       662 Apr 29  2021 update-r710.log
-rw-r--r-- 1 root root      2280 Apr 28  2021 update-r710.txt
-rw-r--r-- 1 root root       499 May  8  2021 update-r720.log
-rw-r--r-- 1 root root      1235 May  7  2021 update-r720.txt
-rw-r--r-- 1 root root       719 Jun 28 09:07 update-r721.log
-rw-r--r-- 1 root root      2702 Jun 27 23:28 update-r721.txt
-rw-r--r-- 1 root root       672 Sep 26 17:45 update-r730.log
-rw-r--r-- 1 root root      2490 Sep 25 22:03 update-r730.txt
-rw-r--r-- 1 root root       378 Oct  2 20:30 update-r740.log
-rw-r--r-- 1 root root      1064 Oct  2 14:47 update-r740.txt
-rw-r--r-- 1 root root       611 Nov 10 21:22 update-r741.log
-rw-r--r-- 1 root root      1978 Nov  9 21:51 update-r741.txt
-rw-r--r-- 1 root root       619 Nov 23 18:07 update-r750.log
-rw-r--r-- 1 root root      1628 Nov 22 13:43 update-r750.txt


ETA: Also post the following SQL dump
Code:
moodeutl -q "select * from cfg_mpd"

music_directory|/var/lib/mpd/music
2|playlist_directory|/var/lib/mpd/playlists
3|db_file|/var/lib/mpd/database
4|log_file|/var/log/mpd/log
5|pid_file|/var/run/mpd/pid
6|state_file|/var/lib/mpd/state
7|sticker_file|/var/lib/mpd/sticker.sql
8|user|mpd
9|group|audio
10|bind_to_address|any
11|port|6600
12|log_level|default
13|restore_paused|yes
14|auto_update|no
15|follow_outside_symlinks|yes
16|follow_inside_symlinks|yes
17|zeroconf_enabled|no
18|zeroconf_name|Moode MPD
19|filesystem_charset|UTF-8
20|metadata_to_use|+comment
21|device|0
22|mixer_type|hardware
23|dop|no
24|audio_output_format|disabled
25|sox_quality|high
26|sox_multithreading|1
27|replaygain|off
28|replaygain_preamp|0
29|replay_gain_handler|software
30|volume_normalization|no
31|audio_buffer_size|4096
32|input_cache|Disabled
33|max_output_buffer_size|131072
34|auto_resample|yes
35|auto_channels|yes
36|auto_format|yes
37|buffer_time|500000
38|period_time|256000000
39|selective_resample_mode|0
40|sox_precision|20
41|sox_phase_response|50
42|sox_passband_end|95
43|sox_stopband_begin|100
44|sox_attenuation|0
45|sox_flags|0
46|max_playlist_length|16384
47|stop_dsd_silence|no
Reply
#4
The OS and kernel versions listed in the log are not supported on moOde 7 series.

Code:
20211218 103214 worker: RaspiOS  (10.11)
20211218 103214 worker: Kernel   (5.10.63-v7+ #1496)

Try a fresh 7.6.0 image without any subsequent OS or kernel upgrades.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Thanks for your analysis. Hope you don’t run into it upstream as well.
As a side note, I found out that entry 48 was missing from cfg_mpd and I added it manually.

Code:
db/moode-sqlite3.db.sql:INSERT INTO cfg_mpd (id, param, value) VALUES (48, 'thesycon_dsd_workaround', 'no');
Reply
#6
Yeah, about that.

There's a string of files in /var/local/www which suggest the player in question has been incrementally updated from r700 to r701 to ... to r760.

I know this sequential updating process works because I did it recently as a test in response to another thread.

The last update, downloaded as update-r750.zip, contains the shell script install.sh in which we find the line

Code:
sqlite3 $SQLDB "INSERT INTO cfg_mpd (id, param, value) VALUES (48, 'thesycon_dsd_workaround', 'no')"

I'm dubious that this operation would fail simply because you've upgraded the underlying RaspiOS. Certainly I've been experimenting with new kernels and with new RaspiOS/Debian releases without running into problems with application-level programs such as sqlite3.

I'm wondering if perhaps moOde wasn't rebooted after that last update so that it would be in a consistent state. [ETA] What a brain fart! There's no new parameter/value to be loaded on a reboot since, as your sqlite3 output showed, the new record wasn't added to the DB. Clearly I didn't have enough coffee that day.

Regards,
Kent
Reply
#7
(12-18-2021, 08:40 PM)TheOldPresbyope Wrote: The last update, downloaded as update-r750.zip, contains the shell script install.sh in which we find the line

Code:
sqlite3 $SQLDB "INSERT INTO cfg_mpd (id, param, value) VALUES (48, 'thesycon_dsd_workaround', 'no')"

I'm dubious that this operation would fail simply because you've upgraded the underlying RaspiOS. Certainly I've been experimenting with new kernels and with new RaspiOS/Debian releases without running into problems with application-level programs such as sqlite3.

I'm wondering if perhaps moOde wasn't rebooted after that last update so that it would be in a consistent state.

Interesting - I cannot find a log of reboot events because I use log2ram to keep things cleared up a bit. All I can say is that after installing a patch I always reboot (and I suspect that a reboot is not needed to get this sqlite3 insert statement to be saved correctly).

In some way the insert statement did not complete at that time, apparently causing the mpd config file to be written incorrectly because there was no default value for it in the db. Of course this is an exceptional situation - and as long as I am the only one running into this it does not deserve any energy from the developer Smile
But after adding this line to the sqlite db and rebooting the system everything worked again - I installed the 7.6.1 patch now as well and it runs smoothly.
Reply


Forum Jump: