You are not logged in.

#1 2012-11-08 07:38:55

frat
Member
Registered: 2011-10-08
Posts: 32

mpd failed to update db?

according to wiki,i set up /etc/mpd.conf

music_directory        "~/music"
playlist_directory    “/var/lib/mpd/playlists”
db_file               “/var/lib/mpd/mpd.db”
log_file              “/var/log/mpd/mpd.log”
error_file            “/var/log/mpd/mpd.error”
pid_file              “/var/run/mpd/mpd.pid”
state_file            “/var/lib/mpd/mpdstate”
user                  “mpd”

and also as wiki says:
# mkdir /var/lib/mpd/music
# ln -s ~/music  /var/lib/mpd/music/

# sudo systemctl start mpd
#systemctl status mpd
mpd.service - Music Player Daemon
      Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled)
      Active: active (running) since Thu, 2012-11-08 15:23:09 CST; 6s ago
    Main PID: 2803 (mpd)
      CGroup: name=systemd:/system/mpd.service
          └ 2803 /usr/bin/mpd --no-daemon

looks start up normally.

#mpc update
Updating DB (#1) ...
volume:100%   repeat: off   random: off   single: off   consume: off

so does the db update

#mpc ls
or
#mpc ls |mpc add
no song added,empty.

i‘ve checked  /var/lib/mpd/mpd.db,only 344kb size :

info_begin
format: 1
mpd_version: 0.17.2
fs_charset: UTF-8
tag: Artist
tag: ArtistSort
tag: Album
tag: AlbumArtist
tag: AlbumArtistSort
tag: Title
tag: Track
tag: Name
tag: Genre
tag: Date
tag: Composer
tag: Performer
tag: Disc
tag: MUSICBRAINZ_ARTISTID
tag: MUSICBRAINZ_ALBUMID
tag: MUSICBRAINZ_ALBUMARTISTID
tag: MUSICBRAINZ_TRACKID
info_end

So the mpd db is empty,cannot get updated.
what can i do ?

Last edited by frat (2012-11-08 13:36:55)

Offline

#2 2012-11-08 09:45:46

Tes--
Member
Registered: 2009-11-13
Posts: 44

Re: mpd failed to update db?

"Remember to set permissions accordingly on the directories being linked. "

Offline

#3 2012-11-08 10:05:09

frat
Member
Registered: 2011-10-08
Posts: 32

Re: mpd failed to update db?

what kind of permissions  should i set accordingly on the directories being linked?

Offline

#4 2012-11-08 10:07:16

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

Re: mpd failed to update db?

frat wrote:

what kind of permissions  should i set accordingly on the directories being linked?

The ones outlined in the wiki...


Also, please edit your first post and use code tags:
https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-11-08 13:38:48

frat
Member
Registered: 2011-10-08
Posts: 32

Re: mpd failed to update db?

chown to mpd? it's quite confusing in the wiki.

Offline

#6 2012-11-08 17:08:19

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

Re: mpd failed to update db?

I guess your files belong to your every day user?

why not use the setup script linked in the wiki and run mpd as user... makes things so much easier


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

Board footer

Powered by FluxBB