LINUX.ORG.RU

Не проигрывает MPD...


0

0

При загрузки системы вылазит такая строчка: Avahi: Failed to create client: Daemon not running mpd.

Если дать ps aux, то процесс mpd существует, однако ничего не проигрывает.

Добавить файлы mpc ls | mpc add не удается. mpc ls вообще не выдает никаких файлов, хотя каталог полон mp3. Ну естественно mpc play -- без результата.

В каком направлении копать-то?

anonymous

А демон mpd права на чтение/исполнение имеет в папке с коллекцией?

mpd --create-db --verbose ругается?

riko
()
Ответ на: комментарий от riko

+1, проверить обязательно - только вчера напоролся: переместил коллекцию, а права дать забыл. В итоге минут пять как дебил не мог понять почему mpd не создаёт базу...

animechaos
()
Ответ на: комментарий от fugu

>конфиг файл в студию!
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

######################## REQUIRED PATHS ########################
# You can put symlinks in here, if you like. Make sure that
# the user that mpd runs as (see the 'user' config parameter)
# can read the files in this directory.
music_directory		"/var/lib/mpd/music"
playlist_directory	"/var/lib/mpd/playlists"
db_file			"/var/lib/mpd/tag_cache"
log_file		"/var/log/mpd/mpd.log"
error_file		"/var/log/mpd/errors.log"
pid_file		"/var/run/mpd/pid"
################################################################


######################## OPTIONAL PATHS ########################
#
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit.  This will be
# used to restore the session the next time it is run.
#
state_file		"/var/lib/mpd/state"
#
################################################################


######################## DAEMON OPTIONS ########################
#
# If started as root, MPD will drop root privileges and run as
# this user instead.  Otherwise, MPD will run as the user it was
# started by.  If left unspecified, MPD will not drop root
# privileges at all (not recommended).
#
user                            "mpd"
#
# The address and port to listen on.
#
bind_to_address                 "localhost"
#port                            "6600"
#
# Controls the amount of information that is logged.  Can be
# "default", "secure", or "verbose".
#
#log_level                       "default"
#
################################################################

###################### CHARACTER ENCODINGS #####################
#
# If file or directory names do not display correctly, then you
# may need to change this.  In most cases it should be either
# "ISO-8859-1" or "UTF-8".  You must recreate your database
# after changing this (use mpd --create-db).
#
filesystem_charset              "UTF-8"
#
# The encoding that ID3v1 tags should be converted from.
#
id3v1_encoding                  "UTF-8"
#
################################################################

Вот и все!

anonymous
()
Ответ на: комментарий от animechaos

>+1, проверить обязательно - только вчера напоролся: переместил коллекцию, а права дать забыл. В итоге минут пять как дебил не мог понять почему mpd не создаёт базу...

На чтение права есть:
-rw-r--r-- 1 root root   0 2008-01-09 20:40 1
drwxrwxrwx 2 root root 664 2008-01-06 17:08 music
drwxr-xr-x 2  100   29  48 2007-09-02 09:23 playlists
-rw-r--r-- 1  100   29 118 2008-01-08 22:54 state
-rw-r--r-- 1  100   29  86 2008-01-06 14:17 tag_cache

