You are here: Home » Reply » Reply To: mt-daapd on Ubuntu and iTunes on Vista does not connect

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

#11177
mephisto
Participant

Hi Ron,

Sorry about that, I should have noticed before I posted. I had been installing and uninstalling a number of times before I posted, I guess I lost where I was up to. Doh!.

Anyhow I’ve now installed the latest feisty from the nightlies and things are still not working. I’m getting the following messages, the level 9 diagnostics go on forever and I have to ctrl-c out of them, is that correct?
Should there be anything particular running on the ‘receiving’ box (feisty) to pick up the database?

ls -la /var/cache/mt-daapd gives
total 16
drwxrwxr-x 2 nobody root 21 2007-07-23 10:16 .
drwxr-xr-x 17 root root 4096 2007-07-22 20:13 ..
-rw-r–r– 1 nobody nogroup 9216 2007-07-23 10:16 songs.db

ps auxw | grep “avahi” gives
avahi 6828 0.0 0.4 2664 1368 ? Ss 10:08 0:00 avahi-daemon: running [testbox.local]
avahi 6829 0.0 0.1 2664 460 ? Ss 10:08 0:00 avahi-daemon: chroot helper

sudo /etc/init.d/mt-daapd start
Starting mt-daapd: mt-daapd.

ps auxw | grep “mt-daapd”
nobody 7279 0.0 0.3 3548 1100 pts/0 S 10:25 0:00 /usr/sbin/mt-daapd
nobody 7280 0.0 0.4 11740 1472 pts/0 Sl 10:25 0:00 /usr/sbin/mt-daapd

sudo /usr/sbin/mt-daapd -d9 -f gives
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
select(7, 0.000976)
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
select(7, 0.081054)
Rows: 0
Executing: delete from playlists where not type=1 and not type=0
Rows: 0
Executing: drop table playlistitems
Rows: 0
Executing: drop table config
select(7, 0.099609)
select(7, 0.099609)
Local Hostname testbox.local already in use; will try testbox-2.local instead
select(7, 0.098632)
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’);

select(7, 0.083984)
select(7, 0.002929)
select(7, 0.099609)
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.019531)
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.018554)
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.017578)
Executing: select count(*) FROM songs
Serving 0 songs. Startup complete in 0 seconds
select(7, 0.138671)
select(7, 0.001953)
select(7, 0.100585)
select(7, 0.100585)
select(7, 0.146484)
select(7, 0.100585)
select(7, 0.100585)
select(7, 0.079101)
select(7, 0.066406)
select(7, 0.000976)
select(7, 0.100585)
select(7, 0.100585)
select(7, 0.146484)
select(7, 0.089843)
Callback: Name Registered
Callback: Name Registered
Callback: Name Registered
select(7, 0.000976)
select(7, 0.099609)
select(7, 0.000976)
(I’ve cut it off here as it goes on for ever).