You are here: Home » Topic » mt-daapd on Terastation – NOW WORKING

mt-daapd on Terastation – NOW WORKING

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1440
    Anonymous
    Inactive

    I’m *still* trying to get firefly working on my terastation and have now managed to get libsqlite and libid3tag libraies installed without borking the TS, BUT the version of firefly I’m using mt-daapd_0.9-svn-1586_sarge_powerpc.deb has been complied with ogg support and possibly other requirements which make it a whole lot harder to get working..
    Is there anybody who can provide me with a ppc binary which doesnt depend on ogg/vorbis? Please.

    Also are there other options which I haven’t discovered yet which may make my life difficult later (flac or howl spring to mind)?

    Thanks
    Nicknoxx

    #10972
    Anonymous
    Inactive

    An idle afternoon has led to progress. I installed just the libraries from the debian PPc version of libogg, libvorbis libFlac and have made progress.

    Syslog shows the foollowing:-
    May 31 16:36:15 BIGBOY mt-daapd[987]: Firefly Version svn-1586: Starting with debuglevel 2
    May 31 16:36:15 BIGBOY mt-daapd[987]: Plugin loaded: ssc-script/svn-1586
    May 31 16:36:15 BIGBOY mt-daapd[987]: Plugin loaded: rsp/svn-1586
    May 31 16:36:15 BIGBOY mt-daapd[987]: Plugin loaded: daap/svn-1586
    May 31 16:36:15 BIGBOY mt-daapd[987]: Starting rendezvous daemon
    May 31 16:36:15 BIGBOY mt-daapd[987]: Starting signal handler
    May 31 16:36:15 BIGBOY mt-daapd[989]: Error: enum_begin failed (error 1): Misc SQL Error: no such table: config
    May 31 16:36:15 BIGBOY mt-daapd[989]: Can’t get db version. New database?
    May 31 16:36:15 BIGBOY mt-daapd[989]: Initializing database
    May 31 16:36:15 BIGBOY mt-daapd[989]: Error: enum_begin failed (error 1): ?
    May 31 16:36:15 BIGBOY mt-daapd[989]: Error: enum_begin failed (error 1): ?
    May 31 16:36:15 BIGBOY mt-daapd[989]: Full reload…
    May 31 16:36:15 BIGBOY mt-daapd[989]: Starting web server from /mnt/array1/firefly/usr/share/mt-daapd/admin-root on port 3689
    May 31 16:36:15 BIGBOY mt-daapd[989]: Registering rendezvous names
    May 31 16:36:15 BIGBOY mt-daapd[989]: Error: enum_begin failed (error 1): Misc SQL Error: no such table: songs
    May 31 16:36:15 BIGBOY mt-daapd[989]: Error getting song count: Misc SQL Error: no such table: songs

    #10973
    fizze
    Participant

    Seems like the user firefly / mt-daapd runs as does not have write permission to the db_directory, or the disk is full.

    Also, be sure to give mt-daapd read permissions to all files within the music_dir, and execute and read permission to all dirs within 😉

    Thinking of getting a Terastation myself – hope mt-daapd runs smooth & sound 🙂

    #10974
    Anonymous
    Inactive

    You were right, it was a permissions issue.

    Now sort of working:

    I can connect to firefly from a web browser and scan for songs – 6939 found BUT when I try to connect from the Soundbeidge It can’t connect and I get the following error:-
    Error in zlib: -2
    Rendezvous socket closed (daap server crashed?) Aborting.

    #10975
    fizze
    Participant

    You didnt enable compression in the mt-daapd config file by any chance?

    Other than that, did you try to connect throug DAAP or RCP?

    If you have a pinnacle branded soundbridge forget about DAAP, if yours is a roku, then try not to load the rcp.so plugin.

    Can you try to connect with any other clients? GIT? iTunes, banshee, rhythmbox?

    #10976
    Anonymous
    Inactive

    You didnt enable compression in the mt-daapd config file by any chance?

    Not deliberately – how would I check?

    Other than that, did you try to connect throug DAAP or RCP?

    errm don’t know

    If you have a pinnacle branded soundbridge forget about DAAP, if yours is a roku, then try not to load the rcp.so plugin.

    I’m in the UK so mine’s a Pinnacle. The reason for installing firefly as opposed to Pcast which is already on my TS is so I can play iTunes playlists

    Can you try to connect with any other clients? GIT? iTunes, banshee, rhythmbox?

    Yes I can connect using iTunes on my PC

    Error in zlib: -2 – This may have been co-incidence as it doesn’t always happen
    Rendezvous socket closed (daap server crashed?) Aborting. – This does

    #10977
    rpedde
    Participant

    @account_doesnt_work wrote:

    Error in zlib: -2 – This may have been co-incidence as it doesn’t always happen
    Rendezvous socket closed (daap server crashed?) Aborting. – This does

    That’s secret code for “zlib too old”. I keep meaning to recover from that more gracefully, but I hardly ever see it.

    The oldest version that supports gzip wrappers is 1.2.0.4 (Aug 2003).

    I think the version you have is older than that. Is it possible to upgrade your zlib?

    #10978
    Anonymous
    Inactive

    Is it possible to upgrade your zlib?

    I don’t know. There are only two files with zlib in the title on my Terastation, zlib_inflate.o and zlib_deflate.o. I’m a bit nervous about changing them as the deflate one is probably used to uncompress the kernel at boot time and that could brick the TS if it went wrong. What do you think?

    #10979
    Anonymous
    Inactive

    With help from a very nice man called Andre on the Linkstationwiki it now works!!!

    I’m streaming music directly from my Terastation to my Soundbridge using Firefly

    Thanks everybody

    #10980
    Anonymous
    Inactive

    I have a TeraStation Pro and would like to do something similar. Are you by any chance transcoding FLAC to wave? If so, how is the performance?

    #10981
    Anonymous
    Inactive

    @pmorris wrote:

    I have a TeraStation Pro and would like to do something similar. Are you by any chance transcoding FLAC to wave? If so, how is the performance?

    Most of the files I have are .wav – I only bothered with Flac and ogg libraries because Firefly depends on them, I haven’t tested them yet

    #10982
    Anonymous
    Inactive

    I would like to do the same. I’ve hacked my terastation, already. Can you point me in the right direction?

    #10983
    Anonymous
    Inactive

    I’m writing a “how I did it” and will post the link soon

    #10984
    rpedde
    Participant

    @account_doesnt_work wrote:

    I’m writing a “how I did it” and will post the link soon

    Would you be interested in putting it up at http://wiki.fireflymediaserver.org?

    — Ron

    #10985
    Anonymous
    Inactive

    I would but it looks complicated 🙂 Can someone else do it?

    Firefly on Terastation mini how-to

    Introduction
    This document explains how I got Firefly aka mt-daapd running on a Terastation Home Server. I wanted to do this because I believed that if I bought a Buffalo Terastation and a Roku Soundbridge I’d be able to create play lists in iTunes and access them through the Terastation. Unfortunately, because I live in the UK I got a Pinnacle branded Soundbridge which won’t ‘see’ iTunes xml files.

    Disclaimer
    Follow any suggestions here at your own risk. Don’t blame me if your Terastation ends up as useful as a door stop. It worked for me but I did have to reinstall the firmware three times and my Terastation spend a week in Japanese. Any advice given does not follow good practice but is a bare minimum to get it working. So far Ogg and Flac are untested because I went for .wav files as I have loads of storage (so do you if you own a Terastation)

    Install new firmware
    This is where you get to invalidate the guarantee on your Terastation. You need telnet and root access before you can start. If you don’t know what this means you need a Linux course first.
    I used version 2.11 firmware which I found here:- http://homepage.ntlworld.com/itimpi/buffalo.htm
    Follow the instructions carefully and everything should go well. I use putty.exe to log in to my Terastation from my Windows machine.

    Download the files
    You’ll need the following libraries. Generally software compiled for Debian PowerPC seems to work. You might not get, or need, exactly the same versions as these, but these are the ones I used.

    libgdbm3_1.8.3-2-binaries-ppc.tar
    libid3tag_0.15.1b-binaries-ppc.tar
    sqlite_2.8.17-2_powerpc.deb
    libogg0_1.1.3-2_powerpc.deb
    libvorbis0a_1.1.2.dfsg-1.2_powerpc.deb
    libflac7_1.1.2-6_powerpc.deb
    zlib_1.2.3-ppc.tar

    mt-daapd_0.9-svn-1586_sarge_powerpc.deb from http://nightlies.mt-daapd.org/

    I used XacRett to ‘undeb’ the files on my Windows machine before copying over to the TS. This will generate a file called ‘control.tar’ which you can discard and one called ‘data.tar’ which you’ll need to rename to avoid confusion later.

    Create a special folder, mine’s called ‘firefly’, as a shared folder on the Terastation and copy all the stuff you’ve downloaded here.

    Unpack and install
    Use
    tar -zxvf filename
    not
    tar -C / -zxvf filename
    This will install the files in the current directory not the root directory

    Make links
    In /usr/lib create the following links:-

    libid3tag.a -> /mnt/array1/firefly/usr/local/lib/libid3tag.a
    libid3tag.la -> /mnt/array1/firefly/usr/local/lib/libid3tag.la
    libFLAC.so.6 -> /mnt/array1/firefly/usr/lib/libFLAC.so.7
    libid3tag.so -> /mnt/array1/firefly/usr/local/lib/libid3tag.so
    libid3tag.so.0 -> /mnt/array1/firefly/usr/local/lib/libid3tag.so.0
    libid3tag.so.0.3.0 -> /mnt/array1/firefly/usr/local/lib/libid3tag.so.0.3.0
    libogg.so.0 -> /mnt/array1/firefly/usr/lib/libogg.so.0
    libvorbis.so.0 -> /mnt/array1/firefly/usr/lib/libvorbis.so.0
    libvorbisfile..so.3 -> /mnt/array1/firefly/usr/lib/libvorbis.so.0 (NB This may break vorbis but doesn’t affect wav files)
    libz.so -> libz.so.1
    libz.so.1 -> libz.so.1.2.3 not libz.so.1.1.4
    (NB libz.so.1.1.4 remains as may be used by other stuff)

    Copy /mnt/array1/firefly/etc/init.d/ mt-daapd to /etc/init.d/mt-daapd and edit the line following line:-
    DAEMON=/mnt/array1/firefly/usr/sbin/mt-daapd

    In /etc create
    mt-daapd.conf -> /mnt/array1/firefly/usr/share/doc/mt-daapd/mt-daapd.conf

    Edit mt-daapd.conf to suit. I changed the following:-

    web_root = /mnt/array1/firefly/usr/share/mt-daapd/admin-root
    db_parms = /mnt/array1/firefly/var/cache/mt-daapd
    mp3_dir = /mnt/array1/Music
    playlist = /mnt/array1/firefly/usr/etc/mt-daapd.playlist
    ssc_prog = /mnt/array1/firefly/usr/bin/mt-daapd-ssc.sh
    extensions = .mp3,.m4a,.m4p,.wa v
    plugin_dir = /mnt/array1/firefly/usr/share/mt-daapd/plugins

    Change ownership of /mny/array1/firefly to nobody:

    Start firefly
    /etc/init.d/mt-daapd start
    Check log file (/usr/log/messages is default) you should see something like
    Firefly Version svn-1586: Starting with debuglevel 2
    Plugin loaded: ssc-script/svn-1586
    Plugin loaded: rsp/svn-1586
    Plugin loaded: daap/svn-1586
    Starting rendezvous daemon
    Starting signal handler
    Initializing database
    Starting web server from /mnt/array1/firefly/usr/share/mt-daapd/admin-root on port 3689
    Registering rendezvous names
    Serving 6864 songs. Startup complete in 17 seconds
    Rescanning database

    That’s it

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