Reply To: Setting up multiple instances of Firefly on Linkstation NAS

#5931
risimmonsuk
Participant

I still can’t get multiple instances to work. The second instance appears to die somewhere inside the rendezvous initialisation and never return. The second instance I start gets this far…


2006-08-21 19:03:50 (00004000): Starting with debuglevel 9
2006-08-21 19:03:50 (00004000): Attempting to load plugin /usr/local/share/mt-daapd/plugins/rsp.so
2006-08-21 19:03:50 (00004000): Loaded plugin /usr/local/share/mt-daapd/plugins/rsp.so (rsp/svn-1348)
2006-08-21 19:03:50 (00004000): New transcode codec list:
2006-08-21 19:03:50 (00004000): Attempting to load plugin /usr/local/share/mt-daapd/plugins/ssc-script.so
2006-08-21 19:03:50 (00004000): Loaded plugin /usr/local/share/mt-daapd/plugins/ssc-script.so (ssc-script/svn-1348)
2006-08-21 19:03:50 (00004000): New transcode codec list: ogg,flac,alac
2006-08-21 19:03:50 (00004000): Starting rendezvous daemon
2006-08-21 19:03:50 (00004000): Starting signal handler
2006-08-21 19:03:50 (00004000): get_ifi_info
2006-08-21 19:03:50 (00004000): intf name=lo AF=2, flags=00000002
2006-08-21 19:03:50 (00004000): intf name=eth0 AF=2, flags=00000002
2006-08-21 19:03:50 (00004000): SetupInterfaceList
2006-08-21 19:03:50 (00004000): bind: Address already in use
2006-08-21 19:03:50 (00004000): SetupOneInterface: eth0 192.160.0.2 failed to register 125
2006-08-21 19:03:50 (00004000): bind: Address already in use
2006-08-21 19:03:50 (00004000): SetupOneInterface: lo 127.0.0.1 failed to register 125
2006-08-21 19:03:50 (00004000): select(1, 0.000976)
2006-08-21 19:03:50 (00004000): Opening database
2006-08-21 19:03:50 (00004002): Signal handler started
2006-08-21 19:03:50 (00004000): mDNS_Execute
2006-08-21 19:03:50 (00004000): select(1, 1966079.964843)
2006-08-21 19:03:50 (00004000): Executing: select value from config where term='version'
2006-08-21 19:03:50 (00004000): Results: 0
2006-08-21 19:03:50 (00004000): Initializing database
2006-08-21 19:03:50 (00004000): Executing: select count(*) FROM songs
2006-08-21 19:03:50 (00004000): Executing: select value from config where term='rescan'
2006-08-21 19:03:50 (00004000): Executing: vacuum
2006-08-21 19:03:51 (00004000): Rows: 0
2006-08-21 19:03:51 (00004000): Executing: create index idx_path on songs(path,idx)
2006-08-21 19:03:51 (00004000): Query: create index idx_path on songs(path,idx)
2006-08-21 19:03:51 (00004000): Error: index idx_path already exists
2006-08-21 19:03:51 (00004000): Executing: create index idx_songid on playlistitems(songid)
2006-08-21 19:03:51 (00004000): Query: create index idx_songid on playlistitems(songid)
2006-08-21 19:03:51 (00004000): Error: index idx_songid already exists
2006-08-21 19:03:51 (00004000): Executing: create index idx_playlistid on playlistitems(playlistid,songid)
2006-08-21 19:03:51 (00004000): Query: create index idx_playlistid on playlistitems(playlistid,songid)
2006-08-21 19:03:51 (00004000): Error: index idx_playlistid already exists
2006-08-21 19:03:51 (00004000): Starting web server from /usr/local/share/mt-daapd/admin-root on port 3691
2006-08-21 19:03:51 (00004000): Listening on port 3691
2006-08-21 19:03:51 (00004000): Starting server thread
2006-08-21 19:03:51 (00004000): Registering rendezvous names

And then that’s it. Nothing more (unless I connect to the web interface, which gives additional messages, but never anything from the rendezvous thread).

If I start the same instance as the only instance I get the following log;


