Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cups-lpd oddities with printer-state attribute #1821

Closed
michaelrsweet opened this issue Jul 4, 2006 · 3 comments
Closed

cups-lpd oddities with printer-state attribute #1821

michaelrsweet opened this issue Jul 4, 2006 · 3 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2.1
CUPS.org User: kaeptn

I use cups-lpd (1.2.1) on FreeBSD 6.1-stable via inetd (tcp6 but that doesn't matter)
My printcap simply references the loaclhost remote queue:
lp|HL-5150D|1200dpi Duplex-Laser monochrom:rm=localhost:rp=HL-5150D:
'lpq' returns that printer is not ready although printing is working well and cups-lpd logs the following:

Jul  4 18:44:27 tek cups-lpd[1024]: Connection from localhost     (IPv6 ::1)
Jul  4 18:44:27 tek cups-lpd[1024]: Send queue state (short) for     HL-5150D
Jul  4 18:44:27 tek cups-lpd[1024]: No printer-state attribute     found in response from server!
Jul  4 18:44:27 tek cups-lpd[1024]: Closing connection

Now the really wiered:
When I change :rm=localhost: to :rm=tek: (the machine name which resolves to fec0::1:0:0:2:3) lpq is working as expected.
No change if I use v4 addresses instead.
Only working scenario is from localhost to tek.
Any other machine contacting tek also gets the wrong status and cups-lpd logs the same "No printer-state attribute" message.

Here's the relevant line in inetd.conf:
printer stream tcp6 nowait daemon /usr/local/libexec/cups/daemon/cups-lpd cups-lpd

Attached is my cupsd.conf in a very relaxed configuration for testing purposes.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Can you attach a copy of the error_log file with the LogLevel set to "debug2"?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"cupsd.conf":

DefaultCharset utf-8
DefaultEncryption Never
DefaultLanguage de

Show general information in error_log.

LogLevel info
SystemGroup wheel

Allow remote access

Listen [::1]:631
Listen [fec0::1:0:0:2:3]:631
Listen 172.21.2.3:631
Listen /var/run/cups.sock

Disable printer sharing and shared printers.

Browsing Off
DefaultAuthType Basic

Allow remote administration...

Order allow,deny
Allow From All

<Location /admin>
AuthType Basic
Require user @System
Order allow,deny
Allow From ::1
Allow From fec0::1:0:0:1:1

<Location /admin/conf>
AuthType Basic
Require user @System

Allow remote access to the configuration files...

Order allow,deny
Allow From [::1]



Require user @owner @System
Order deny,allow


AuthType Basic
Require user @System
Order deny,allow


Require user @owner @System
Order deny,allow

Only the owner or an administrator can cancel a job...

Order deny,allow Require user @owner @System Order deny,allow Printcap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant