You are not logged in.

#1 2014-01-22 18:46:21

dartfira
Member
Registered: 2010-08-23
Posts: 104

Mpd: connection refused after some time

Hello all
I'm trying to use MPD, I've yet configured it and i cannot say that the configuration doesn't works but something goes wrong.
The connection dropped after some time, I can start and use ncmpc but after some time it says: Connection refused.

That is the conf file, I'm using a per user configuration

# Required files
db_file            "~/.config/mpd/database"
log_file           "~/.config/mpd/log"
# Optional
music_directory    "/media/hdext/Musica"
playlist_directory "~/.config/mpd/playlists"
pid_file           "~/.config/mpd/pid"
state_file         "~/.config/mpd/state"
sticker_file       "~/.config/mpd/sticker.sql"
log_level "verbose"
audio_output {
       type            "pulse"
       name            "pulse audio"
##      server          "remote_server"         # optional
##      sink            "remote_server_sink"    # optional
}
replaygain "album"
auto_update "yes"

The music folder is in external hd.

Offline

#2 2014-01-23 08:53:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Mpd: connection refused after some time

What output does the verbose output show?

mpd --no-daemon --stdout --verbose

You could also just use Rasi's simple setup script to configure it correctly...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-01-23 09:12:48

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: Mpd: connection refused after some time

Those are the last 7 lines.

client: [0] process command "status"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: ISO: File Type Major Brand: M4A
ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
zsh: segmentation fault (core dumped)  mpd --no-daemon --stdout --verbose

It started to scan the library but then while I was playing a track ncmpc reported: connection refused.

The rasi's script is not online anymore.

Offline

#4 2014-01-23 17:13:55

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

Re: Mpd: connection refused after some time

sorry for that. had some changes on server.. link fixed.

anyway your issue seems like some corrupt files.
start mpd with

mpd --verbose --stdout --no-daemon

and watch what files make it choke.

@jasonwryan: one more post!

Last edited by Rasi (2014-01-23 17:21:16)


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

#5 2014-01-25 10:24:56

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: Mpd: connection refused after some time

Well maybe it could be a problem related to .m4a files?

update: reading Radiohead/The Bends/01 - Planet Telex - The Bends.m4a
ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: ISO: File Type Major Brand: M4A
ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
zsh: segmentation fault (core dumped)  mpd --verbose --stdout --no-daemon

I'm gonna do some tries.

Tries done, the problem is related to the .m4a files.

Last edited by dartfira (2014-01-25 10:37:34)

Offline

Board footer

Powered by FluxBB