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

mpd silent on DSM 7.1, DS218 #5650

Closed
1 task done
dmvianna opened this issue Mar 1, 2023 · 11 comments · Fixed by #5652
Closed
1 task done

mpd silent on DSM 7.1, DS218 #5650

dmvianna opened this issue Mar 1, 2023 · 11 comments · Fixed by #5652
Labels

Comments

@dmvianna
Copy link

dmvianna commented Mar 1, 2023

Is this a new Bug?

  • I checkd that the bug hasn't been reported before

Package Name

mpd

Package Version

0.20.23-1

Device Model

DS218

Device Architecture

AArch64 (ARMv8)

Firmware Version

DSM 7.1

What happened?

To put it simply, I can't move the volume up from zero in any client. YMPD tells me "problem setting volume". Otherwise, the music library does load, and the progress bar moves as it pretends to play.

Output from /volume1/@appstore/mpd/bin/mpd --version:

Music Player Daemon 0.20.23 (2ee11768)

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2017 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
 simple

Storage plugins:
 local

Decoders plugins:
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [pcm]

Filters:
 soxr

Tag plugins:
 id3tag

Output plugins:
 shout null fifo alsa oss httpd recorder

Encoder plugins:
 null vorbis lame wave flac

Archive plugins:
 [bz2] bz2

Input plugins:
 file alsa archive curl

Playlist plugins:
 extm3u m3u pls flac cue embcue

Protocols:
 file:// http:// https:// alsa://

Other features:
 epoll iconv inotify ipv6 tcp un

And this is the meaty part of mpd.conf:

decoder {
        plugin "ffmpeg"
        enabled "yes"
}

audio_output {
	type		"httpd"
	name		"NAS HTTP Stream"
	encoder		"vorbis"		# optional, vorbis or lame
	port		"6680"
	bind_to_address	"0.0.0.0"		# optional, IPv4 or IPv6
#	quality		"5.0"			# do not define if bitrate is defined
	bitrate		"128"			# do not define if quality is defined
	format		"44100:16:1"
	max_clients	"0"			# optional 0=no limit
}

No errors in the mpd.log file. It states it played flac files after adding media files.

And running it with sudo:

sudo ./mpd --stderr --no-daemon --verbose /volume1/@appdata/mpd/mpd.conf
config_file: loading file /volume1/@appdata/mpd/mpd.conf
exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
soxr: soxr converter 'high'
vorbis: Xiph.Org libVorbis 1.3.7
simple_db: reading DB
curl: version 7.82.0
curl: with OpenSSL/1.1.1o
state_file: Loading state file /var/packages/mpd/var/state
config: option 'enabled' on line 204 was not recognized
exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
client: [0] opened from 127.0.0.1:59442
client: [0] process command "outputs"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "currentsong"
client: [0] command returned 0

And enqueueing a song, pressing play and trying to adjust volume via ympd:

client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "outputs"
client: [0] command returned 0
client: [0] process command "play"
playlist: play 0:"(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/01. Juliet.flac"
client: [0] command returned 0
playlist: queue song 1:"(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/02. Tomorrow.flac"
decoder_thread: probing plugin flac
decoder: audio_format=44100:16:2, seekable=true
output: opened plugin=httpd name="NAS HTTP Stream" audio_format=44100:f:1
output: converting in=44100:16:2 -> f=44100:16:2 -> out=44100:f:1
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "outputs"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "outputs"
client: [0] command returned 0
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "outputs"
client: [0] command returned 0
client: [0] process command "setvol "62""
client: [0] command returned 2
client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "outputs"
client: [0] command returned 0
state_file: Saving state file /var/packages/mpd/var/state
client: [0] process command "status"
client: [0] command returned 0

Reproduction steps

1. Install MPD and YMPD via synocommunity
2. Give `sc-mpd` read and write to the `music` directory
3. Try to enqueue and play songs, and change volume.
cat

Install Log

2023/03/01 17:58:26	install mpd 0.20.23-1 Begin preinst
2023/03/01 17:58:26	Begin reload_inst_variables
2023/03/01 17:58:26	End reload_inst_variables
2023/03/01 17:58:26	Begin initialize_variables
2023/03/01 17:58:26	End initialize_variables
2023/03/01 17:58:26	===> Step preinst. USER=sc-mpd GROUP= SHARE_PATH=music
2023/03/01 17:58:26	install mpd 0.20.23-1 End preinst ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mkdir -p /volume1/@appstore/mpd -m 755
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mkdir -p /volume1/@appstore/mpd -m 755 ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@appstore/mpd
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/rm -rf /volume1/@appstore/mpd ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/package /volume1/@appstore/mpd
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/package /volume1/@appstore/mpd ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mkdir -p /var/packages/mpd -m 755
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mkdir -p /var/packages/mpd -m 755 ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/touch /var/packages/mpd/installing
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/touch /var/packages/mpd/installing ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/INFO /var/packages/mpd/INFO
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/INFO /var/packages/mpd/INFO ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/scripts
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/scripts ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/scripts /var/packages/mpd/scripts
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/scripts /var/packages/mpd/scripts ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/WIZARD_UIFILES
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/WIZARD_UIFILES ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/WIZARD_UIFILES /var/packages/mpd/WIZARD_UIFILES
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/WIZARD_UIFILES /var/packages/mpd/WIZARD_UIFILES ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/conf
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/conf ret=[0]
2023/03/01 17:58:27	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/conf /var/packages/mpd/conf
2023/03/01 17:58:27	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.C7hNAW/conf /var/packages/mpd/conf ret=[0]
2023/03/01 17:58:31	install mpd 0.20.23-1 Begin postinst
2023/03/01 17:58:31	Begin reload_inst_variables
2023/03/01 17:58:31	End reload_inst_variables
2023/03/01 17:58:31	Begin initialize_variables
2023/03/01 17:58:31	End initialize_variables
2023/03/01 17:58:31	===> Step postinst. USER=sc-mpd GROUP= SHARE_PATH=music
2023/03/01 17:58:31	Begin save_wizard_variables
2023/03/01 17:58:31	End save_wizard_variables
2023/03/01 17:58:31	Begin syno_sync_var_folder
2023/03/01 17:58:31	Install files from var folder
2023/03/01 17:58:31	/bin/rsync -avh --ignore-existing --remove-source-files /volume1/@appstore/mpd/var/ /volume1/@appdata/mpd
2023/03/01 17:58:31	sending incremental file list
2023/03/01 17:58:31	./
2023/03/01 17:58:31	mpd.conf
2023/03/01 17:58:31	sent 13.15K bytes  received 46 bytes  26.39K bytes/sec
2023/03/01 17:58:31	total size is 13.02K  speedup is 0.99
2023/03/01 17:58:31	/bin/rsync -avh --remove-source-files /volume1/@appstore/mpd/var/ /volume1/@appdata/mpd
2023/03/01 17:58:31	sending incremental file list
2023/03/01 17:58:31	./
2023/03/01 17:58:31	sent 72 bytes  received 19 bytes  182.00 bytes/sec
2023/03/01 17:58:31	total size is 0  speedup is 0.00
2023/03/01 17:58:31	End syno_sync_var_folder
2023/03/01 17:58:31	Begin service_postinst
2023/03/01 17:58:31	End service_postinst
2023/03/01 17:58:31	install mpd 0.20.23-1 End postinst ret=[0]
2023/03/01 17:58:32	install mpd 0.20.23-1 Begin start-stop-status start
2023/03/01 17:58:32	install mpd 0.20.23-1 End start-stop-status start ret=[0]
2023/03/01 21:23:35	stop mpd 0.20.23-1 Begin start-stop-status stop
2023/03/01 21:23:36	stop mpd 0.20.23-1 End start-stop-status stop ret=[0]
2023/03/01 21:23:47	start mpd 0.20.23-1 Begin start-stop-status start
2023/03/01 21:23:47	start mpd 0.20.23-1 End start-stop-status start ret=[0]
2023/03/01 21:34:33	uninstall mpd 0.20.23-1 Begin start-stop-status stop
2023/03/01 21:34:34	uninstall mpd 0.20.23-1 End start-stop-status stop ret=[0]
2023/03/01 21:34:36	uninstall mpd 0.20.23-1 Begin preuninst
2023/03/01 21:34:36	Begin reload_inst_variables
2023/03/01 21:34:36	End reload_inst_variables
2023/03/01 21:34:36	Begin initialize_variables
2023/03/01 21:34:36	End initialize_variables
2023/03/01 21:34:36	===> Step preuninst. USER=sc-mpd GROUP= SHARE_PATH=
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 End preuninst ret=[0]
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@appstore/mpd
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 End /bin/rm -rf /volume1/@appstore/mpd ret=[0]
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@apptemp/mpd
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 End /bin/rm -rf /volume1/@apptemp/mpd ret=[0]
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 Begin postuninst
2023/03/01 21:34:37	Begin reload_inst_variables
2023/03/01 21:34:37	End reload_inst_variables
2023/03/01 21:34:37	Begin initialize_variables
2023/03/01 21:34:37	End initialize_variables
2023/03/01 21:34:37	===> Step postuninst. USER=sc-mpd GROUP= SHARE_PATH=
2023/03/01 21:34:37	uninstall mpd 0.20.23-1 End postuninst ret=[0]
2023/03/01 21:42:49	install mpd 0.20.23-1 Begin preinst
2023/03/01 21:42:49	Begin reload_inst_variables
2023/03/01 21:42:49	End reload_inst_variables
2023/03/01 21:42:49	Begin initialize_variables
2023/03/01 21:42:49	End initialize_variables
2023/03/01 21:42:49	===> Step preinst. USER=sc-mpd GROUP= SHARE_PATH=music
2023/03/01 21:42:49	install mpd 0.20.23-1 End preinst ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mkdir -p /volume1/@appstore/mpd -m 755
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mkdir -p /volume1/@appstore/mpd -m 755 ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@appstore/mpd
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/rm -rf /volume1/@appstore/mpd ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/package /volume1/@appstore/mpd
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/package /volume1/@appstore/mpd ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mkdir -p /var/packages/mpd -m 755
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mkdir -p /var/packages/mpd -m 755 ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/touch /var/packages/mpd/installing
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/touch /var/packages/mpd/installing ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/INFO /var/packages/mpd/INFO
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/INFO /var/packages/mpd/INFO ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/scripts
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/scripts ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/scripts /var/packages/mpd/scripts
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/scripts /var/packages/mpd/scripts ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/WIZARD_UIFILES
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/WIZARD_UIFILES ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/WIZARD_UIFILES /var/packages/mpd/WIZARD_UIFILES
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/WIZARD_UIFILES /var/packages/mpd/WIZARD_UIFILES ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/conf
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/conf ret=[0]
2023/03/01 21:42:50	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/conf /var/packages/mpd/conf
2023/03/01 21:42:50	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.PksbUR/conf /var/packages/mpd/conf ret=[0]
2023/03/01 21:42:52	install mpd 0.20.23-1 Begin postinst
2023/03/01 21:42:52	Begin reload_inst_variables
2023/03/01 21:42:52	End reload_inst_variables
2023/03/01 21:42:52	Begin initialize_variables
2023/03/01 21:42:52	End initialize_variables
2023/03/01 21:42:52	===> Step postinst. USER=sc-mpd GROUP= SHARE_PATH=music
2023/03/01 21:42:52	Begin save_wizard_variables
2023/03/01 21:42:52	End save_wizard_variables
2023/03/01 21:42:52	Begin syno_sync_var_folder
2023/03/01 21:42:52	Install files from var folder
2023/03/01 21:42:52	/bin/rsync -avh --ignore-existing --remove-source-files /volume1/@appstore/mpd/var/ /volume1/@appdata/mpd
2023/03/01 21:42:53	sending incremental file list
2023/03/01 21:42:53	./
2023/03/01 21:42:53	sent 84 bytes  received 19 bytes  206.00 bytes/sec
2023/03/01 21:42:53	total size is 13.02K  speedup is 126.42
2023/03/01 21:42:53	/bin/rsync -avh --remove-source-files /volume1/@appstore/mpd/var/ /volume1/@appdata/mpd
2023/03/01 21:42:53	sending incremental file list
2023/03/01 21:42:53	./
2023/03/01 21:42:53	mpd.conf.new
2023/03/01 21:42:53	sent 13.16K bytes  received 46 bytes  26.41K bytes/sec
2023/03/01 21:42:53	total size is 13.02K  speedup is 0.99
2023/03/01 21:42:53	End syno_sync_var_folder
2023/03/01 21:42:53	Begin service_postinst
2023/03/01 21:42:53	End service_postinst
2023/03/01 21:42:53	install mpd 0.20.23-1 End postinst ret=[0]
2023/03/01 21:42:53	install mpd 0.20.23-1 Begin start-stop-status start
2023/03/01 21:42:53	install mpd 0.20.23-1 End start-stop-status start ret=[0]
2023/03/01 21:55:52	uninstall mpd 0.20.23-1 Begin start-stop-status stop
2023/03/01 21:55:53	uninstall mpd 0.20.23-1 End start-stop-status stop ret=[0]
2023/03/01 21:55:55	uninstall mpd 0.20.23-1 Begin preuninst
2023/03/01 21:55:55	Begin reload_inst_variables
2023/03/01 21:55:55	End reload_inst_variables
2023/03/01 21:55:55	Begin initialize_variables
2023/03/01 21:55:55	End initialize_variables
2023/03/01 21:55:55	===> Step preuninst. USER=sc-mpd GROUP= SHARE_PATH=
2023/03/01 21:55:55	uninstall mpd 0.20.23-1 End preuninst ret=[0]
2023/03/01 21:55:55	uninstall mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@appstore/mpd
2023/03/01 21:55:56	uninstall mpd 0.20.23-1 End /bin/rm -rf /volume1/@appstore/mpd ret=[0]
2023/03/01 21:55:56	uninstall mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@apptemp/mpd
2023/03/01 21:55:56	uninstall mpd 0.20.23-1 End /bin/rm -rf /volume1/@apptemp/mpd ret=[0]
2023/03/01 21:55:56	uninstall mpd 0.20.23-1 Begin postuninst
2023/03/01 21:55:56	Begin reload_inst_variables
2023/03/01 21:55:56	End reload_inst_variables
2023/03/01 21:55:56	Begin initialize_variables
2023/03/01 21:55:56	End initialize_variables
2023/03/01 21:55:56	===> Step postuninst. USER=sc-mpd GROUP= SHARE_PATH=
2023/03/01 21:55:56	Removing files...
2023/03/01 21:55:56	/volume1/@appdata/mpd/playlists
2023/03/01 21:55:56	/volume1/@appdata/mpd/mpd.log
2023/03/01 21:55:56	/volume1/@appdata/mpd/database
2023/03/01 21:55:56	/volume1/@appdata/mpd/mpd.conf.new
2023/03/01 21:55:56	/volume1/@appdata/mpd/mpd.conf
2023/03/01 21:55:56	/volume1/@appdata/mpd/state
2023/03/01 21:55:56	uninstall mpd 0.20.23-1 End postuninst ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin preinst
2023/03/02 07:56:02	Begin reload_inst_variables
2023/03/02 07:56:02	End reload_inst_variables
2023/03/02 07:56:02	Begin initialize_variables
2023/03/02 07:56:02	End initialize_variables
2023/03/02 07:56:02	===> Step preinst. USER=sc-mpd GROUP= SHARE_PATH=music
2023/03/02 07:56:02	install mpd 0.20.23-1 End preinst ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mkdir -p /volume1/@appstore/mpd -m 755
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mkdir -p /volume1/@appstore/mpd -m 755 ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/rm -rf /volume1/@appstore/mpd
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/rm -rf /volume1/@appstore/mpd ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/package /volume1/@appstore/mpd
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/package /volume1/@appstore/mpd ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mkdir -p /var/packages/mpd -m 755
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mkdir -p /var/packages/mpd -m 755 ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/touch /var/packages/mpd/installing
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/touch /var/packages/mpd/installing ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/INFO /var/packages/mpd/INFO
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/INFO /var/packages/mpd/INFO ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/scripts
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/scripts ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/scripts /var/packages/mpd/scripts
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/scripts /var/packages/mpd/scripts ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/WIZARD_UIFILES
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/WIZARD_UIFILES ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/WIZARD_UIFILES /var/packages/mpd/WIZARD_UIFILES
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/WIZARD_UIFILES /var/packages/mpd/WIZARD_UIFILES ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/rm -rf /var/packages/mpd/conf
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/rm -rf /var/packages/mpd/conf ret=[0]
2023/03/02 07:56:02	install mpd 0.20.23-1 Begin /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/conf /var/packages/mpd/conf
2023/03/02 07:56:02	install mpd 0.20.23-1 End /bin/mv -f /volume1/@tmp/synopkg/install.sv87R0/conf /var/packages/mpd/conf ret=[0]
2023/03/02 07:56:05	install mpd 0.20.23-1 Begin postinst
2023/03/02 07:56:05	Begin reload_inst_variables
2023/03/02 07:56:05	End reload_inst_variables
2023/03/02 07:56:05	Begin initialize_variables
2023/03/02 07:56:05	End initialize_variables
2023/03/02 07:56:05	===> Step postinst. USER=sc-mpd GROUP= SHARE_PATH=music
2023/03/02 07:56:05	Begin save_wizard_variables
2023/03/02 07:56:05	End save_wizard_variables
2023/03/02 07:56:05	Begin syno_sync_var_folder
2023/03/02 07:56:05	Install files from var folder
2023/03/02 07:56:05	/bin/rsync -avh --ignore-existing --remove-source-files /volume1/@appstore/mpd/var/ /volume1/@appdata/mpd
2023/03/02 07:56:05	sending incremental file list
2023/03/02 07:56:05	./
2023/03/02 07:56:05	mpd.conf
2023/03/02 07:56:05	sent 13.15K bytes  received 46 bytes  26.39K bytes/sec
2023/03/02 07:56:05	total size is 13.02K  speedup is 0.99
2023/03/02 07:56:05	/bin/rsync -avh --remove-source-files /volume1/@appstore/mpd/var/ /volume1/@appdata/mpd
2023/03/02 07:56:05	sending incremental file list
2023/03/02 07:56:05	./
2023/03/02 07:56:05	sent 72 bytes  received 19 bytes  182.00 bytes/sec
2023/03/02 07:56:05	total size is 0  speedup is 0.00
2023/03/02 07:56:05	End syno_sync_var_folder
2023/03/02 07:56:05	Begin service_postinst
2023/03/02 07:56:05	End service_postinst
2023/03/02 07:56:05	install mpd 0.20.23-1 End postinst ret=[0]
2023/03/02 07:56:06	install mpd 0.20.23-1 Begin start-stop-status start
2023/03/02 07:56:06	install mpd 0.20.23-1 End start-stop-status start ret=[0]
2023/03/02 08:47:24	stop mpd 0.20.23-1 Begin start-stop-status stop
2023/03/02 08:47:25	stop mpd 0.20.23-1 End start-stop-status stop ret=[0]

