Mpd error connection refused

mpd error connection refused

play mpd through pulseaudio, sprers.eu reports: pulse_output: Failed to enable "Pink ROCKI" [pulse]: pa_context_connect() has failed: Connection refused. It returns: mpd error: Connection refused. Last edited by Furycd; April 4th, at PM. [ d:Tour // Reviziis ]. Furycd's Avatar. Re: mpd error: Connection refused You will get that message if mpd is not running. Usually it fails to start due to a missing or incorrect mpd. mpd error connection refused

: Mpd error connection refused

Mpd error connection refused
Startx error 2
Mpd error connection refused
Mpd error connection refused

Bug# mpd: An mpd client can not connect to mpd on portwhen sprers.eu is active as a user.

Package: mpd Version: Severity: normal Dear Maintainer, mpd error connection refused, After upgrading mpd from to An mpd client could not connect to mpd on port Checked to make sure that mpd sharp md-mt15 toc error a still disabled system wide: # systemctl is-enabled sprers.eue disabled # systemctl is-enabled sprers.eu disabled As mpd is started at loggin in time with: [ ! -s ~/.mpd/pid ] && mpd --verbose Here are the errors shown, by mpd: Aug 24 : exception: Failed to bind to '' Aug 24 : exception: nested: Failed to bind socket: Address already in use Then ran: # netstat -anptuv \ grep (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 * LISTEN /mpd $ ncmpcpp No errors an mpd client can connect to mpd on portwhen sprers.eue is active and sprers.eu is inactive. Let's restart sprers.eue: $ systemctl --user restart sprers.eue $ systemctl --user status sprers.eue ● sprers.eue - Music Player Daemon Loaded: loaded (/usr/lib/systemd/user/sprers.eue; enabled; vendor preset: enabled) Active: active (running) since Mon EDT; 8s ago Docs: man:mpd(1) man:sprers.eu(5) file:///usr/share/doc/mpd/html/sprers.eu Main PID: (mpd) CGroup: /[email protected]/sprers.eue └─ /usr/bin/mpd --no-daemon $ systemctl --user status sprers.eu ● sprers.eu Loaded: loaded (/usr/lib/systemd/user/sprers.eu; enabled; vendor preset: enabled) Active: inactive (dead) since Mon EDT; 8min ago Listen: /run/user//mpd/socket (Stream) [::] (Stream) $ netstat -anptuv

Bug# mpd installation fails, cannot open /var/lib/mpd/tag_cache, /run/mpd/pid

Control: unarchive -1
Control: reopen -1 !
Control: found -1
Control: severity -1 grave
Justification: renders package unusable

Hi Florian,

I can reproduce this bug with I purged mpd and reinstalled it,
and have the following minimal sprers.eu:


music_directory "/var/lib/mpd/music"
db_file "/var/lib/mpd/tag_cache"
pid_file "/run/mpd/pid"
state_file "/var/lib/mpd/state"
log_level "verbose"

user "mpd"
bind_to_address ""

audio_output {
type "null"
name "null"
}


Attempting to start mpd results in:


[email protected]:~$ sudo service mpd start
Job for sprers.eue failed because a fatal signal was delivered to the control process.
See "systemctl status sprers.eue" and "journalctl -xeu sprers.eue" for details.
[email protected]:~$ sudo systemctl status sprers.eue
× sprers.eue - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/sprers.eue; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Thu EDT; 2s ago
TriggeredBy: × sprers.eu

Docs: man:mpd(1)
man:sprers.eu(5)

file:///usr/share/doc/mpd/html/sprers.eu
Process: ExecStart=/usr/bin/mpd --no-daemon $MPDCONF (code=killed, signal=ABRT)
Main Mpd error connection refused (code=killed, signal=ABRT)
CPU: ms

Nov 04 zeta mpd[]: sndfile: libsndfile
Nov 04 zeta mpd[]: hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Nov 04 zeta mpd[]: adplug: adplug
Nov 04 zeta mpd[]: exception: Failed to open '/var/lib/mpd/tag_cache': No such file or directory
Nov 04 zeta mpd[]: curl: version
Nov 04 zeta mpd[]: curl: with GnuTLS/
Nov 04 zeta mpd[]: mpd: ./src/event/sprers.eu EventLoop::~EventLoop(): Assertion `sprers.eu()' failed, mpd error connection refused.
Nov 04 zeta systemd[1]: sprers.eue: Main process exited, code=killed, status=6/ABRT
Nov 04 zeta systemd[1]: sprers.eue: Failed with result 'signal'.
Nov 04 zeta systemd[1]: Failed to start Music Player Daemon.
[email protected]:~$ ls -lash /var/lib/mpd
total 14K
0 drwxr-xr-x 1 mpd audio 50.
0 drwxr-xr-x 1 root root K .
K drwxr-xr-x 8 rak rak 14 music
0 drwxr-xr-x 1 mpd audio playlists
12K -rw-r--r-- 1 mpd audio 12K sprers.eu
[email protected]:~$ sudo journalctl -S " " -xu sprers.eue
-- Journal begins at Sat EDT, ends at Thu EDT. --
Nov 04 zeta systemd[1]: Starting Music Player Daemon
░░ Subject: A start job for unit sprers.eue has begun execution
░░ Defined-By: systemd
░░ Support: sprers.eu
░░
░░ A start job for unit sprers.eue has begun execution.
░░
░░ The job identifier is
Nov 04 zeta mpd[]: libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
Nov 04 zeta mpd[]: vorbis: sprers.eu libVorbis
Nov 04 zeta mpd[]: opus: libopus
Nov 04 zeta mpd[]: sndfile: libsndfile
Nov 04 zeta mpd[]: hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Nov 04 zeta mpd[]: adplug: adplug
Nov 04 zeta mpd[]: exception: Failed to open '/var/lib/mpd/tag_cache': No such file or directory
Nov 04 zeta mpd[]: curl: version
Nov 04 zeta mpd[]: curl: with GnuTLS/
Nov 04 zeta mpd[]: mpd: ./src/event/sprers.eu EventLoop::~EventLoop(): Assertion `sprers.eu()' failed.
Nov 04 zeta systemd[1]: sprers.eue: Main process exited, code=killed, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: sprers.eu
░░
░░ An ExecStart= process belonging to unit sprers.eue has exited.
░░
░░ The process' exit code is 'killed' and its exit status is 6.
Nov 04 zeta systemd[1]: sprers.eue: Failed with result 'signal'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: sprers.eu
░░
░░ The unit sprers.eue has entered the 'failed' state with result 'signal'.
Nov 04 zeta oracle create procedure show errors Failed to start Music Player Daemon.
░░ Subject: A start job for unit sprers.eue has failed
░░ Defined-By: systemd
░░ Support: sprers.eu
░░
░░ A start job for unit sprers.eue has finished with a failure, mpd error connection refused.
░░
░░ The job identifier is and the job result mpd error connection refused failed.


If I attempt to create an empty file '/var/lib/mpd/tag_cache', I get the
following behaviour:


[email protected]:~$ mpd error connection refused -u mpd touch /var/lib/mpd/tag_cache
[email protected]:~$ doas service mpd start
[sudo] password for rak:
Job for sprers.eue failed because a fatal signal was delivered to the control process.
See "systemctl status sprers.eue" and "journalctl -xeu sprers.eue" for details.
[email protected]:~$ doas systemctl status sprers.eue
× sprers.eue - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/sprers.eue; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Thu EDT; 1s ago
TriggeredBy: × sprers.eu

Docs: man:mpd(1)
man:sprers.eu(5)

file:///usr/share/doc/mpd/html/sprers.eu
Process: ExecStart=/usr/bin/mpd --no-daemon $MPDCONF (code=killed, signal=ABRT)
Main PID: (code=killed, signal=ABRT)
CPU: ms

Nov 04 zeta mpd[]: hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Nov 04 zeta mpd[]: adplug: adplug
Nov 04 zeta mpd[]: simple_db: reading DB
Nov 04 zeta mpd[]: exception: Database corrupted
Nov 04 zeta mpd[]: curl: version
Nov 04 zeta mpd[]: curl: with GnuTLS/
Nov 04 zeta mpd[]: mpd: ./src/event/sprers.eu EventLoop::~EventLoop(): Assertion `sprers.eu()' failed.
Nov 04 zeta systemd[1]: sprers.eue: Main process exited, code=killed, status=6/ABRT
Nov 04 zeta systemd[1]: sprers.eue: Failed with result 'signal'.
Nov 04 zeta systemd[1]: Failed to start Music Player Daemon.
[email protected]:~$ ls -lash /var/lib/mpd
total 14K
0 drwxr-xr-x 1 mpd audio 68.
0 drwxr-xr-x 1 root root K .
K drwxr-xr-x 8 rak rak 14 music
0 drwxr-xr-x 1 mpd audio playlists
12K -rw-r--r-- 1 mpd audio 12K sprers.eu
0 -rw-r--r-- 1 mpd audio 0 tag_cache


I've bumped the severity to grave because this bug renders the package
unusable. I'm happy to provide any mpd error connection refused information you need.

Best,
Ryan

--
grep (Not all processes could be identified, non-owned process info will not be shown, mpd error connection refused, you would have to be root to see it all.) tcp6 0 0 * LISTEN /mpd $ ncmpcpp ncmpcpp: Connection refused Let's now see if by restarting sprers.eue, an mpd client can connect to mpd on port $ systemctl --user restart sprers.eue $ systemctl --user status sprers.eue ● sprers.eue - Music Player Daemon Loaded: loaded (/usr/lib/systemd/user/sprers.eue; enabled; vendor preset: enabled) Active: active (running) since Mon EDT; 5s ago Docs: man:mpd(1) man:sprers.eu(5) file:///usr/share/doc/mpd/html/sprers.eu Main PID: mpd error connection refused CGroup: /[email protected]/sprers.eue └─ /usr/bin/mpd --no-daemon $ systemctl --user status sprers.eu ● sprers.eu Loaded: loaded (/usr/lib/systemd/user/sprers.eu; enabled; vendor preset: enabled) Active: inactive (dead) since Mon EDT; 9min ago Listen: /run/user//mpd/socket (Stream) [::] (Stream) $ netstat -anptuv grep (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) $ systemctl --user start sprers.eue $ systemctl --user status sprers.eue ● sprers.eue - Music Player Daemon Loaded: loaded (/usr/lib/systemd/user/sprers.eue; enabled; vendor preset: enabled) Active: active (running) since Mon EDT; 3s ago Docs: man:mpd(1) man:sprers.eu(5) file:///usr/share/doc/mpd/html/sprers.eu Main PID: (mpd) CGroup: /[email protected]/sprers.eue └─ /usr/bin/mpd --no-daemon $ systemctl --user status sprers.eu ● sprers.eu Loaded: loaded (/usr/lib/systemd/user/sprers.eu; enabled; vendor preset: enabled) Active: inactive (dead) since Mon EDT; 8min ago Listen: /run/user//mpd/socket (Stream) [::] (Stream) $ netstat -anptuv
You will get that message if mpd is not mpd error connection refused. Usually it fails to start due to a missing or incorrect mpd config file.
Also be aware that Debian will enable sprers.eue with mpd installation. You can disable it with The mpd version is a little dated in Debian 9 and by default only looks at configuration files in

FILES
~/.mpdconf
User configuration file.

/etc/sprers.eu
Global configuration file.

Since you did mpd error connection refused make an ~/.mpdconf, and did not specify disabling sprers.eue, you may have mpd trying to use the playlist and Music directories specified in /etc/sprers.eu It will basically fail to start and output the results to sprers.eu (where ever that is).
You can specify the config file when you start mpd by .
My ~/.config/openbox/autostart

Code: Select all

If you do this from the command line, any errors in the config file will be output.
An alternative is to set up a unix socket for mpd. The Arch Linux mpd wiki is a good guide for setting up an mpd socket.

Last edited by shep onedited 2 times in total.

watch the video

[SOLVED] Connection refused (0x0000274D/10061) -- Port 5432 -- Postgresql Connection Error

1 Comments

Leave a Comment