LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2015, 05:05 AM   #1
xSqueal
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Rep: Reputation: Disabled
ncmpcpp doesn’t show music at all


my mpd config:
Code:
music_directory                  "/home/shachaf/Music"
db_file                          "/home/shachaf/.mpd/mpd.db"
log_file                         "/home/shachaf/.mpd/mpd.log"
pid_file                         "/home/shachaf/.mpd/mpd.pid"
state_file                       "/home/shachaf/.mpd/mpdstate"
playlist_directory               "/home/shachaf/.mpd/playlists"
log_level                        "default"
#password                        "password@read,add,control,admin"
#default_permissions             "read,add,control,admin"
#bind_to_address                 ""
bind_to_address                  "127.0.0.1"
bind_to_address                  "/home/shachaf/.mpd/socket"
port                             "6600"
gapless_mp3_playback             "yes"
auto_update                      "yes"
and my ncmpcpp config:
Code:
## System
mpd_host = "127.0.0.1"
mpd_music_dir = "/home/shachaf/Music"
mpd_port = "6600"
mpd_crossfade_time = "5"
ncmpcpp_directory = "~/.ncmpcpp"

## Interface
playlist_display_mode = "columns"
progressbar_look = ""
What I'm doing wrong ?
 
Old 07-27-2015, 06:15 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
You probably just need to populate your playlist with your full collection, I was thrown by this initially and every now and again, following updates I think, I have to re-run the command:
Code:
mpc ls|mpc add
http://linux.die.net/man/1/mpc
 
Old 07-27-2015, 06:27 AM   #3
xSqueal
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
You probably just need to populate your playlist with your full collection, I was thrown by this initially and every now and again, following updates I think, I have to re-run the command:
Code:
mpc ls|mpc add
http://linux.die.net/man/1/mpc
Still not working :\
the ncmpcpp stop working after I reboot my pc, I tried to change & add the config files but still nothing
 
Old 07-27-2015, 06:33 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Is mpd running? Do you have another, graphical mpd client to try that might be easier to figure out?
 
Old 07-27-2015, 06:35 AM   #5
xSqueal
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
Is mpd running? Do you have another, graphical mpd client to try that might be easier to figure out?
ammm no
when I do
sudo mpd
Code:
Jul 27 14:34 : socket: Failed to bind to '127.0.0.1:6600': Address already in use
so it's say mpd is already running right ?
I kill mpd
run ncmpcpp
still not showing my music
 
Old 07-27-2015, 06:40 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Try to search fro mpd in the process list rather than starting a new instance?
Code:
ps -A|grep mpd
mpd can be a pain to set up sometimes so it's worth making sure it is actually running and listening. I asked whether yuo had a graphical client also because something like Gnome Music Player Client will give you confirmation of what is and is not working so you can work out whether mpd or ncmpcpp is causing the issues.
 
Old 07-27-2015, 06:45 AM   #7
xSqueal
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
Try to search fro mpd in the process list rather than starting a new instance?
Code:
ps -A|grep mpd
mpd can be a pain to set up sometimes so it's worth making sure it is actually running and listening. I asked whether yuo had a graphical client also because something like Gnome Music Player Client will give you confirmation of what is and is not working so you can work out whether mpd or ncmpcpp is causing the issues.
I have amarok, is that good ?
No output for ps -A|grep mpd
I did sudo killall -9 mpd
and every time i do sudo mpd
it's output:
Code:
socket: Failed to bind to '127.0.0.1:6600': Address already in use
what can i do ?
 
Old 07-27-2015, 06:53 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
For starters you may be better off not running mpd with sudo -- it can be set to run as its own user as a service but I found that problematic with PulseAduio so I just run it as me and it works fine.
Amarok doesn't have any integration with mpd that I know of.
I think I found the instructions on the Arch wiki here:
https://wiki.archlinux.org/index.php....28per_user.29
Until you get mpd sorted out you'll have no luck with ncmpcpp or any other mpd client.
 
1 members found this post helpful.
Old 07-27-2015, 07:01 AM   #9
xSqueal
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
For starters you may be better off not running mpd with sudo -- it can be set to run as its own user as a service but I found that problematic with PulseAduio so I just run it as me and it works fine.
Amarok doesn't have any integration with mpd that I know of.
I think I found the instructions on the Arch wiki here:
https://wiki.archlinux.org/index.php....28per_user.29
Until you get mpd sorted out you'll have no luck with ncmpcpp or any other mpd client.
Hey, thank you for your time, I've solved the problem

port 6600 was taken, changed the port in both config files to 420 (kek) and now mpd work without errors and ncmpcpp show my music :3
 
Old 07-27-2015, 07:08 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by xSqueal View Post
Hey, thank you for your time, I've solved the problem

port 6600 was taken, changed the port in both config files to 420 (kek) and now mpd work without errors and ncmpcpp show my music :3
You're welcome, but it's probably worth finding out what is on port 6600.
Glad you have it working but I'd suggest keeping at it and reading the page I linked to in case anything comes up -- bear in mind it isn't written for Ubuntu but a great deal will apply.
A though occurs and that's to run
Code:
sudo service mpd stop
which will stop mpd if it is running as a service for root.
 
Old 07-27-2015, 07:11 AM   #11
xSqueal
LQ Newbie
 
Registered: Jul 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
You're welcome, but it's probably worth finding out what is on port 6600.
Glad you have it working but I'd suggest keeping at it and reading the page I linked to in case anything comes up -- bear in mind it isn't written for Ubuntu but a great deal will apply.
A though occurs and that's to run
Code:
sudo service mpd stop
which will stop mpd if it is running as a service for root.
6600 port: tcp6
I don't know why it's there, but ok....
ty :3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ncmpcpp not playing music, stays paused SharpyWarpy Linux - Software 0 09-25-2013 12:44 PM
totem-pps plugin doesn't seem to work (doesn't show up) prushik Linux - Software 1 07-29-2013 09:51 AM
gtkmm: show() doesn't show the window when adding windows from other places than main() Hvl Programming 0 06-21-2012 09:54 AM
make kmess show music from rhythmbox? michaelinux Linux - Desktop 2 08-08-2010 02:04 PM
LXer: Ncmpcpp: Ncurses MPD Client [Shell Music Player] LXer Syndicated Linux News 0 01-04-2010 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:23 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