Service Log

That's yuuge, but the head and tail:

Thu Mar  2 07:56:06 AEST 2023
Starting mpd command /volume1/@appstore/mpd/bin/mpd /volume1/@appdata/mpd/mpd.conf 
Mar 02 07:56 : exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
Mar 02 07:56 : exception: Failed to open /var/packages/mpd/var/database: No such file or directory
Mar 02 07:56 : exception: Failed to open /var/packages/mpd/var/state: No such file or directory
Mar 02 07:56 : config: option 'enabled' on line 204 was not recognized
Mar 02 07:56 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
Mar 02 07:56 : update: added NOW 100 Hits Power Ballads 6 Disc Set/NOW 100 Hits Power Ballads [CD-1]/17 Tears for Fears - Sowing The Seeds Of Love.mp3
Mar 02 07:56 : update: added NOW 100 Hits Power Ballads 6 Disc Set/NOW 100 Hits Power Ballads [CD-1]/14 Céline Dion - It's All Coming Back To Me Now [Radio Version].mp3
Mar 02 07:56 : update: added NOW 100 Hits Power Ballads 6 Disc Set/NOW 100 Hits Power Ballads [CD-1]/06 Cutting Crew - [I Just] Died In Your Arms.mp3
Mar 02 07:58 : update: added VA - Work From Home With Mozart (2020) Mp3 320kbps [PMEDIA] ⭐️/100. Symphony No.29 in A, K.201 : 4. Allegro con spirito.mp3
Mar 02 07:58 : update: added VA - Work From Home With Mozart (2020) Mp3 320kbps [PMEDIA] ⭐️/101. Piano Concerto No.17 in G, K.453 : 3. Allegretto (Excerpt).mp3
Mar 02 08:12 : client: [0] opened from 127.0.0.1:59220
Mar 02 08:15 : player: played "(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/01. Juliet.flac"
Mar 02 08:26 : player: played "(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/01. Juliet.flac"
Mar 02 08:29 : player: played "(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/02. Tomorrow.flac"
Mar 02 08:32 : player: played "(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/02. Tomorrow.flac"
Stopping mpd ...
Thu Mar  2 08:47:24 AEST 2023
Stopping mpd service 3022 


