You are not logged in.

#1 2021-01-31 03:01:08

tinbolw
Member
Registered: 2020-10-17
Posts: 16

[SOLVED] mpd does not load songs and mpc update does not work

Earlier today I installed polybar and with it, mpd so I could use the mpd module. It worked earlier - I installed mpd and used an mpd client called Ario and it functioned properly. After downloading more songs and putting them into the my designated music folder, I checked ario and saw that only the song that I originally had was there. I then tried to update the mpd database in the console by running:

mpc update

and it returned:

MPD error: No database

I reinstalled mpd, and this is still occurring.
I have the database file linked in my mpd.conf and I'm running mpd as my user, so it should work. I also have the music folder linked correctly as it was working earlier and I haven't changed it. I also tried another mpd client called GMPC, but that also gave me a "No Database" error. Does anyone know how I can fix this and get my mpd working again?

[EDIT:] I just figured out that there's a reload database and connect button in Ario. Clicking either one doesn't seem to do anything though.
Also, running:

systemctl start mpd

seems to work as it doesn't produce any errors, but ario still doesn't do anything when connect is pressed but gmpc successfully connects. The "No Database" error is still present though. I tried running the command:

mpd

instead of starting it from systemctl and it outputs this:

Jan 30 20:08 : exception: Default TCP listener setup failed, but this is okay because we have a $XDG_RUNTIME_DIR listener: Failed to bind to '[::]:6600'; Failed to bind socket: Address already in use
Jan 30 20:08 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Jan 30 20:08 : output: No 'audio_output' defined in config file
Jan 30 20:08 : output: Successfully detected a alsa audio device
Failed to initialize io_uring: io_uring_queue_init() failed: Cannot allocate memory

I'm not sure why it's failing to bind socket since port 6600 is open and nothing is using it...

Last edited by tinbolw (2021-02-01 03:24:29)

Offline

#2 2021-01-31 09:12:53

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

Re: [SOLVED] mpd does not load songs and mpc update does not work

It fails to bind the IPv6 address because the port is in use by the IPv4 connection. That's harmless.

Ensure there's no mpd intance running ("ps aux | grep mpd") and run "mpd -v"
Notice that this will start the daemon for  yor current user, unlike "systemctl start mpd" which will start a system wide service.
Those need different configuration, https://wiki.archlinux.org/index.php/Mu … yer_Daemon

Hence please elaborate on your setup.

Offline

#3 2021-02-01 03:22:59

tinbolw
Member
Registered: 2020-10-17
Posts: 16

Re: [SOLVED] mpd does not load songs and mpc update does not work

I did not realize that using systemctl to start mpd would start it systemwide as I thought that in order to do that you would need to sudo systemctl. It turns out I had mpd correctly configured for my user, but not for the system. Running it for my user how you stated worked and now it's functioning properly. Thank you for replying and sorry for wasting your time with such a silly mistake on my end.

Offline

Board footer

Powered by FluxBB