[cups.general] Problems registering printers with Avahi

Mario Aeby mario.aeby at dkf.unibe.ch
Mon May 3 02:44:45 PDT 2010


Dear list

cups 1.3.8-1+lenny7
avahi-daemon 0.6.23-3lenny1

I have troubles registering some of our cups printers with the local avahi daemon:

- --
W [30/Apr/2010:15:29:22 +0200] DNS-SD registration of "PPD-Test" failed with -65537
W [30/Apr/2010:15:29:22 +0200] DNS-SD registration of "NRGMPC4500A3" failed with -65537
W [30/Apr/2010:15:29:22 +0200] DNS-SD registration of "NRGMPC4500COLOR" failed with -65537
W [30/Apr/2010:15:29:22 +0200] DNS-SD registration of "PPD-Test" failed with -65537
- --

According to the source code, error -65537 means:

- --
kDNSServiceErr_Unknown             = -65537,
- --

When looking at it with debug2-level:

- --
I [30/Apr/2010:16:02:15 +0200] Resuming new connection processing...
d [30/Apr/2010:16:02:15 +0200] cupsdResumeListening: Setting input bits...
d [30/Apr/2010:16:02:15 +0200] cupsdAddSelect: fd=13, read_cb=0x805c760, write_cb=(nil), data=0x80b2c00
d [30/Apr/2010:16:02:15 +0200] cupsdAddSelect: fd=14, read_cb=0x805c760, write_cb=(nil), data=0x80b7188
d [30/Apr/2010:16:02:15 +0200] cupsdAddSelect: fd=15, read_cb=0x805c760, write_cb=(nil), data=0x80b29a8
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(NRGMPC4500) update
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(NRGMPC4500A3) new
d [30/Apr/2010:16:02:15 +0200] dnssdDeregisterPrinter(NRGMPC4500A3)
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(NRGMPC4500A3) type is "_ipp._tcp,_cups"
W [30/Apr/2010:16:02:15 +0200] DNS-SD registration of "NRGMPC4500A3" failed with -65537
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(NRGMPC4500COLOR) new
d [30/Apr/2010:16:02:15 +0200] dnssdDeregisterPrinter(NRGMPC4500COLOR)
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(NRGMPC4500COLOR) type is "_ipp._tcp,_cups"
W [30/Apr/2010:16:02:15 +0200] DNS-SD registration of "NRGMPC4500COLOR" failed with -65537
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(NRGMPC4500PS) update
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(PPD-Test) new
d [30/Apr/2010:16:02:15 +0200] dnssdDeregisterPrinter(PPD-Test)
d [30/Apr/2010:16:02:15 +0200] dnssdRegisterPrinter(PPD-Test) type is "_ipp._tcp,_cups"
W [30/Apr/2010:16:02:15 +0200] DNS-SD registration of "PPD-Test" failed with -65537
- --

As you can see, two of the five printers can be registered (NRGMPC4500 and NRGMPC4500PS) because it seems their entry only gets "updated". So it seems to have worked a while ago.

The two printers show up in bonjour, the others are missing.

Looking at the avahi log I see:

- --
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=GetAPIVersion
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=GetState
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=GetDomainName
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=EntryGroupNew
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-entry-group.c: interface=org.freedesktop.Avahi.EntryGroup, path=/Client12/EntryGroup1, member=GetState
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-entry-group.c: interface=org.freedesktop.Avahi.EntryGroup, path=/Client12/EntryGroup1, member=AddService
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-util.c: Responding error 'Invalid service name' (-10)
Apr 30 16:40:29 dkf38-86 avahi-daemon[3381]: dbus-protocol.c: client :1.29 vanished.
- --

The main problem seems to be "Responding error 'Invalid service name' (-10)"

Does anyone have a clue what's causing this problem and how to get rid of it?

Best regards
Mario
-- 
Mario Aeby
IT-Support DKF

Departement Klinische Forschung
MEM H 817
Murtenstrasse 35
CH-3010 Bern

Fon +41 31 632 96 81






More information about the cups mailing list