Reply To: mt-daapd on Ubuntu and iTunes on Vista does not connect

FireFly Media Server Firefly Media Server Forums Firefly Media Server Setup Issues mt-daapd on Ubuntu and iTunes on Vista does not connect Reply To: mt-daapd on Ubuntu and iTunes on Vista does not connect

#11179
mephisto
Participant

I’d be very surprised if it was your build Ron, I think you would be inundated with support queries if that were the case.

I was quite prepared for the problem to be either something with my system as a result of tinkering or by me doing something stupid.

** This is now a clean install of feisty with the standard avahi, the version of mt-daapd that comes with feisty has never been installed. The only thing that has been installed is the nightly build of mt-daapd: mt-daapd_0.9-svn-1586_feisty_i386.deb and the libsqlite0 dependency. **

The following are level 9 diagnostic runs for
a) mt-daapd with avahi running and
b) mt-daapd with avahi stopped.

ls -la /var/cache/mt-daapd
total 16
drwxr-xr-x 2 nobody root 21 2007-07-24 10:32 .
drwxr-xr-x 17 root root 4096 2007-07-24 09:48 ..
-rw-r–r– 1 nobody nogroup 9216 2007-07-24 10:32 songs.db

a)
ps auxw | grep “avahi”
avahi 9515 0.0 0.4 2660 1380 ? Ss 10:20 0:00 avahi-daemon: running [testbox.local]
avahi 9516 0.0 0.1 2660 456 ? Ss 10:20 0:00 avahi-daemon: chroot helper
dad 9692 0.0 0.2 2896 780 pts/0 S+ 10:25 0:00 grep avahi

sudo /usr/sbin/mt-daapd -d9 -f
Got general/web_root, convert to general/web_root (/usr/share/mt-daapd/admin-root)
Found existing section
Got general/port, convert to general/port (3689)
Found existing section
Got general/admin_pw, convert to general/admin_pw (mt-daapd)
Found existing section
Got general/db_type, convert to general/db_type (sqlite)
Found existing section
Got general/db_parms, convert to general/db_parms (/var/cache/mt-daapd)
Found existing section
Got general/mp3_dir, convert to general/mp3_dir (/home/dad/music)
Found existing section
Found 1 tokens in /home/dad/music
Token 1: /home/dad/music
Got general/servername, convert to general/servername (Firefly)
Found existing section
Got general/runas, convert to general/runas (nobody)
Found existing section
Got general/playlist, convert to general/playlist (/usr/etc/mt-daapd.playlist)
Found existing section
Got general/extensions, convert to general/extensions (.mp3,.m4a,.m4p)
Found existing section
Got general/ssc_codectypes, convert to general/ssc_codectypes (ogg,flac,alac)
Found existing section
Got general/ssc_prog, convert to general/ssc_prog (/usr/bin/mt-daapd-ssc.sh)
Found existing section
Expanding precomments to 2048
Expanding precomments to 4096
Got general/scan_type, convert to general/scan_type (2)
Found existing section
Got plugins/plugin_dir, convert to plugins/plugin_dir (/usr/share/mt-daapd/plugins)
Found existing section
Checking existence of /usr/share/mt-daapd/admin-root
Checking existence of /usr/share/mt-daapd/admin-root
Checking existence of /var/cache/mt-daapd
Checking existence of /var/cache/mt-daapd
Checking existence of /usr/share/mt-daapd/plugins
Checking existence of /usr/share/mt-daapd/plugins
Loading new config file.
Firefly Version svn-1586: Starting with debuglevel 9
Attempting to load plugin /usr/share/mt-daapd/plugins/out-daap.so
Loaded plugin /usr/share/mt-daapd/plugins/out-daap.so (daap/svn-1586)
New transcode codec list:
Attempting to load plugin /usr/share/mt-daapd/plugins/rsp.so
Loaded plugin /usr/share/mt-daapd/plugins/rsp.so (rsp/svn-1586)
New transcode codec list:
Attempting to load plugin /usr/share/mt-daapd/plugins/ssc-script.so
Loaded plugin /usr/share/mt-daapd/plugins/ssc-script.so (ssc-script/svn-1586)
New transcode codec list: ogg,flac,alac
Plugin loaded: ssc-script/svn-1586
Plugin loaded: rsp/svn-1586
Plugin loaded: daap/svn-1586
Starting rendezvous daemon
Starting signal handler
Opening database
select(7, 0.000976)
Executing: select value from config where term=’version’
Results: 0
Initializing database
Executing: select count(*) FROM songs
Executing: select value from config where term=’rescan’
Full reload…
Executing: drop index idx_path
Query: drop index idx_path
Error: no such index: idx_path
Executing: drop index idx_songid
Query: drop index idx_songid
Error: no such index: idx_songid
Executing: drop index idx_playlistid
Query: drop index idx_playlistid
Error: no such index: idx_playlistid
Executing: drop table songs
select(7, 0.047851)
Rows: 0
Executing: delete from playlists where not type=1 and not type=0
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/(null)/134932752
select(7, 0.100585)
Rows: 0
Executing: drop table playlistitems
Rows: 0
Executing: drop table config
Rows: 0
Executing: vacuum
select(7, 0.097656)
Rows: 0
Executing: create table songs (
id INTEGER PRIMARY KEY NOT NULL,
path VARCHAR(4096) NOT NULL,
fname VARCHAR(255) NOT NULL,
title VARCHAR(1024) DEFAULT NULL,
artist VARCHAR(1024) DEFAULT NULL,
album VARCHAR(1024) DEFAULT NULL,
genre VARCHAR(255) DEFAULT NULL,
comment VARCHAR(4096) DEFAULT NULL,
type VARCHAR(255) DEFAULT NULL,
composer VARCHAR(1024) DEFAULT NULL,
orchestra VARCHAR(1024) DEFAULT NULL,
conductor VARCHAR(1024) DEFAULT NULL,
grouping VARCHAR(1024) DEFAULT NULL,
url VARCHAR(1024) DEFAULT NULL,
bitrate INTEGER DEFAULT 0,
samplerate INTEGER DEFAULT 0,
song_length INTEGER DEFAULT 0,
file_size INTEGER DEFAULT 0,
year INTEGER DEFAULT 0,
track INTEGER DEFAULT 0,
total_tracks INTEGER DEFAULT 0,
disc INTEGER DEFAULT 0,
total_discs INTEGER DEFAULT 0,
bpm INTEGER DEFAULT 0,
compilation INTEGER DEFAULT 0,
rating INTEGER DEFAULT 0,
play_count INTEGER DEFAULT 0,
data_kind INTEGER DEFAULT 0,
item_kind INTEGER DEFAULT 0,
description INTEGER DEFAULT 0,
time_added INTEGER DEFAULT 0,
time_modified INTEGER DEFAULT 0,
time_played INTEGER DEFAULT 0,
db_timestamp INTEGER DEFAULT 0,
disabled INTEGER DEFAULT 0,
sample_count INTEGER DEFAULT 0,
force_update INTEGER DEFAULT 0,
codectype VARCHAR(5) DEFAULT NULL,
idx INTEGER NOT NULL,
has_video INTEGER DEFAULT 0,
contentrating INTEGER DEFAULT 0,
bits_per_sample INTEGER DEFAULT 0,
album_artist VARCHAR(1024)
);
create table playlistitems (
id INTEGER PRIMARY KEY NOT NULL,
playlistid INTEGER NOT NULL,
songid INTEGER NOT NULL
);
create table config (
term VARCHAR(255) NOT NULL,
subterm VARCHAR(255) DEFAULT NULL,
value VARCHAR(1024) NOT NULL
);
insert into config values (‘version’,”,’13’);

mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/(null)/134932752
select(7, 0.100585)
select(7, 0.146484)
Rows: 1
Executing: create table playlists (
id INTEGER PRIMARY KEY NOT NULL,
title VARCHAR(255) NOT NULL,
type INTEGER NOT NULL,
items INTEGER NOT NULL,
query VARCHAR(1024),
db_timestamp INTEGER NOT NULL,
path VARCHAR(4096),
idx INTEGER NOT NULL
);
insert into playlists values (1,’Library’,1,0,’1′,0,”,0);

