Print dialog - long delay to show network printers

Michael Kaboom o1017125 at rtrtr.com
Wed Oct 3 12:56:15 PDT 2012


Hello,

first of all, sorry for my poor english.
I never used cupsd on server, but i want to try it. But i am in stuck with one trouble.
My dream is: cupsd on server with network printers list and on clients only cups client (no local cupsd).
But now i have long delay between iniciating printing (ctrl+p) dialog to its showing on client side. It always takes over 120 seconds.
Of course, in this period application is useless.
After that, printing to any showed printer is without delay and without printing troubles.

Tcpdump file for analysis (communication between client and server) is uploaded on:
http://www.megafileupload.com/en/file/369436/tcpdump-cups-client1-6-server1-5.html

#########################
Server
#########################

Ubuntu 10.04 LTS
IP address 172.16.2.73

Linux XXX 2.6.32-43-server #97-Ubuntu SMP Wed Sep 5 16:56:41 UTC 2012 x86_64 GNU/Linux

packages
# dpkg -l | grep cups
ii  cups                            1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - server
ii  cups-client                     1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - client pro
ii  cups-common                     1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - common fil
ii  cups-driver-gutenprint          5.2.5-0ubuntu1.1                  printer drivers for CUPS
ii  ghostscript-cups                8.71.dfsg.1-0ubuntu5.5            The GPL Ghostscript PostScript/PDF interpret
ii  libcups2                        1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - Core libra
ii  libcupscgi1                     1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - CGI librar
ii  libcupsdriver1                  1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - Driver lib
ii  libcupsimage2                   1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - Raster ima
ii  libcupsmime1                    1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - MIME libra
ii  libcupsppdc1                    1.4.3-1ubuntu1.6                  Common UNIX Printing System(tm) - PPD manipu

config
# cat /etc/cups/cupsd.conf
LogLevel warn
MaxLogSize 1m
SystemGroup lpadmin
ServerAlias *
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseRemoteProtocols
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>
<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  <Limit Create-Job Print-Job Print-URI>
  AuthType Default
  Order deny,allow
</Limit>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  AuthType Default
  Require user @SYSTEM
  Order deny,allow
    </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
      </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
      AuthType Default
      Require user @OWNER @SYSTEM
      Order deny,allow
        </Limit>
  <Limit All>
        Order deny,allow
          </Limit>
</Policy>

#########################
Client
#########################

Arch linux, openbox
IP address 172.16.0.6

Linux ZZZ 3.5.4-1-ARCH #1 SMP PREEMPT Sat Sep 15 08:12:04 CEST 2012 x86_64 GNU/Linux

packages
$ pacman -Qs cups
local/libcups 1.6.1-6  The CUPS Printing System - client libraries and headers

config
$ cat /etc/cups/client.conf
# see 'man client.conf'
#ServerName /var/run/cups/cups.sock #  alternative: ServerName hostname-or-ip-address[:port] of a remote server
ServerName 172.16.2.73:631

Thank you,
Michael





More information about the cups mailing list