On Wed, Sep 3, 2014 at 7:29 PM, Nicholas Fleisher <nfleis...@gmail.com> wrote:
> On Wed Sep 03 10:12 AM, Mike Larkin wrote:
>> On Wed, Sep 03, 2014 at 10:55:47AM -0500, Nicholas Fleisher wrote:
>> > With the two latest snapshots I've installed (Aug 29 and Sep 2, amd64)
>> > and the most recent package of mpd (built Aug 30 on my mirror), mpd no
>> > longer starts up, either at boot (via "pkg_scripts" in
>> > /etc/rc.conf.local) or manually ("/etc/rc.d/mpd start" yields
>> > "mpd(failed)").  Attempting to connect with clients results in the
>> > following error:
>> >
>> > Couldn't connect to MPD (host = localhost, port = 6600): Connection refused
>> >
>>
>> I've had problems like this when localhost gets redefined (usually by 
>> accident
>> via someone updating DNS incorrectly) to something other than 127.0.0.1.
>>
>> Does mpc -h 127.0.0.1  work?
>
> Thanks! but no, alas.
>
> With some help from ajacoutot@, I've managed to learn that there is a
> problem with the mpd.db database file getting corrupted upon launch.
> Here is the output from /etc/rc.d/mpd -d start:
>
> doing _rc_parse_conf
> doing _rc_quirks
> mpd_flags empty, using default ><
> doing _rc_read_runfile
> doing rc_check
> mpd
> doing rc_start
> /usr/local/sbin/mpd:/usr/lib/libstdc++.so.57.0: 
> /usr/local/lib/libestdc++.so.16.0 : WARNING: 
> symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch, relink your 
> program
> db: Database corrupted
> doing _rc_write_runfile
> (ok)
>
> Anyone else having a similar problem?

No, it works fine for me (mpd 0.18.13).

You can try to:

# mv /var/spool/mpd/mpd.db /var/spool/mpd/mpd.db.broken
# /etc/rc.d/mpd restart


ciao,
David

Reply via email to