Query: create table playlists (
id INTEGER PRIMARY KEY NOT NULL,
title VARCHAR(255) NOT NULL,
type INTEGER NOT NULL,
items INTEGER NOT NULL,
query VARCHAR(1024),
db_timestamp INTEGER NOT NULL,
path VARCHAR(4096),
idx INTEGER NOT NULL
);
insert into playlists values (1,’Library’,1,0,’1′,0,”,0);

Error: table playlists already exists
Starting web server from /usr/share/mt-daapd/admin-root on port 3689
Listening on port 3689
Starting server thread
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/(null)/134932752
select(7, 0.100585)
Registering rendezvous names
Processing rendezvous message
Registering Firefly._http._tcp (3689)
Registered service 0, name ‘Firefly’, type ‘_http._tcp’, domain ‘local.’, port 3689
select(7, 0.098632)
Checking ssc-script/svn-1586
Checking rsp/svn-1586
Registering _rsp._tcp
Processing rendezvous message
Registering Firefly._rsp._tcp (3689)
Registered service 1, name ‘Firefly’, type ‘_rsp._tcp’, domain ‘local.’, port 3689
select(7, 0.097656)
Checking daap/svn-1586
Registering _daap._tcp
Processing rendezvous message
Registering Firefly._daap._tcp (3689)
Registered service 2, name ‘Firefly’, type ‘_daap._tcp’, domain ‘local.’, port 3689
select(7, 0.097656)
Executing: select count(*) FROM songs
Serving 0 songs. Startup complete in 1 seconds
select(7, 0.000976)
select(7, 0.146484)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.000976)
select(7, 0.096679)
select(7, 0.146484)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 0.146484)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 0.146484)
Callback: Name Registered
Callback: Name Registered
Callback: Name Registered
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.000976)
select(7, 0.096679)
select(7, 0.140625)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 0.648437)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 1.139648)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 3.895507)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.099609)
select(7, 5.000000)
select(7, 2.899414)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 5.000000)
select(7, 5.000000)
select(7, 5.000000)
Got shutdown signal.
Stopping gracefully
Stopping rendezvous daemon
Processing rendezvous message
Stopping mDNS
Exiting
Deregistered service 2
Deregistered service 1
Deregistered service 0
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
Callback: Memory Free
Callback: Memory Free
Callback: Memory Free
Finished with status 0, result 0
Closing database

b)
ps auxw | grep “avahi”
dad 9863 0.0 0.2 2896 768 pts/0 R+ 10:31 0:00 grep avahi