### Other Logs

```log
Nothing interesting in messages. Here's synopkg.log's tail.



2023/03/02 08:12:29 install ympd 1.3.0-1 Begin start-stop-status start
2023/03/02 08:12:29 install ympd 1.3.0-1 End start-stop-status start ret=[0]
2023/03/02 08:12:31 install ympd: start version 1.3.0-1 successfully, result 0
2023/03/02 08:12:31 install ympd 1.3.0-1 successfully
2023/03/02 08:47:24 stop mpd: begin to stop version 0.20.23-1
2023/03/02 08:47:24 stop mpd 0.20.23-1 Begin start-stop-status stop
2023/03/02 08:47:25 stop mpd 0.20.23-1 End start-stop-status stop ret=[0]
2023/03/02 08:47:25 Release port-config for mpd when 0x0010 (ready)
2023/03/02 08:47:25 Release port-config for mpd when 0x0010 (done)
2023/03/02 08:47:28 stop mpd: stop version 0.20.23-1 successfully, result 0
@dmvianna dmvianna added the bug label Mar 1, 2023
@dmvianna
Copy link
Author

dmvianna commented Mar 1, 2023

Ran it again via package center, this is the mpd.log:

Thu Mar  2 09:22:42 AEST 2023
Starting mpd command /volume1/@appstore/mpd/bin/mpd /volume1/@appdata/mpd/mpd.conf 
Mar 02 09:22 : exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
Mar 02 09:22 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
Mar 02 09:22 : config: option 'enabled' on line 204 was not recognized
Mar 02 09:22 : client: [0] opened from 127.0.0.1:33176
Mar 02 09:25 : player: played "(2020) Cold Chisel - The Live Tapes Vol. 5 Live at the Bondi Lifesaver Feb 29, 1980 [FLAC]/01. Juliet.flac"

Still failing to set volume. No mention in the logs.

@mreid-tt
Copy link
Contributor

mreid-tt commented Mar 2, 2023

@dmvianna, thanks for lodging this issue with the log details. Not an expert on this software but the binding error is concerning if it's persisting. Our FAQ entry on firewall rule files may be useful to see if this is an issue to address.

Other than that there did not seem to be anything amiss in the package log. Looking further into the source project I came across this forum post based on the error reported which seemed similar: https://bbs.archlinux.org/viewtopic.php?id=222975.

In it they seemed to manually start the program with the --no-daemon argument as a way to diagnose the issue further. This may be something you can try to see if it can help.

@ghost
Copy link

ghost commented Mar 2, 2023

Mar 02 09:22 : exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use

a ‘sudo netstat -pant | grep 6600’ would tell you the process ID and/or name of the process currently on port 6600, blocking that ‘bind()’

@dmvianna
Copy link
Author

dmvianna commented Mar 3, 2023

Yeah, I did start mpd with --no-daemon to test it (after stopping the service). And Synology didn't return anything from checking if another process was using the port, I tried that too.

@mreid-tt
Copy link
Contributor

mreid-tt commented Mar 3, 2023

Hmm, another possibility is that it's simply a bug in v0.20.23 of MPD. Unfortunately, the source repository doesn't have great release notes to confirm if this is the case. As suggested earlier it may be useful to open a discussion on their forum or open an issue there. If a newer version will solve the issue we can try updating the package and move from there. Working on a lot of other packages at the moment so it would be nice to get confirmation that this will actually solve the problem before opening a new PR.

@hgy59
Copy link
Contributor

hgy59 commented Mar 3, 2023

I can reproduce this error.
An update to the latest mpd (0.23.12) has also an error when changing the volume with error message "no mixer".

@hgy59 hgy59 mentioned this issue Mar 3, 2023
7 tasks
@hgy59
Copy link
Contributor

hgy59 commented Mar 4, 2023

@dmvianna I got the mpd version of #5652 running i.e. it is streaming an http stream with the following config


#
# httpd output (built-in HTTP streaming server):
#
audio_output {
        type            "httpd"
        name            "NAS HTTP Stream"
        encoder         "vorbis"                # optional, vorbis or lame
        port            "6680"
        bind_to_address "0.0.0.0"               # optional, IPv4 or IPv6
#       quality         "5.0"                   # do not define if bitrate is defined
        bitrate         "128"                   # do not define if quality is defined
        format          "44100:16:1"
        max_clients     "0"                     # optional 0=no limit
        mixer_type      "software"
}

I only had to add mixer_type "software" to the config to avoid the error no mixer when changing the volume in ympd.

@dmvianna
Copy link
Author

dmvianna commented Mar 5, 2023

Yeah, I confirm I can change the volume. But I can't hear anything! How can I actually hear music from it?

@hgy59
Copy link
Contributor

hgy59 commented Mar 5, 2023

@dmvianna ympd (and myMPD) are clients to control the mpd (server) via api on port 6600. Those are not for listening (IMHO).

If you use the default http stream (NAS HTTP stream) for streaming, you need a client to listen to port 6680 of your NAS.
use http://{ip of your NAS}:6680 as stream address in VLC or any other app that can playback http streamed music.

@dmvianna
Copy link
Author

dmvianna commented Mar 6, 2023

Phew! I can listen in my browser. Thank you @hgy59! It wasn't obvious at all to me how to make this work!

@mreid-tt
Copy link
Contributor

hey @dmvianna, can this issue now be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants