A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
I'm trying to pair my iPad 2.0 with forked-daapd using the Remote app. When I save a .remote file in the library, the pairing appears to succeed and the Remote app displays the message "Looking for.." but eventually stops at "Could not find.."
Steps to reproduce the problem
Install forked-daapd from Ubuntu repositories
Create /var/log/forked-daapd.log and /var/pid/forked-daapd.pid. Change file ownership to daapd user.
Modify /etc/forked-daapd.conf to point to a small music collection and increase logging to spam:
general {
# Username
uid = "daapd"
logfile = "/var/log/forked-daapd.log"
# Database location
# db_path = "/var/cache/forked-daapd/songs3.db"
# Available levels: fatal, log, warning, info, debug, spam
loglevel = spam
# Admin password for the non-existent web interface
admin_password = "unused"
# Enable/disable IPv6
ipv6 = no
}
# Library configuration
library {
# Name of the library as displayed by the clients
# %h: hostname, %v: version
name = "avggeek´s Music Library on %h"
# TCP port to listen on. Default port is 3689 (daap)
port = 3689
# Password for the library. Optional.
# password = ""
# Directories to index
directories = { "/media/music/avggeek/debug" }
# Directories containing compilations
# Matches anywhere in the path (not a regexp, though)
# compilations = { "/compilations/" }
# Should iTunes metadata override ours?
# itunes_overrides = true
# Formats: mp4a, mp4v, mpeg, alac, flac, mpc, ogg, wma, wmal, wmav, aif, wav
# Formats that should never be transcoded
# no_transcode = { "alac", "mp4a" }
# Formats that should always be transcoded
# force_transcode = { "ogg", "flac" }
}
# Local audio output
audio {
# AirTunes name - used in the speaker list in Remote
nickname = "avggeek-NAS"
# Audio device name for local audio output
# card = "default"
# Mixer channel to use for volume control - ALSA/Linux only
# If not set, PCM will be used if available, otherwise Master.
# mixer = ""
}
# Airport Express device
#apex "ApEx" {
# AirTunes password
# password = "s1kr3t"
#}
Download and install the "Remote" app (version 2.2). Launch the app and tap "Add an iTunes Library".
On the server running forked-daapd, run avahi-browse -r -k _touch-remote._tcp. Output is as follows:
+ eth0 IPv4 551a6e2858ac4074e02bf85bac967ba21be83b05 _touch-remote._tcp local
= eth0 IPv4 551a6e2858ac4074e02bf85bac967ba21be83b05 _touch-remote._tcp local
hostname = [avggeeks-iPad.local]
address = [192.168.0.201]
port = [61772]
txt = ["DvNm=avggeek’s iPad" "DvTy=iPad" "RemV=10000" "RemN=Remote" "txtvers=1" "Pair=CF226E2FB390BD5A"]
- eth0 IPv4 551a6e2858ac4074e02bf85bac967ba21be83b05 _touch-remote._tcp local
Save a file debug.remote in "/media/music/avggeek/debug" with the following lines:
avggeek’s iPad
1234
Relevant portion of /var/log/forked-daapd.log is as follows:
[2011-12-31 09:31:53] mdns: Avahi Browser: NEW service '551a6e2858ac4074e02bf85bac967ba21be83b05' type '_touch-remote._tcp' proto 0
[2011-12-31 09:31:53] mdns: Avahi Resolver: resolved service '551a6e2858ac4074e02bf85bac967ba21be83b05' type '_touch-remote._tcp' proto 0
[2011-12-31 09:31:53] mdns: Service 551a6e2858ac4074e02bf85bac967ba21be83b05, hostname Balajis-iPad.local resolved to 192.168.0.201
[2011-12-31 09:31:53] remote: Discovered remote avggeek’s iPad (id 551a6e2858ac4074e02bf85bac967ba21be83b05) at [192.168.0.201]:61772, paircode CF226E2FB390BD5A
[2011-12-31 09:31:53] remote: Remote id 551a6e2858ac4074e02bf85bac967ba21be83b05 not known, adding
[2011-12-31 09:32:34] db: Running query 'SELECT * FROM inotify WHERE wd = 1;'
[2011-12-31 09:32:34] scan: File event: 0x100, cookie 0x0, wd 1
[2011-12-31 09:32:34] remote: Adding Remote pin data: name 'avggeek’s iPad', pin '1234'
[2011-12-31 09:32:34] remote: Remote 'avggeek’s iPad' found
[2011-12-31 09:32:34] db: Running query 'SELECT * FROM inotify WHERE wd = 1;'
[2011-12-31 09:32:34] remote: Pairing hash for 551a6e2858ac4074e02bf85bac967ba21be83b05/avggeek’s iPad: 62718C8DE3A2DBE1E94E782A8CFABE7B
[2011-12-31 09:32:34] scan: File event: 0x2, cookie 0x0, wd 1
[2011-12-31 09:32:34] remote: Adding Remote pin data: name 'avggeek’s iPad', pin '1234'
[2011-12-31 09:32:34] remote: Remote 'avggeek’s iPad' not known from mDNS, ignoring
[2011-12-31 09:32:34] db: Running query 'SELECT * FROM inotify WHERE wd = 1;'
[2011-12-31 09:32:34] scan: File event: 0x8, cookie 0x0, wd 1
[2011-12-31 09:32:34] remote: Adding Remote pin data: name 'avggeek’s iPad', pin '4943'
[2011-12-31 09:32:34] remote: Remote 'avggeek’s iPad' not known from mDNS, ignoring
[2011-12-31 09:32:40] remote: Pairing succeeded with Remote 'avggeek’s iPad' (id 551a6e2858ac4074e02bf85bac967ba21be83b05), GUID: 6179701039B66ACC
[2011-12-31 09:32:40] db: Running query 'DELETE FROM pairings WHERE remote = '551a6e2858ac4074e02bf85bac967ba21be83b05';'
[2011-12-31 09:32:40] db: Running query 'INSERT INTO pairings (remote, name, guid) VALUES ('551a6e2858ac4074e02bf85bac967ba21be83b05', 'avggeek’s iPad', '6179701039B66ACC');'
[2011-12-31 09:32:41] mdns: Avahi Browser: REMOVE service '551a6e2858ac4074e02bf85bac967ba21be83b05' type '_touch-remote._tcp' proto 0
[2011-12-31 09:32:41] remote: Remote 551a6e2858ac4074e02bf85bac967ba21be83b05 not found in list
Details of setup
OS - Ubuntu 11.10 x64
forked-daapd version - 0.19-1ubuntu1
Remote app version - 2.2
Description of the Problem
I'm trying to pair my iPad 2.0 with forked-daapd using the Remote app. When I save a .remote file in the library, the pairing appears to succeed and the Remote app displays the message "Looking for.." but eventually stops at "Could not find.."
Steps to reproduce the problem
Details of setup
OS - Ubuntu 11.10 x64 forked-daapd version - 0.19-1ubuntu1 Remote app version - 2.2