sudo /usr/sbin/mt-daapd -d9 -f
Got general/web_root, convert to general/web_root (/usr/share/mt-daapd/admin-root)
Found existing section
Got general/port, convert to general/port (3689)
Found existing section
Got general/admin_pw, convert to general/admin_pw (mt-daapd)
Found existing section
Got general/db_type, convert to general/db_type (sqlite)
Found existing section
Got general/db_parms, convert to general/db_parms (/var/cache/mt-daapd)
Found existing section
Got general/mp3_dir, convert to general/mp3_dir (/home/dad/music)
Found existing section
Found 1 tokens in /home/dad/music
Token 1: /home/dad/music
Got general/servername, convert to general/servername (Firefly)
Found existing section
Got general/runas, convert to general/runas (nobody)
Found existing section
Got general/playlist, convert to general/playlist (/usr/etc/mt-daapd.playlist)
Found existing section
Got general/extensions, convert to general/extensions (.mp3,.m4a,.m4p)
Found existing section
Got general/ssc_codectypes, convert to general/ssc_codectypes (ogg,flac,alac)
Found existing section
Got general/ssc_prog, convert to general/ssc_prog (/usr/bin/mt-daapd-ssc.sh)
Found existing section
Expanding precomments to 2048
Expanding precomments to 4096
Got general/scan_type, convert to general/scan_type (2)
Found existing section
Got plugins/plugin_dir, convert to plugins/plugin_dir (/usr/share/mt-daapd/plugins)
Found existing section
Checking existence of /usr/share/mt-daapd/admin-root
Checking existence of /usr/share/mt-daapd/admin-root
Checking existence of /var/cache/mt-daapd
Checking existence of /var/cache/mt-daapd
Checking existence of /usr/share/mt-daapd/plugins
Checking existence of /usr/share/mt-daapd/plugins
Loading new config file.
Firefly Version svn-1586: Starting with debuglevel 9
Attempting to load plugin /usr/share/mt-daapd/plugins/out-daap.so
Loaded plugin /usr/share/mt-daapd/plugins/out-daap.so (daap/svn-1586)
New transcode codec list:
Attempting to load plugin /usr/share/mt-daapd/plugins/rsp.so
Loaded plugin /usr/share/mt-daapd/plugins/rsp.so (rsp/svn-1586)
New transcode codec list:
Attempting to load plugin /usr/share/mt-daapd/plugins/ssc-script.so
Loaded plugin /usr/share/mt-daapd/plugins/ssc-script.so (ssc-script/svn-1586)
New transcode codec list: ogg,flac,alac
Plugin loaded: ssc-script/svn-1586
Plugin loaded: rsp/svn-1586
Plugin loaded: daap/svn-1586
Starting rendezvous daemon
Starting signal handler
Opening database
Executing: select value from config where term=’version’
Results: 0
Initializing database
Executing: select count(*) FROM songs
Executing: select value from config where term=’rescan’
Full reload…
Executing: drop index idx_path
Query: drop index idx_path
Error: no such index: idx_path
Executing: drop index idx_songid
Query: drop index idx_songid
Error: no such index: idx_songid
Executing: drop index idx_playlistid
Query: drop index idx_playlistid
Error: no such index: idx_playlistid
Executing: drop table songs
Rows: 0
Executing: delete from playlists where not type=1 and not type=0
Rows: 0
Executing: drop table playlistitems
select(7, 0.000976)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/(null)/134932752
select(7, 0.022460)
Rows: 0
Executing: drop table config
select(7, 0.096679)
Rows: 0
Executing: vacuum
Rows: 0
Executing: create table songs (
id INTEGER PRIMARY KEY NOT NULL,
path VARCHAR(4096) NOT NULL,
fname VARCHAR(255) NOT NULL,
title VARCHAR(1024) DEFAULT NULL,
artist VARCHAR(1024) DEFAULT NULL,
album VARCHAR(1024) DEFAULT NULL,
genre VARCHAR(255) DEFAULT NULL,
comment VARCHAR(4096) DEFAULT NULL,
type VARCHAR(255) DEFAULT NULL,
composer VARCHAR(1024) DEFAULT NULL,
orchestra VARCHAR(1024) DEFAULT NULL,
conductor VARCHAR(1024) DEFAULT NULL,
grouping VARCHAR(1024) DEFAULT NULL,
url VARCHAR(1024) DEFAULT NULL,
bitrate INTEGER DEFAULT 0,
samplerate INTEGER DEFAULT 0,
song_length INTEGER DEFAULT 0,
file_size INTEGER DEFAULT 0,
year INTEGER DEFAULT 0,
track INTEGER DEFAULT 0,
total_tracks INTEGER DEFAULT 0,
disc INTEGER DEFAULT 0,
total_discs INTEGER DEFAULT 0,
bpm INTEGER DEFAULT 0,
compilation INTEGER DEFAULT 0,
rating INTEGER DEFAULT 0,
play_count INTEGER DEFAULT 0,
data_kind INTEGER DEFAULT 0,
item_kind INTEGER DEFAULT 0,
description INTEGER DEFAULT 0,
time_added INTEGER DEFAULT 0,
time_modified INTEGER DEFAULT 0,
time_played INTEGER DEFAULT 0,
db_timestamp INTEGER DEFAULT 0,
disabled INTEGER DEFAULT 0,
sample_count INTEGER DEFAULT 0,
force_update INTEGER DEFAULT 0,
codectype VARCHAR(5) DEFAULT NULL,
idx INTEGER NOT NULL,
has_video INTEGER DEFAULT 0,
contentrating INTEGER DEFAULT 0,
bits_per_sample INTEGER DEFAULT 0,
album_artist VARCHAR(1024)
);
create table playlistitems (
id INTEGER PRIMARY KEY NOT NULL,
playlistid INTEGER NOT NULL,
songid INTEGER NOT NULL
);
create table config (
term VARCHAR(255) NOT NULL,
subterm VARCHAR(255) DEFAULT NULL,
value VARCHAR(1024) NOT NULL
);
insert into config values (‘version’,”,’13’);

mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/(null)/134932752
select(7, 0.099609)
select(7, 0.149414)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/(null)/134932752
select(7, 0.099609)
Rows: 1
Executing: create table playlists (
id INTEGER PRIMARY KEY NOT NULL,
title VARCHAR(255) NOT NULL,
type INTEGER NOT NULL,
items INTEGER NOT NULL,
query VARCHAR(1024),
db_timestamp INTEGER NOT NULL,
path VARCHAR(4096),
idx INTEGER NOT NULL
);
insert into playlists values (1,’Library’,1,0,’1′,0,”,0);

Query: create table playlists (
id INTEGER PRIMARY KEY NOT NULL,
title VARCHAR(255) NOT NULL,
type INTEGER NOT NULL,
items INTEGER NOT NULL,
query VARCHAR(1024),
db_timestamp INTEGER NOT NULL,
path VARCHAR(4096),
idx INTEGER NOT NULL
);
insert into playlists values (1,’Library’,1,0,’1′,0,”,0);

Error: table playlists already exists
Starting web server from /usr/share/mt-daapd/admin-root on port 3689
Listening on port 3689
Starting server thread
Registering rendezvous names
Processing rendezvous message
Registering Firefly._http._tcp (3689)
Registered service 0, name ‘Firefly’, type ‘_http._tcp’, domain ‘local.’, port 3689
select(7, 0.093750)
Checking ssc-script/svn-1586
Checking rsp/svn-1586
Registering _rsp._tcp
Processing rendezvous message
Registering Firefly._rsp._tcp (3689)
Registered service 1, name ‘Firefly’, type ‘_rsp._tcp’, domain ‘local.’, port 3689
select(7, 0.092773)
Checking daap/svn-1586
Registering _daap._tcp
Processing rendezvous message
Registering Firefly._daap._tcp (3689)
Registered service 2, name ‘Firefly’, type ‘_daap._tcp’, domain ‘local.’, port 3689
select(7, 0.091796)
Executing: select count(*) FROM songs
Serving 0 songs. Startup complete in 1 seconds
select(7, 0.149414)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.000976)
select(7, 0.096679)
select(7, 0.145507)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 0.146484)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 0.146484)
Callback: Name Registered
Callback: Name Registered
Callback: Name Registered
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.000976)
select(7, 0.096679)
select(7, 0.139648)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 0.652343)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 1.136718)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 3.896484)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.099609)
select(7, 5.000000)
select(7, 2.899414)
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
select(7, 0.100585)
select(7, 5.000000)
Got shutdown signal.
Stopping gracefully
Stopping rendezvous daemon
Processing rendezvous message
Stopping mDNS
Exiting
Deregistered service 2
Deregistered service 1
Deregistered service 0
mDNSPlatformSendUDP got error 1 (Operation not permitted) sending packet to 0x1.af8780809acep-895 on interface 0x0.00002080ab16p-1022/???/134932752
Callback: Memory Free
Callback: Memory Free
Callback: Memory Free
Finished with status 0, result 0
Closing database
Done!

I noticed that there are far more dependencies for the standard feisty version of mt-daapd (1376) than the nightly build. Trying to install the 1376 version shows the following additional dependencies:
libavahi-compat-howl0
libavcodec0d
libavformat0d
libdc1394-13
libtagc0

As an aside I also noticed that when going into http://localhost:3689 that it said Bonjour was not running, is this correct? And also that no songs had been scanned.

Regards