You are not logged in.

#1 2019-10-08 15:21:39

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

[SOLVED] Mpd+ncmpcpp database problem

I got a *probably* working per-user configuration of mpd,i updated the database from ncmpcpp but the song does not appear.
The output of:

systemctl --user status mpd.service
mpd.service - Music Player Daemon
   Loaded: loaded (/usr/lib/systemd/user/mpd.service; disabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-10-08 18:06:41 EEST; 1min 30s ago
     Docs: man:mpd(1)
           man:mpd.conf(5)
 Main PID: 2875 (mpd)
   CGroup: /user.slice/user-1000.slice/user@1000.service/mpd.service
           └─2875 /usr/bin/mpd --no-daemon

окт 08 18:06:41 cryptos systemd[560]: Starting Music Player Daemon...
окт 08 18:06:41 cryptos mpd[2875]: exception: Default TCP listener setup failed, but this is okay because we have a $XDG_RUNTIME_DIR listene>
окт 08 18:06:41 cryptos mpd[2875]: exception: Failed to bind socket: Address already in use
окт 08 18:06:41 cryptos mpd[2875]: exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/tim>
окт 08 18:06:41 cryptos mpd[2875]: exception: Input plugin 'tidal' is unavailable: No Tidal application token configured
окт 08 18:06:41 cryptos mpd[2875]: exception: Input plugin 'qobuz' is unavailable: No Qobuz app_id configured
окт 08 18:06:41 cryptos mpd[2875]: exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Op>
окт 08 18:06:41 cryptos systemd[560]: Started Music Player Daemon.
окт 08 18:08:06 cryptos mpd[2875]: update: removing nightstep-coloblind.mp3
окт 08 18:08:06 cryptos mpd[2875]: update: added /nightstep-colorblind.mp3

Last edited by d3f4ult (2019-10-09 12:45:29)

Offline

#2 2019-10-08 15:38:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,319

Re: [SOLVED] Mpd+ncmpcpp database problem

mpc search any colorblind # assuming that's the "song" you meant

Offline

#3 2019-10-08 15:48:51

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

seth wrote:
mpc search any colorblind # assuming that's the "song" you meant

No output,ncmpcpp doesnt show the song too

Offline

#4 2019-10-08 15:56:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,319

Re: [SOLVED] Mpd+ncmpcpp database problem

mpc update
mpc search any colorblind
file /path/to/nightstep-colorblind.mp3
sudo netstat -tpn | grep mpd

Is this the only file in your DB (so far)?

Offline

#5 2019-10-08 15:58:52

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

seth wrote:
mpc update
mpc search any colorblind
file /path/to/nightstep-colorblind.mp3
sudo netstat -tpn | grep mpd

Is this the only file in your DB (so far)?

[sasha@cryptos Music]$ mpc update
Updating DB (#26) ...
volume: n/a   repeat: off   random: off   single: off   consume: off
[sasha@cryptos Music]$ mpc search any colorblind
[sasha@cryptos Music]$ file /home/sasha/Music/nightstep-colorblind.mp3
/home/sasha/Music/nightstep-colorblind.mp3: Audio file with ID3 version 2.4.0, contains:MPEG ADTS, layer III, v1, 192 kbps, 44.1 kHz, Stereo
[sasha@cryptos Music]$ sudo netstat -tpn | grep mpd
[sasha@cryptos Music]$ 

Yes, i can add more if that's the problem
EDIT:and yeah,song didn't appear

Last edited by d3f4ult (2019-10-08 16:02:13)

Offline

#6 2019-10-08 16:05:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,319

Re: [SOLVED] Mpd+ncmpcpp database problem

There's apparently no mpd process listening on tcp (:6600 or elsewhere)?

ps aux | grep mpd
sudo netstat -tulpn | grep mpd

and please post your mpd config

Edit: the file looks legit, so that's probably not the problem (the other way round would have been a strong indicator that the file is garbage)

Last edited by seth (2019-10-08 16:06:42)

Offline

#7 2019-10-08 16:11:57

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

seth wrote:

There's apparently no mpd process listening on tcp (:6600 or elsewhere)?

ps aux | grep mpd
sudo netstat -tulpn | grep mpd

and please post your mpd config

Edit: the file looks legit, so that's probably not the problem (the other way round would have been a strong indicator that the file is garbage)

[sasha@cryptos Music]$ ps aux | grep mpd
sasha       2049  0.0  0.3 377736 14656 ?        Ssl  17:44   0:00 mpd
sasha       2096  0.0  0.3 377732 13972 ?        Ssl  17:45   0:00 mpd
sasha       2875  0.0  0.9 377820 36336 ?        Ssl  18:06   0:00 /usr/bin/mpd --no-daemon
sasha       9810  0.0  0.0   6304  2404 pts/0    S+   19:08   0:00 grep mpd
[sasha@cryptos Music]$ sudo netstat -tulpn | grep mpd
tcp6       0      0 :::6600                 :::*                    LISTEN      2049/mpd            
[sasha@cryptos Music]$ 

https://raw.githubusercontent.com/NOTMA … d/mpd.conf

Offline

#8 2019-10-08 16:17:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,319

Re: [SOLVED] Mpd+ncmpcpp database problem

There're now three mpd processes and (somehow…?) the first one also holds the default TCP port now (clerical error in the former post?)
There should be *one* mpd process, so I'd suggest to stop the service, clean up remaining mpd processes and restart the service. Then check netstat and the database behavior.

Offline

#9 2019-10-08 16:21:21

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

seth wrote:

There're now three mpd processes and (somehow…?) the first one also holds the default TCP port now (clerical error in the former post?)
There should be *one* mpd process, so I'd suggest to stop the service, clean up remaining mpd processes and restart the service. Then check netstat and the database behavior.

[sasha@cryptos Music]$ systemctl --user stop mpd.service
[sasha@cryptos Music]$ ps aux | grep mpd
sasha       2049  0.0  0.3 377736 14656 ?        Ssl  17:44   0:00 mpd
sasha       2096  0.0  0.3 377732 13972 ?        Ssl  17:45   0:00 mpd
sasha      10037  0.0  0.0   6304  2300 pts/0    S+   19:19   0:00 grep mpd
[sasha@cryptos Music]$ kill 2049
[sasha@cryptos Music]$ kill 2096
[sasha@cryptos Music]$ systemctl --user start mpd.service
[sasha@cryptos Music]$ sudo netstat -tulpn | grep mpd
tcp6       0      0 :::6600                 :::*                    LISTEN      10044/mpd           
[sasha@cryptos Music]$ ps aux | grep mpd
sasha      10044  2.3  0.9 302076 36880 ?        Ssl  19:19   0:00 /usr/bin/mpd --no-daemon
sasha      10058  0.0  0.0   6304  2336 pts/0    S+   19:19   0:00 grep mpd

Song doesn't appear still

Offline

#10 2019-10-08 16:23:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,408

Re: [SOLVED] Mpd+ncmpcpp database problem

Not sure whether the mpc search command would relevantly catch that. But is the file properly tagged? Not on my mpd setup so I can't verify but I know quite a few programs that will have weird display issues when they assume tags to be present and you essentially only have the file name.

Offline

#11 2019-10-08 16:27:22

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

V1del wrote:

Not sure whether the mpc search command would relevantly catch that. But is the file properly tagged? Not on my mpd setup so I can't verify but I know quite a few programs that will have weird display issues when they assume tags to be present and you essentially only have the file name.

Tags?I'm not a complete noob,but i don't know what do you mean.

Offline

#12 2019-10-08 16:29:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,319

Re: [SOLVED] Mpd+ncmpcpp database problem

And to be sure: did you re-run "mpc update" after the cleanup?

Edit: i3tag, there is one, but:

id3 /home/sasha/Music/nightstep-colorblind.mp3

Last edited by seth (2019-10-08 16:30:02)

Offline

#13 2019-10-08 16:30:37

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

seth wrote:

And to be sure: did you re-run "mpc update" after the cleanup?

I think ncmpcpp's

u

hotkey works same?
EDIT: still doesn't work

Last edited by d3f4ult (2019-10-08 16:32:54)

Offline

#14 2019-10-08 16:39:41

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

seth wrote:

And to be sure: did you re-run "mpc update" after the cleanup?

Edit: i3tag, there is one, but:

id3 /home/sasha/Music/nightstep-colorblind.mp3

Command not found

Offline

#15 2019-10-08 20:18:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,319

Re: [SOLVED] Mpd+ncmpcpp database problem

id3lib provides id3info, id3 is actually an AUR package

And please paste the mpd log and ~/.config/mpd/database (shouldn't be too big for one file)

Offline

#16 2019-10-09 12:43:56

d3f4ult
Member
Registered: 2019-10-08
Posts: 17

Re: [SOLVED] Mpd+ncmpcpp database problem

Nevermind,the song appeared after reboot

Offline

Board footer

Powered by FluxBB