You are here: Home » Topic » Mt-daapd can’t find my mp3

Mt-daapd can’t find my mp3

  • This topic has 10 replies, 3 voices, and was last updated 14 years ago by svizi.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #271
    svizi
    Guest

    Hi,

    I have a mt-daapd server running on an ubuntu machine. I have moved over my linux box some mp3 files via smb. I have moved two folders with 2-folder depth. My iTunes v.6.0.4.2 recognizes the server but can’t find my songs.

    I have run mt-daapd -f -c /etc/mt-daapd.conf -d9 as indicated in a post and here it is the log:

    Read web_root: /usr/share/mt-daapd/admin-root
    Read port: 3689
    Read admin_pw: mt-daapd
    Read db_dir: /var/cache/mt-daapd
    Read mp3_dir: /home/stefanos/mp3
    Read servername: Stefanos Jukebox
    Read runas: nobody
    Read playlist: /etc/mt-daapd.playlist
    Read extensions: .mp3,.m4a,.m4p
    Read logfile: /var/log/mt-daapd.log
    Read rescan_interval: 3600
    Read scan_type: 2
    Checking existence of /home/stefanos/mp3
    Checking existence of /var/cache/mt-daapd
    Starting rendezvous daemon
    Starting signal handler
    Loading playlists
    Initializing database
    Finished loading smart playlists
    Adding smart playlist AAC Files as 5
    Adding new playlist AAC Files
    Added playlist
    Adding smart playlist Non-DRMed Music as 4
    Adding new playlist Non-DRMed Music
    Added playlist
    Adding smart playlist Recently Added as 3
    Adding new playlist Recently Added
    Added playlist
    Adding smart playlist 60’s Music as 2
    Adding new playlist 60’s Music
    Added playlist
    Building playlists
    Loaded database… found 0 songs
    Starting mp3 scan
    Foreground scanning for MP3s in /home/stefanos/mp3
    Found /home/stefanos/mp3/Back in Black
    Found dir Back in Black… recursing
    Found /home/stefanos/mp3/Orishas
    Found dir Orishas… recursing
    Initial update over. Removing stale items
    Done removing stale items
    Reorganizing db
    Signal handler started
    Reorganize done
    Finding deleted static playlists
    Starting web server from /usr/share/mt-daapd/admin-root on port 3689
    Preparing to listen on port 3689
    Could not open port: Address already in use
    Error staring web server: Address already in use
    Aborting

    Thanks in advance for your help.

    #4407
    rpedde
    Participant

    @svizi wrote:

    Hi,
    Preparing to listen on port 3689
    Could not open port: Address already in use
    Error staring web server: Address already in use

    There is already a mt-daapd running. Try killing them all (killall -9 mt-daapd would do it, albeit violently).

    Then try starting it again.

    — Ron

    #4408
    svizi
    Guest

    unfortunately nothing happens. How can i see which daemons are currently running on my machine. I also figured out that mt-daapd doesn’t start automatically.

    #4409
    fizze
    Participant

    ok, you’re new to linux, no problem 😉

    the command “ps” shows a list of all running processes.
    to view all instances of mt-daapd, do a “ps aux|grep mt-daapd”

    the | character is a pipe.

    when mt-daapd is running, there are 4-5 instances active.
    to kill it, just do “killall mt-daapd”.

    only the super user (root) can use “killall”.

    how did you install it ?
    did you do a make && make install ?
    you should have a init script located in either /etc/init.d
    or /usr/local/etc/init.d, depending on your prefix.

    start and stop mt-daapd with this script ONLY.
    the script does a few checks wether mt-daapd is already running int terminates it only then to restart it. its more comfortable that way.

    #4410
    svizi
    Guest

    I installed it via the .deb package found on the web site of mt-daapd.

    #4411
    svizi
    Guest

    Should i remove the .deb package ( don’t know how ) and install it manually?

    #4412
    rpedde
    Participant

    @svizi wrote:

    Should i remove the .deb package ( don’t know how ) and install it manually?

    You have two problems. One is that when you ran it as you, it bumped into the version that the system started. That’s problem number one.

    Problem number two is that the system version is running as “nobody” but trying to read mp3 files that are sitting in your home directory. “nobody” doesn’t have permission to read files in your home directory, so it doesn’t find any files.

    Two options:

    change the “runas” user to your username, so it runs as you can access the mp3 files, or move the mp3 files out of your home directory to somewhere where you can set read permissions to everyone.

    Simple answer is probably the prior, better answer is probably the latter.

    Either way works, though.

    When starting or stopping, you should be doing:


    /etc/init.d/mt-daapd start

    and

    /etc/init.d/mt-daapd stop

    as root.

    This should help.

    — Ron

    #4413
    svizi
    Guest

    Ok everything works fine many thanks….

    #4414
    svizi
    Guest

    Sorry about the relevance of the question but how can i make mt-daapd start with the computer. Now i have to run it manually.

    #4415
    rpedde
    Participant

    @svizi wrote:

    Sorry about the relevance of the question but how can i make mt-daapd start with the computer. Now i have to run it manually.

    I’m not an ubuntu expert, but I’m assuming it must be like debian:

    something like


    update-rc.d mt-daapd defaults

    ought to do it.

    #4416
    svizi
    Guest

    Yep everything works as expected. Thanks.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.