Subject: Re: bug#44820: MPD fails after respawning too often

From: Martin Becze <[email-masked]>
Date: Fri, 27 Nov 2020 05:31:29 -0600

I also ran into this problem. Here is the relevnat part of 
/var/run/mpd/<mpd-user>/log

> exception: Failed to create pid file "/var/run/mpd/<mpd-user>/pid": Permission denied

A quick dirty fix is just to chown the /var/run/mpd folder so that mpd 
can create its pid file.

On 11/27/20 4:31 AM, Ludovic Courtès wrote:
> Hi,
> 
> Simon <[email-masked]> skribis:
> 
>> On a recent pull, MPD will not start any more.
>>
>> Herd status reports:
>>
>> Status of mpd:
>>    It is stopped.
>>    It is disabled.
>>    Provides (mpd).
>>    Requires (user-processes).
>>    Conflicts with ().
>>    Will be respawned.
>>    Last respawned on Mon Nov 23 10:22:07+0100 2020.
>>
>>
>> Reading my messages, I find:
>>
>> Nov 23 10:22:07 localhost shepherd[1]: Respawning mpd.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been started.
>> Nov 23 10:22:07 localhost shepherd[1]: Respawning mpd.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been started.
>> Nov 23 10:22:07 localhost shepherd[1]: Respawning mpd.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been started.
>> Nov 23 10:22:07 localhost shepherd[1]: Respawning mpd.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been started.
>> Nov 23 10:22:07 localhost shepherd[1]: Respawning mpd.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been started.
>> Nov 23 10:22:07 localhost shepherd[1]: Respawning mpd.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been started.
>> Nov 23 10:22:07 localhost shepherd[1]: Service mpd has been disabled.
>> Nov 23 10:22:07 localhost shepherd[1]:   (Respawning too fast.)
>>
>>
>> Unfortunately, there are no further messages as to why the service is
>> disabled, or why the daemon is respawning too often.
> 
> Does /var/log/mpd/mpd.log or similar contain useful info?
> 
> Could you share your ‘mpd-configuration’?
> 
> There have been two changes recently, which fixed the mpd system test,
> but perhaps they introduced other issues:
> 
>    https://git.savannah.gnu.org/cgit/guix.git/log?id=bb124f6e9c0af0a23736f233c2ea2c9c9b4a40a6
> 
> Thanks for reporting the issue,
> Ludo’.
> 
> 
>