LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-24-2014, 03:24 PM   #1
danlel
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
MPD stops playing immediately


I'm using Slackware 14.1 in VirtualBox. I installed the mpd 0.19 SlackBuild package. When I attempt to play music from mpc or ncmpcpp, there's a distorted noise for about one second and then it suddenly stops playing.

This is my mpd.conf:
Code:
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
log_file "~/.mpd/log
pid_file "~/.mpd/pid"
state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql"
user "danlel"
#group "audio"
#bind_to_adress "any"
#port "6600"
auto_update "yes"
auto_update_depth "3"
audio_output {
type "alsa"
name "My ALSA Device"
}
My mpd log file:
Code:
[player: played "And I'm Home.mp3"
Dec 24 17:15 : client: [0] closed
Dec 24 17:15 : client: [0] opened from 127.0.0.1:34663
Dec 24 17:15 : player: played "And I'm Home.mp3"
Dec 24 17:15 : player: played "And I'm Home.mp3"
Dec 24 17:15 : player: played "And I'm Home.mp3"
Dec 24 17:15 : player: played "And I'm Home.mp3"
Dec 24 17:18 : client: [0] closed
Dec 24 17:27 : client: [0] opened from 127.0.0.1:34670
Dec 24 17:27 : player: played "And I'm Home.mp3"
Dec 24 17:27 : client: [0] closed
Dec 24 17:28 : client: [0] opened from 127.0.0.1:34671
Dec 24 17:28 : player: played "And I'm Home.mp3"
Dec 24 17:28 : player: played "And I'm Home.mp3"
Dec 24 17:28 : client: [0] closed
And the output of mpd --verbose

Code:
config_file: loading file /home/danlel/.mpd/mpd.conf
Dec 24 17:58 : server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
Dec 24 17:58 : path: SetFSCharset: fs charset is: UTF-8
Dec 24 17:58 : libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
Dec 24 17:58 : vorbis: Xiph.Org libVorbis 1.3.3
Dec 24 17:58 : sndfile: libsndfile-1.0.25
Dec 24 17:58 : db: reading DB
Dec 24 17:58 : curl: version 7.31.0
Dec 24 17:58 : curl: with OpenSSL/1.0.1c
One thing I noticed is that there's no mpd user, but I don't know if it is related to this behavior. Shouldn't it be created during the installation process?

Thanks in advance
 
Old 12-25-2014, 08:01 AM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
I could be wayyyy off base here, as it's my understanding that a when a conf file is read, any line that is commented (preceded by a '#') it is ignored, but there is a typo in the 'bind_to_address' line.

Further along those lines, force a bind to localhost, or perhaps an active network interface, and see if that has an effect.

cheers,
 
Old 12-25-2014, 11:40 AM   #3
danlel
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes, that's because I tried uncommenting it and replacing "any" with "localhost" and "127.0.0.1" but I kept getting the same errors. Moreover, I uncommented the group line and got this:
Code:
Dec 25 04:44 : client: [6] process command "status"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "currentsong"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "status"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "currentsong"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "status"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "currentsong"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "status"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "currentsong"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "status"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "currentsong"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "status"
Dec 25 04:44 : client: [6] command returned 0
Dec 25 04:44 : client: [6] process command "currentsong"
Dec 25 04:44 : client: [6] command returned 0
However, I then started mpd as root and there were no errors. I will try setting it up system-wide instead of doing the local configuration.
Edit: it doesn't work as root either.

Last edited by danlel; 12-25-2014 at 12:24 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPD playing without 'user' lespaul047 Linux - Software 2 05-04-2008 12:29 AM
XMMS stops playing. pxumsgdxpcvjm Linux - Software 0 03-06-2007 02:02 AM
PXE service stops immediately rammya Linux - Networking 3 07-12-2005 11:08 PM
Sound stops after some minutes playing Chemical Linux - Newbie 2 09-13-2003 12:09 PM
Mozilla stops immediately Jingle Linux - Software 4 05-30-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration