Firefly failed to start

Viewing 10 posts - 1 through 10 (of 17 total)
  • Author
    Posts
  • #978
    zelet
    Participant

    Hi, I’m new to all this but I’ve searched the forum and tried the latest (1463) and an older (1417) nightly builds. I’m getting the exact same error with both builds. Just for background – I’m on an Intel Mac Mini trying to set up a DAAP server so that XBMC will work with iTunes 7.

    This is the log right after a clean-install.

    2007-01-10 13:25:57 (a000eca8): Firefly Version svn-1463: Starting with debuglevel 2
    2007-01-10 13:25:57 (a000eca8): Starting rendezvous daemon
    2007-01-10 13:25:57 (a000eca8): Starting signal handler
    2007-01-10 13:25:57 (01807000): Signal handler started
    2007-01-10 13:25:57 (a000eca8): Error: enum_begin failed (error 1): Misc SQL Error: no such table: config
    2007-01-10 13:25:57 (a000eca8): Can’t get db version. New database?
    2007-01-10 13:25:57 (a000eca8): Initializing database
    2007-01-10 13:25:57 (a000eca8): Error: enum_begin failed (error 1): ?
    2007-01-10 13:25:57 (a000eca8): Error: enum_begin failed (error 1): ?
    2007-01-10 13:25:57 (a000eca8): Full reload…
    2007-01-10 13:25:57 (a000eca8): Starting mp3 scan
    2007-01-10 13:25:57 (a000eca8): Starting playlist scan
    2007-01-10 13:26:11 (a000eca8): Rendezvous socket closed (daap server crashed?) Aborting.
    2007-01-10 13:26:11: Aborting

    Thanks for any help,
    John

    #8364
    fizze
    Participant

    after install, but before you run firefly, you have to alter the mt-daapd.conf file (sorr,y no clue where OSX puts that) and change your mp3_dir to something legit.

    Two things: the user under which mt-daapd aka firefly runs must have access to this folder, and it probably should be where your music library / mp3s are located.

    #8365
    zelet
    Participant

    Thanks for the quick help. Another question – does Firefly support my library being in one folder (local) and my MP3’s being on a network share?

    Thanks,
    John

    Edit: I edited the config file with the correct location of my MP3s wich are on a network share. This is the error log I’m seeing:

    2007-01-10 14:59:58 (a000eca8): Firefly Version svn-1463: Starting with debuglevel 2
    2007-01-10 14:59:58 (a000eca8): Starting rendezvous daemon
    2007-01-10 14:59:58 (a000eca8): Starting signal handler
    2007-01-10 14:59:58 (01807000): Signal handler started
    2007-01-10 14:59:58 (a000eca8): Error: enum_begin failed (error 1): Misc SQL Error: no such table: config
    2007-01-10 14:59:58 (a000eca8): Can’t get db version. New database?
    2007-01-10 14:59:58 (a000eca8): Initializing database
    2007-01-10 14:59:58 (a000eca8): Error: enum_begin failed (error 1): ?
    2007-01-10 14:59:58 (a000eca8): Error: enum_begin failed (error 1): ?
    2007-01-10 14:59:58 (a000eca8): Full reload…
    2007-01-10 14:59:58 (a000eca8): Starting mp3 scan
    2007-01-10 15:00:40 (a000eca8): Rendezvous socket closed (daap server crashed?) Aborting.
    2007-01-10 15:00:40: Aborting

    #8366
    fizze
    Participant

    what does the mt-daapd.conf say under runas user?

    I guess that its nobody, or guest.
    It looks like this user does not have access to the share, mp3_dir, and/or no access to the database location, which is defined under db_param.

    to test this, open a terminal, and do:

    su nobody
    ls -al /path/to/your/share
    ls -al/path/to/your/database

    you’ll see if this user has access rights, or not.
    The user mt-daapd runs as, must have write access to the DB folder, and at least read access to the mp3_dir.

    In case this is all too much hazzle, and you just want to run the server in yout private, local network it probably is easier to just change the runas-user to your own user. Be aware though that anyone with access to mt-daapd can possibly hack your account and wipe all your data, or worse. ๐Ÿ˜‰
    ๐Ÿ™‚

    #8367
    zelet
    Participant

    I tried running firefly as myself but I got the exact same error as before. I even did a clean uninstall/install and before I used Firefly at all I put in the correct .conf and started it. Same crash with the same log. Any ideas left?

    #8368
    fizze
    Participant

    weird.

    whats the db_param ?

    I just checked, this is deffo related to the DB. I guess that either your db_param path is just bogus, or its not writeable by either user.

    #8369
    zelet
    Participant

    Hey,

    I installed as the local user which means my user name “john” should have access to everything since Firefly is installed in my home directory. The db_param = “db_parms = /Users/john/Library/Application Support/Firefly”

    That is a valid install point for Mac apps. I checked the permissions for the songs.db file and its returning that user john is the owner and group.

    Like I said before though, my MP3s are stored in a different place than my iTunes library files. The library file is stored at /Users/john/Music/iTunes but my MP3s are stored on a network share located at /Volumes/FTP/MP3 Collection/. I have read/write access to both of those locations.

    #8370
    fizze
    Participant

    ok, that sounds alright.

    the error DB_ENUM means that firefly cant access the DB. its just a test to fetch a single line of data, which fails.
    So maybe this is related to sqlite2 or sqlite3 problems.

    You didnt by any chance install sqlite3 or sqlite ?

    can you try and do a

    sqlite /Users/john/Library/Application Support/Firefly/songs.db
    #8371
    zelet
    Participant

    mac:~ john$ sqlite /Users/john/Library/Application Support/Firefly/songs.db
    -bash: sqlite: command not found

    mac:~ john$ locate sqlite
    ~bunch of locations of libraries here
    /usr/bin/sqlite3
    ~more libraries and stuff
    /usr/lib/sqlite3

    Should I change the DB to sqlite3?

    mac:~ john$ sqlite3 /Users/john/Library/Application Support/Firefly/songs.db
    SQLite version 3.1.3
    Enter “.help” for instructions
    sqlite>

    Thanks for your help! ๐Ÿ™‚

    Changed it to sqlite3 and got this:
    2007-01-10 16:03:57 (a000eca8): Firefly Version svn-1463: Starting with debuglevel 2
    2007-01-10 16:03:57 (a000eca8): Starting rendezvous daemon
    2007-01-10 16:03:57 (a000eca8): Starting signal handler
    2007-01-10 16:03:57 (01807000): Signal handler started
    2007-01-10 16:03:57 (a000eca8): Error opening db: No backend database support for type: sqlite3
    2007-01-10 16:03:57 (a000eca8): Stopping signal handler
    2007-01-10 16:03:57 (01807000): Got shutdown signal. Notifying daap server.

    Another Update:

    I installed sqlite (version 2) and it worked for a bit. It found my songs. Through the web interface I added my iTunes library instead of just my song list. When I went to browse the share in iTunes (it was visible) it loaded the songs then the server crashed. This is the error log:
    2007-01-10 16:09:27 (a000eca8): Firefly Version svn-1463: Starting with debuglevel 2
    2007-01-10 16:09:27 (a000eca8): Starting rendezvous daemon
    2007-01-10 16:09:27 (a000eca8): Starting signal handler
    2007-01-10 16:09:27 (01807000): Signal handler started
    2007-01-10 16:09:27 (a000eca8): Initializing database
    2007-01-10 16:09:29 (a000eca8): Starting web server from /Users/john/Library/PreferencePanes/Firefly.prefPane/Contents/Resources/Firefly Helper.app/Contents/Resources/Server/admin-root on port 0
    2007-01-10 16:09:29 (a000eca8): Registering rendezvous names
    2007-01-10 16:09:31 (a000eca8): Serving 1585 songs. Startup complete in 4 seconds
    2007-01-10 16:09:31 (a000eca8): Rescanning database
    2007-01-10 16:09:34 (01809600): Unknown meta code: daap.songalbumartist
    2007-01-10 16:09:34 (01809600): Unknown meta code: daap.songcategory
    2007-01-10 16:09:34 (01809600): Unknown meta code: daap.songcontentdescription
    2007-01-10 16:09:34 (01809600): Unknown meta code: daap.songlongcontentdescription
    2007-01-10 16:09:34 (01809600): Unknown meta code: daap.songkeywords
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.is-podcast
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.mediakind
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.series-name
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.network-name
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.episode-num-str
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.episode-sort
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.season-num
    2007-01-10 16:09:34 (01809600): Unknown meta code: daap.songgapless
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.gapless-enc-del
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.gapless-heur
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.gapless-enc-dr
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.gapless-dur
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.gapless-resy
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.is-podcast-playlist
    2007-01-10 16:09:34 (01809600): Unknown meta code: com.apple.itunes.special-playlist
    2007-01-10 16:09:35 (a000eca8): Rendezvous socket closed (daap server crashed?) Aborting.
    2007-01-10 16:09:35: Aborting

    Now after that crash when I try to restart the server it does quickly and gives me this log:
    2007-01-10 16:11:37 (a000eca8): Firefly Version svn-1463: Starting with debuglevel 2
    2007-01-10 16:11:37 (a000eca8): Starting rendezvous daemon
    2007-01-10 16:11:37 (a000eca8): Starting signal handler
    2007-01-10 16:11:37 (01807000): Signal handler started
    2007-01-10 16:11:37 (a000eca8): Initializing database
    2007-01-10 16:11:38 (a000eca8): Starting web server from /Users/john/Library/PreferencePanes/Firefly.prefPane/Contents/Resources/Firefly Helper.app/Contents/Resources/Server/admin-root on port 0
    2007-01-10 16:11:38 (a000eca8): Registering rendezvous names
    2007-01-10 16:11:40 (a000eca8): Serving 1585 songs. Startup complete in 3 seconds
    2007-01-10 16:11:40 (a000eca8): Rescanning database
    2007-01-10 16:11:44 (a000eca8): Rendezvous socket closed (daap server crashed?) Aborting.
    2007-01-10 16:11:44: Aborting

    and this:

    mac:~ john$ sqlite /Users/john/Library/Application Support/Firefly/songs.db
    SQL error: near “Support”: syntax error

    So I’m assuming somehow the DB got corrupted when it crashed and I have to recreate it?

    #8372
    fizze
    Participant

    well no, the thing is that firefly can scan iTunes xml file and others. But its not really recommended to have them point at the same path. Try to have firefly point to a subset of files first, to get it up and running. ๐Ÿ™‚

    ron knows far better what those log entries mean. I dont use iTunes, let a lone a Mac, so I cant help ya there.

    Interesting, that the dmg doesnt do any dependency checks on sqlite during install. whatever.

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