2006-08-21 19:29:07 (00004000): Starting with debuglevel 9
2006-08-21 19:29:07 (00004000): Attempting to load plugin /usr/local/share/mt-daapd/plugins/rsp.so
2006-08-21 19:29:07 (00004000): Loaded plugin /usr/local/share/mt-daapd/plugins/rsp.so (rsp/svn-1348)
2006-08-21 19:29:07 (00004000): New transcode codec list:
2006-08-21 19:29:07 (00004000): Attempting to load plugin /usr/local/share/mt-daapd/plugins/ssc-script.so
2006-08-21 19:29:07 (00004000): Loaded plugin /usr/local/share/mt-daapd/plugins/ssc-script.so (ssc-script/svn-1348)
2006-08-21 19:29:07 (00004000): New transcode codec list: ogg,flac,alac
2006-08-21 19:29:07 (00004000): Starting rendezvous daemon
2006-08-21 19:29:07 (00004000): Starting signal handler
2006-08-21 19:29:07 (00004000): get_ifi_info
2006-08-21 19:29:07 (00004000): intf name=lo AF=2, flags=00000002
2006-08-21 19:29:07 (00004000): intf name=eth0 AF=2, flags=00000002
2006-08-21 19:29:07 (00004000): SetupInterfaceList
2006-08-21 19:29:07 (00004000): mDNS_RegisterInterface: InterfaceID 1000AD78 192.160.0.2 not represented in list; marking active and retriggering queries
2006-08-21 19:29:07 (00004000): Adding 1000AD88 NAS250GB.local. (Addr) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000B034 2.0.160.192.in-addr.arpa. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Not creating HINFO record: platform support layer provided no information
2006-08-21 19:29:07 (00004000): SetupOneInterface: eth0 192.160.0.2 Registered
2006-08-21 19:29:07 (00004000): select(7, 0.000976)
2006-08-21 19:29:07 (00004000): Opening database
2006-08-21 19:29:07 (00004000): Executing: select value from config where term='version'
2006-08-21 19:29:07 (00004000): Results: 0
2006-08-21 19:29:07 (00004000): Initializing database
2006-08-21 19:29:07 (00004000): Executing: select count(*) FROM songs
2006-08-21 19:29:07 (00004000): Executing: select value from config where term='rescan'
2006-08-21 19:29:07 (00004000): Executing: vacuum
2006-08-21 19:29:07 (00004000): mDNS_Execute
2006-08-21 19:29:07 (00004000): select(7, 0.063476)
2006-08-21 19:29:07 (00004002): Signal handler started
2006-08-21 19:29:07 (00004000): mDNS_Execute
2006-08-21 19:29:07 (00004000): SendQueries: Put Question NAS250GB.local. (Addr) probecount 2
2006-08-21 19:29:07 (00004000): SendQueries: Sending 1 Question 0 Answers 1 Update on 1000AD78
2006-08-21 19:29:07 (00004000): select(7, 0.094726)
2006-08-21 19:29:07 (00004000): SocketDataReady got a packet from 192.160.0.2 to 224.0.0.251 on interface 192.160.0.2/eth0/2
2006-08-21 19:29:07 (00004000): Received Query from 192.160.0.2 :5353 to 224.0.0.251 :5353 on 0x1000AD78 with 1 Question, 0 Answers, 1 Authority, 0 Additionals
2006-08-21 19:29:07 (00004000): select(7, 0.089843)
2006-08-21 19:29:07 (00004000): mDNS_Execute
2006-08-21 19:29:07 (00004000): select(7, 0.149414)
2006-08-21 19:29:07 (00004000): mDNS_Execute
2006-08-21 19:29:07 (00004000): SendQueries: Put Question NAS250GB.local. (Addr) probecount 1
2006-08-21 19:29:07 (00004000): SendQueries: Sending 1 Question 0 Answers 1 Update on 1000AD78
2006-08-21 19:29:07 (00004000): select(7, 0.098632)
2006-08-21 19:29:07 (00004000): SocketDataReady got a packet from 192.160.0.2 to 224.0.0.251 on interface 192.160.0.2/eth0/2
2006-08-21 19:29:07 (00004000): Received Query from 192.160.0.2 :5353 to 224.0.0.251 :5353 on 0x1000AD78 with 1 Question, 0 Answers, 1 Authority, 0 Additionals
2006-08-21 19:29:07 (00004000): select(7, 0.097656)
2006-08-21 19:29:07 (00004000): Rows: 0
2006-08-21 19:29:07 (00004000): Executing: create index idx_path on songs(path,idx)
2006-08-21 19:29:07 (00004000): Query: create index idx_path on songs(path,idx)
2006-08-21 19:29:07 (00004000): Error: index idx_path already exists
2006-08-21 19:29:07 (00004000): Executing: create index idx_songid on playlistitems(songid)
2006-08-21 19:29:07 (00004000): Query: create index idx_songid on playlistitems(songid)
2006-08-21 19:29:07 (00004000): Error: index idx_songid already exists
2006-08-21 19:29:07 (00004000): Executing: create index idx_playlistid on playlistitems(playlistid,songid)
2006-08-21 19:29:07 (00004000): Query: create index idx_playlistid on playlistitems(playlistid,songid)
2006-08-21 19:29:07 (00004000): Error: index idx_playlistid already exists
2006-08-21 19:29:07 (00004000): Starting web server from /usr/local/share/mt-daapd/admin-root on port 3691
2006-08-21 19:29:07 (00004000): Listening on port 3691
2006-08-21 19:29:07 (00004000): Starting server thread
2006-08-21 19:29:07 (00004000): Registering rendezvous names
2006-08-21 19:29:07 (00004000): Processing rendezvous message
2006-08-21 19:29:07 (00004000): Registering Comedy._daap._tcp (3691)
2006-08-21 19:29:07 (00004000): Adding 1000CD70 Comedy._daap._tcp.local. (SRV) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000D01C Comedy._daap._tcp.local. (TXT) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000C818 _services._dns-sd._udp.local. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000CAC4 _daap._tcp.local. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Registered service 0, name 'Comedy', type '_daap._tcp', domain 'local.', port 3691
2006-08-21 19:29:07 (00004000): select(7, 0.018554)
2006-08-21 19:29:07 (00004000): Processing rendezvous message
2006-08-21 19:29:07 (00004000): Registering Comedy._http._tcp (3691)
2006-08-21 19:29:07 (00004000): Adding 1000D948 Comedy._http._tcp.local. (SRV) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000DBF4 Comedy._http._tcp.local. (TXT) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000D3F0 _services._dns-sd._udp.local. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000D69C _http._tcp.local. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Registered service 1, name 'Comedy', type '_http._tcp', domain 'local.', port 3691
2006-08-21 19:29:07 (00004000): select(7, 0.013671)
2006-08-21 19:29:07 (00004000): Checking ssc-script/svn-1348
2006-08-21 19:29:07 (00004000): Checking rsp/svn-1348
2006-08-21 19:29:07 (00004000): Registering _rsp._tcp
2006-08-21 19:29:07 (00004000): Processing rendezvous message
2006-08-21 19:29:07 (00004000): Registering Comedy._rsp._tcp (3691)
2006-08-21 19:29:07 (00004000): Adding 1000E520 Comedy._rsp._tcp.local. (SRV) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000E7CC Comedy._rsp._tcp.local. (TXT) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000DFC8 _services._dns-sd._udp.local. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Adding 1000E274 _rsp._tcp.local. (PTR) to active record list
2006-08-21 19:29:07 (00004000): Registered service 2, name 'Comedy', type '_rsp._tcp', domain 'local.', port 3691
2006-08-21 19:29:07 (00004000): select(7, 0.004882)
2006-08-21 19:29:07 (00004000): Executing: select count(*) FROM songs
2006-08-21 19:29:07 (00004000): mDNS_Execute
2006-08-21 19:29:07 (00004000): select(7, 0.150390)
2006-08-21 19:29:07 (00004000): Serving 113 songs. Startup complete in 0 seconds
2006-08-21 19:29:07 (00004000): Rescanning database

etc.

Can anybody help point me at further ways I can debug this – should I add more debug to the code? Anybody got any ideas?
[/quote]