-rw-rw-rw- 1 boris 1000 5868145 2001-09-10 17:42 01-Vremya est a deneg net.mp3
-rw-rw-rw- 1 root  root 5966592 2008-01-06 17:09 01-Vremya est a deneg net.ogg
-rw-rw-rw- 1 boris 1000 4946044 2001-09-10 17:42 02-Prosto hochesh ti znat.mp3
-rw-rw-rw- 1 boris 1000 4173560 2001-09-10 17:42 03-Alyuminievie ogurci.mp3
-rw-rw-rw- 1 boris 1000 4530999 2001-09-10 17:42 04-Solnechnie dni.mp3
-rw-rw-rw- 1 boris 1000 4580456 2001-09-10 17:42 05-Bezdelnik.mp3
-rw-rw-rw- 1 boris 1000 4405809 2001-09-10 17:42 06-Bezdelnik 2.mp3
-rw-rw-rw- 1 boris 1000 3675225 2001-09-10 17:42 07-Elektrichka.mp3
-rw-rw-rw- 1 boris 1000 3891223 2001-09-10 17:42 08-Vosmiklassnica.mp3
-rw-rw-rw- 1 boris 1000 6325115 2001-09-10 17:42 09-Moi druzya.mp3
-rw-rw-rw- 1 boris 1000 2212931 2001-09-10 17:42 10-Sitar igral.mp3
-rw-rw-rw- 1 boris 1000 2432021 2001-09-10 17:42 11-Derevo.mp3
-rw-rw-rw- 1 boris 1000 5220228 2001-09-10 17:42 12-Kogda-to ti bil bitnikom.mp3
-rw-rw-rw- 1 boris 1000 4323152 2001-09-10 17:42 13-Na kuhne.mp3
-rw-rw-rw- 1 boris 1000 4483419 2001-09-10 17:42 14-Ya - asfalt.mp3

А что, на исполнение тоже права нужны?

anonymous
()
Ответ на: комментарий от riko

>mpd --create-db --verbose ругается?

Если из под обычного пользователя: Cannot setgid for user "mpd" at line 35: Operation not permitted.

Если из под рута: flushing warning messages done flushing warning messages setFsCharset: fs charset is: UTF-8 libFLAC supports OggFLAC, initializing OggFLAC support flushing warning messages done flushing warning messages explore: attempting to opendir: explore: explore: found: 12-Kogda-to ti bil bitnikom.mp3 (12-Kogda-to ti bil bitnikom.mp3) added 12-Kogda-to ti bil bitnikom.mp3 explore: found: 10-Sitar igral.mp3 (10-Sitar igral.mp3) added 10-Sitar igral.mp3 explore: found: 11-Derevo.mp3 (11-Derevo.mp3) added 11-Derevo.mp3 explore: found: 07-Elektrichka.mp3 (07-Elektrichka.mp3) added 07-Elektrichka.mp3 explore: found: 05-Bezdelnik.mp3 (05-Bezdelnik.mp3) added 05-Bezdelnik.mp3 explore: found: 01-Vremya est a deneg net.mp3 (01-Vremya est a deneg net.mp3) added 01-Vremya est a deneg net.mp3 explore: found: 01-Vremya est a deneg net.ogg (01-Vremya est a deneg net.ogg) added 01-Vremya est a deneg net.ogg explore: found: 04-Solnechnie dni.mp3 (04-Solnechnie dni.mp3) added 04-Solnechnie dni.mp3 explore: found: 13-Na kuhne.mp3 (13-Na kuhne.mp3) added 13-Na kuhne.mp3 explore: found: 03-Alyuminievie ogurci.mp3 (03-Alyuminievie ogurci.mp3) added 03-Alyuminievie ogurci.mp3 explore: found: 08-Vosmiklassnica.mp3 (08-Vosmiklassnica.mp3) added 08-Vosmiklassnica.mp3 explore: found: 09-Moi druzya.mp3 (09-Moi druzya.mp3) added 09-Moi druzya.mp3 explore: found: 06-Bezdelnik 2.mp3 (06-Bezdelnik 2.mp3) added 06-Bezdelnik 2.mp3 explore: found: 14-Ya - asfalt.mp3 (14-Ya - asfalt.mp3) added 14-Ya - asfalt.mp3 explore: found: 02-Prosto hochesh ti znat.mp3 (02-Prosto hochesh ti znat.mp3) added 02-Prosto hochesh ti znat.mp3 removing empty directories from DB sorting DB writing DB

anonymous
()
Ответ на: комментарий от animechaos

Ребят, все классно. Завелось еще вчера. Всем спасибо! :-)

laune
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.