You are not logged in.

#1 2009-12-30 18:02:15

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

mpd + ncmpcpp

I'm using mpd + ncmpcpp

It crashes (ncmpcpp) once in a while browsing track lists. Then I can't recover port ::6600::

The message is "Cannot connect to mpd: timeout in attempting to get a response from "localhost" on port 6600"

Anyone knows how to set free port ::6600::?

Once it crashes I can't get it work again. No "kill", "killall" command do free port ::6600::

Any ideas?

Thanx in advance.

Offline

#2 2009-12-30 20:12:35

kraffslol
Member
Registered: 2009-04-09
Posts: 19

Re: mpd + ncmpcpp

is the mpd daemon on?

Offline

#3 2009-12-30 20:19:20

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

Re: mpd + ncmpcpp

When ncmpcpp crashes I kill all related processes (including mpd), but port 6600 appears still in use, plus I get the same message again when trying to run ncmpcpp again:

"Cannot connect to mpd: timeout in attempting to get a response from "localhost" on port 6600"

Thanx

Offline

#4 2009-12-30 22:01:23

Raffles10
Member
From: London, UK
Registered: 2009-05-09
Posts: 115

Re: mpd + ncmpcpp

Have you tried the official method:

sudo /etc/init.d/mpd stop

and then:

sudo /etc/init.d/mpd start

Offline

#5 2009-12-30 22:06:46

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

Re: mpd + ncmpcpp

Not really.

I tried with

mpd --kill

With no luck at all. I'll give it a try when the chance comes.

Thanx a lot.

Last edited by joe74 (2009-12-30 22:08:17)

Offline

#6 2009-12-31 00:32:58

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: mpd + ncmpcpp

Probably an MPD bug.  If MPD won't die, you'll need to killall -9 mpd before restarting it.  This happens to me quite too often while seeking.

Last edited by Wintervenom (2009-12-31 00:33:36)

Offline

#7 2009-12-31 00:41:54

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

Re: mpd + ncmpcpp

Wintervenom wrote:

Probably an MPD bug.  If MPD won't die, you'll need to killall -9 mpd before restarting it.  This happens to me quite too often while seeking.

Me too, while seeking tracks or jumping between songs.

I'll check out Raffles10 advice.

Offline

#8 2009-12-31 14:51:49

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd + ncmpcpp

it all depends on how you start your mpd. mpd --kill will only work, if you started the program as user. if you use the init script, you'll have to either kill it as root or use the rc.d/mpd stop method.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#9 2009-12-31 18:51:31

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

Re: mpd + ncmpcpp

I am noticing mpd starts with default config in /etc/mpd.conf

It doesn't use my ~/.mpd/mpd.conf

I have to create database with music and playlist every time I start the daemon or after having stopped it.

Can I comment or disable /etc/mpd.conf? Will it cause problems if so?

Offline

#10 2009-12-31 21:08:35

Raffles10
Member
From: London, UK
Registered: 2009-05-09
Posts: 115

Re: mpd + ncmpcpp

No, just 'sudo rm /etc/mpd.conf'. I use ~/.mpdconf, but ~/.mpd/mpd.conf should do just as well.

Offline

#11 2009-12-31 22:37:57

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

Re: mpd + ncmpcpp

Thanx a lot.

Offline

#12 2010-01-02 00:25:07

joe74
Member
From: Nicaragua
Registered: 2009-12-26
Posts: 20

Re: mpd + ncmpcpp

Wintervenom wrote:

Probably an MPD bug.  If MPD won't die, you'll need to killall -9 mpd before restarting it.  This happens to me quite too often while seeking.

By the way, Wintervenom:

In order to enable seeking, you should enable it by adding

incremental_seeking = "yes"
seek_time = "1"

to your ~/.ncmpcpp/config file.

Greets, and have a nice new year 2010 all you guys!

Offline

Board footer

Powered by FluxBB