firefly and avahi

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1110
    mas
    Participant

    Currently using firefly with avahi built in and it works. Firefly is discovered by my soundbridges.

    But I also notice a lot of warnings in the logs, this is the full errorlog on a startup ofthe relevant daemons:

    Feb 17 11:31:08 schnecke avahi-daemon[20638]: Server startup complete. Host name is schnecke.local. Local service cookie is 1
    647818324.
    Feb 17 11:31:08 schnecke avahi-daemon[20638]: Static host name schnecke.local: avahi_server_add_address failure: Local name c
    ollision
    Feb 17 11:31:08 schnecke avahi-daemon[20638]: server.c: Packet too short or invalid while reading question key. (Maybe an UTF
    8 problem?)
    Feb 17 11:31:08 schnecke avahi-daemon[20638]: Invalid query packet.
    Feb 17 11:31:09 schnecke last message repeated 2 times
    Feb 17 11:31:09 schnecke avahi-daemon[20638]: server.c: Packet too short or invalid while reading question key. (Maybe an UTF
    8 problem?)
    Feb 17 11:31:09 schnecke avahi-daemon[20638]: Service “Remote Terminal on schnecke” (/services/ssh.service) successfully esta
    blished.
    Feb 17 11:31:09 schnecke avahi-daemon[20638]: Service “Remote Music from Mabuse” (/services/rspext.service) successfully esta
    blished.
    Feb 17 11:31:09 schnecke avahi-daemon[20638]: Static host name “router.local” successfully established.
    Feb 17 11:31:09 schnecke avahi-daemon[20638]: server.c: Packet too short or invalid while reading question key. (Maybe an UTF
    8 problem?)
    Feb 17 11:31:12 schnecke last message repeated 10 times
    Feb 17 11:31:18 schnecke mt-daapd[20646]: Firefly Version svn-1498: Starting with debuglevel 2
    Feb 17 11:31:18 schnecke mt-daapd[20646]: Starting rendezvous daemon
    Feb 17 11:31:18 schnecke mt-daapd[20646]: Client running
    Feb 17 11:31:18 schnecke mt-daapd[20646]: Starting signal handler
    Feb 17 11:31:18 schnecke mt-daapd[20649]: Initializing database
    Feb 17 11:31:22 schnecke mt-daapd[20649]: Starting web server from /usr/share/mt-daapd/admin-root on port 3689
    Feb 17 11:31:22 schnecke mt-daapd[20649]: Registering rendezvous names
    Feb 17 11:31:22 schnecke avahi-daemon[20638]: server.c: Packet too short or invalid while reading question key. (Maybe an UTF
    8 problem?)
    Feb 17 11:31:22 schnecke mt-daapd[20649]: Serving 3143 songs. Startup complete in 4 seconds
    Feb 17 11:31:23 schnecke avahi-daemon[20638]: Invalid query packet.
    Feb 17 11:31:24 schnecke last message repeated 2 times
    Feb 17 11:31:24 schnecke avahi-daemon[20638]: server.c: Packet too short or invalid while reading question key. (Maybe an UTF
    8 problem?)
    Feb 17 11:31:27 schnecke last message repeated 4 times
    Feb 17 11:36:10 schnecke avahi-daemon[20638]: server.c: Packet too short or invalid while reading question key. (Maybe an UTF
    8 problem?)
    Feb 17 11:39:31 schnecke avahi-daemon[20638]: Invalid legacy unicast query packet.
    Feb 17 11:39:34 schnecke last message repeated 2 times



    What are all these UTF-8 errors?

    Also an mdsn-scan gives only this:
    + SoundBridge._telnet._tcp.local
    + SoundBridge._roku-rcp._tcp.local
    + SoundBridge._http._tcp.local
    + Musicplayer Remote._http._tcp.local
    + Musicplayer Remote._telnet._tcp.local
    + Musicplayer Remote._roku-rcp._tcp.local

    So basically only the Rokus are found. Why doesnt it see the services on the local machine, aka the mt-daapd server and also the 2 services I told avahi to announce in /etc/avahi/services (ssh and a remote rsp server)?

    Any ideas? is that some interoperability issue with firefly or an avahi bug?

    #9209
    rpedde
    Participant

    @mas wrote:

    So basically only the Rokus are found. Why doesnt it see the services on the local machine, aka the mt-daapd server and also the 2 services I told avahi to announce in /etc/avahi/services (ssh and a remote rsp server)?

    Any ideas? is that some interoperability issue with firefly or an avahi bug?

    You have a fundamental avahi problem here, even before you get to firefly.

    Can you see the services from a remote machine? Not sure what’s not right here — the advertising or name queries or what. Might be a decent data point just to see what mdns services appear on a remote machine.

    — Ron

    #9210
    mas
    Participant

    Hard to say but something must get out. The Roku’s DO find the firefly so there must be a packet coming out. I just cant see it on the NSLU and theres these tons of error messages that puzzle me and which fill up a lot of the logs.

    Problem:
    1. Its a big hassle trying to see such services from an external machine, if your only external is windoze. You know a good browser for mdns? The only one i found was jmdns (java implementation).

    2. I can see the firefly and also a manually set ssh announcement with jmdsn (which both aint visible locally on the NSLU. Hrm.)! A 2nd manual rsp announcement I cannot say because the jmdns doesnt know RSP service and never shows it. The Rokus see only the local service, not the remote one though. And my log files keep filling with these error messages.

    #9211
    rpedde
    Participant

    @mas wrote:

    Hard to say but something must get out. The Roku’s DO find the firefly so there must be a packet coming out. I just cant see it on the NSLU and theres these tons of error messages that puzzle me and which fill up a lot of the logs.

    Turn up that debug a bit. Are you sure it’s using avahi?

    1. Its a big hassle trying to see such services from an external machine, if your only external is windoze. You know a good browser for mdns? The only one i found was jmdns (java implementation).

    Yes! I don’t have a solution for that. Might be worth knocking out a console based browser for windows at least for diagnostics though. Wouldn’t take but a couple minutes — the source is included in the sdk.

    2. I can see the firefly and also a manually set ssh announcement with jmdsn (which both aint visible locally on the NSLU. Hrm.)! A 2nd manual rsp announcement I cannot say because the jmdns doesnt know RSP service and never shows it. The Rokus see only the local service, not the remote one though. And my log files keep filling with these error messages.

    Double-check that it really is running avahi. Start with -d9 and see if you get messages about avahi thread, or the verbose apple mdns messages..

    #9212
    mas
    Participant

    Well I compiled it with –enable-avahi and WITHOUT any –enable-mdns. But let me check anyway.

    #9213
    mas
    Participant

    This is the log when starting with -d 9:

    2007-02-22 20:26:04 (00004000): Firefly Version svn-1498: Starting with debuglevel 9
    2007-02-22 20:26:04 (00004000): Attempting to load plugin /usr/share/mt-daapd/plugins/rsp.so
    2007-02-22 20:26:04 (00004000): Loaded plugin /usr/share/mt-daapd/plugins/rsp.so (rsp/svn-1498)
    2007-02-22 20:26:04 (00004000): New transcode codec list:
    2007-02-22 20:26:04 (00004000): Attempting to load plugin /usr/share/mt-daapd/plugins/out-daap.so
    2007-02-22 20:26:04 (00004000): Loaded plugin /usr/share/mt-daapd/plugins/out-daap.so (daap/svn-1498)
    2007-02-22 20:26:04 (00004000): New transcode codec list:
    2007-02-22 20:26:04 (00004000): Attempting to load plugin /usr/share/mt-daapd/plugins/ssc-script.so
    2007-02-22 20:26:04 (00004000): Loaded plugin /usr/share/mt-daapd/plugins/ssc-script.so (ssc-script/svn-1498)
    2007-02-22 20:26:04 (00004000): New transcode codec list: ogg,flac,mpc,mp4a,wma,.m4a
    2007-02-22 20:26:04 (00004000): Starting rendezvous daemon
    2007-02-22 20:26:04 (00004000): Initializing avahi
    2007-02-22 20:26:04 (00004000): Client running
    2007-02-22 20:26:04 (00004000): Creting service group
    2007-02-22 20:26:04 (00004000): No entries yet… skipping service create
    2007-02-22 20:26:04 (00004000): Starting avahi polling thread
    2007-02-22 20:26:04 (00004000): Starting signal handler
    2007-02-22 20:26:04 (00004000): Pid: 2092
    2007-02-22 20:26:04 (00004000): Opening database
    2007-02-22 20:26:04 (00004000): Executing: select value from config where term=’version’
    2007-02-22 20:26:04 (00004000): Results: 0
    2007-02-22 20:26:04 (00004000): Initializing database
    2007-02-22 20:26:04 (00004000): Executing: select count(*) FROM songs
    2007-02-22 20:26:04 (00004000): Executing: select value from config where term=’rescan’
    2007-02-22 20:26:04 (00004000): Executing: vacuum
    2007-02-22 20:26:08 (00004000): Rows: 0
    2007-02-22 20:26:08 (00004000): Executing: create index idx_path on songs(path,idx)
    2007-02-22 20:26:08 (00004000): Query: create index idx_path on songs(path,idx)
    2007-02-22 20:26:08 (00004000): Error: index idx_path already exists
    2007-02-22 20:26:08 (00004000): Executing: create index idx_songid on playlistitems(songid)
    2007-02-22 20:26:08 (00004000): Query: create index idx_songid on playlistitems(songid)
    2007-02-22 20:26:08 (00004000): Error: index idx_songid already exists
    2007-02-22 20:26:08 (00004000): Executing: create index idx_playlistid on playlistitems(playlistid,songid)
    2007-02-22 20:26:08 (00004000): Query: create index idx_playlistid on playlistitems(playlistid,songid)
    2007-02-22 20:26:08 (00004000): Error: index idx_playlistid already exists
    2007-02-22 20:26:08 (00004000): Starting web server from /usr/share/mt-daapd/admin-root on port 3689
    2007-02-22 20:26:08 (00004000): Listening on port 3689
    2007-02-22 20:26:08 (00004000): Starting server thread
    2007-02-22 20:26:08 (00004000): Registering rendezvous names
    2007-02-22 20:26:08 (00004000): Adding Music Server svn-1498 on schnecke/_http._tcp
    2007-02-22 20:26:08 (00004000): Creating service group (again?)
    2007-02-22 20:26:08 (00004000): Creting service group
    2007-02-22 20:26:08 (00004000): Waiting on something…
    2007-02-22 20:26:08 (00004000): Done waiting.
    2007-02-22 20:26:08 (00004000): Re-registering Music Server svn-1498 on schnecke/_http._tcp
    2007-02-22 20:26:08 (00004000): Found key of size 9
    2007-02-22 20:26:08 (00004000): Added key txtvers=1
    2007-02-22 20:26:08 (00004000): Added key Database ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine Name=Mabuse Music Server svn-1498 on schnecke
    2007-02-22 20:26:08 (00004000): Added key mtd-version=svn-1498
    2007-02-22 20:26:08 (00004000): Added key iTSh Version=131073
    2007-02-22 20:26:08 (00004000): Added key Version=196610
    2007-02-22 20:26:08 (00004000): Added key Password=true
    2007-02-22 20:26:08 (00004000): Added key ffid=4fa5d764
    2007-02-22 20:26:08 (00004000): Checking ssc-script/svn-1498
    2007-02-22 20:26:08 (00004000): Checking daap/svn-1498
    2007-02-22 20:26:08 (00004000): Registering _daap._tcp
    2007-02-22 20:26:08 (00004000): Adding Music Server svn-1498 on schnecke/_daap._tcp
    2007-02-22 20:26:08 (00004000): Resetting mdns group
    2007-02-22 20:26:08 (00004000): Creating service group (again?)
    2007-02-22 20:26:08 (00004000): Creting service group
    2007-02-22 20:26:08 (00004000): Waiting on something…
    2007-02-22 20:26:08 (00004000): Done waiting.
    2007-02-22 20:26:08 (00004000): Re-registering Music Server svn-1498 on schnecke/_daap._tcp
    2007-02-22 20:26:08 (00004000): Found key of size 9
    2007-02-22 20:26:08 (00004000): Added key txtvers=1
    2007-02-22 20:26:08 (00004000): Added key Database ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine Name=Music Server svn-1498 on schnecke
    2007-02-22 20:26:08 (00004000): Added key mtd-version=svn-1498
    2007-02-22 20:26:08 (00004000): Added key iTSh Version=131073
    2007-02-22 20:26:08 (00004000): Added key Version=196610
    2007-02-22 20:26:08 (00004000): Added key Password=true
    2007-02-22 20:26:08 (00004000): Added key ffid=4fa5d764
    2007-02-22 20:26:08 (00004000): Re-registering Music Server svn-1498 on schnecke/_http._tcp
    2007-02-22 20:26:08 (00004000): Found key of size 9
    2007-02-22 20:26:08 (00004000): Added key txtvers=1
    2007-02-22 20:26:08 (00004000): Added key Database ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine Name=Music Server svn-1498 on schnecke
    2007-02-22 20:26:08 (00004000): Added key mtd-version=svn-1498
    2007-02-22 20:26:08 (00004000): Added key iTSh Version=131073
    2007-02-22 20:26:08 (00004000): Added key Version=196610
    2007-02-22 20:26:08 (00004000): Added key Password=true
    2007-02-22 20:26:08 (00004000): Added key ffid=4fa5d764
    2007-02-22 20:26:08 (00004000): Checking rsp/svn-1498
    2007-02-22 20:26:08 (00004000): Registering _rsp._tcp
    2007-02-22 20:26:08 (00004000): Adding Music Server svn-1498 on schnecke/_rsp._tcp
    2007-02-22 20:26:08 (00004000): Resetting mdns group
    2007-02-22 20:26:08 (00004000): Creating service group (again?)
    2007-02-22 20:26:08 (00004000): Creting service group
    2007-02-22 20:26:08 (00004000): Waiting on something…
    2007-02-22 20:26:08 (00004000): Done waiting.
    2007-02-22 20:26:08 (00004000): Re-registering Music Server svn-1498 on schnecke/_rsp._tcp
    2007-02-22 20:26:08 (00004000): Found key of size 9
    2007-02-22 20:26:08 (00004000): Added key txtvers=1
    2007-02-22 20:26:08 (00004000): Added key Database ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine Name=Music Server svn-1498 on schnecke
    2007-02-22 20:26:08 (00004000): Added key mtd-version=svn-1498
    2007-02-22 20:26:08 (00004000): Added key iTSh Version=131073
    2007-02-22 20:26:08 (00004000): Added key Version=196610
    2007-02-22 20:26:08 (00004000): Added key Password=true
    2007-02-22 20:26:08 (00004000): Added key ffid=4fa5d764
    2007-02-22 20:26:08 (00004000): Re-registering Music Server svn-1498 on schnecke/_daap._tcp
    2007-02-22 20:26:08 (00004000): Found key of size 9
    2007-02-22 20:26:08 (00004000): Added key txtvers=1
    2007-02-22 20:26:08 (00004000): Added key Database ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine Name=Music Server svn-1498 on schnecke
    2007-02-22 20:26:08 (00004000): Added key mtd-version=svn-1498
    2007-02-22 20:26:08 (00004000): Added key iTSh Version=131073
    2007-02-22 20:26:08 (00004000): Added key Version=196610
    2007-02-22 20:26:08 (00004000): Added key Password=true
    2007-02-22 20:26:08 (00004000): Added key ffid=4fa5d764
    2007-02-22 20:26:08 (00004000): Re-registering Music Server svn-1498 on schnecke/_http._tcp
    2007-02-22 20:26:08 (00004000): Found key of size 9
    2007-02-22 20:26:08 (00004000): Added key txtvers=1
    2007-02-22 20:26:08 (00004000): Added key Database ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine ID=BC2C8AD5
    2007-02-22 20:26:08 (00004000): Added key Machine Name=Music Server svn-1498 on schnecke

    Does that all sound ok? I can only see one reference to avahi. No reference to mdns though I dont know if these lengthy announces are now via avahi or mdns.

    #9214
    rpedde
    Participant

    @mas wrote:

    Well I compiled it with –enable-avahi and WITHOUT any –enable-mdns. But let me check anyway.

    Yup, that’s avahi. Lemme muck around with the bonjour sdk and see if I can pop together a simple console browser.

    — Ron

    #9215
    mas
    Participant

    Well as I said, using jmdns I was able to see the firefly on my Win XP remote machine. That jmdns sucks in several ways but it did suffice to show that indeed somehow it got announced.

    The question is just

    a) Why is it not visible on the local machine via mdns-scan or avahi_browse -art?

    b) Whats these roughly 100 errors in the logs daily (see above)?

    #9216
    rpedde
    Participant

    @mas wrote:

    a) Why is it not visible on the local machine via mdns-scan or avahi_browse -art?

    Someone had said that was a “feature”. That it suppressed services running as your own user. Not sure what that’sa bout, but there you go.

    b) Whats these roughly 100 errors in the logs daily (see above)?

    You got me on that one.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Nightlies Feedback’ is closed to new topics and replies.