Network printer: remote jobs hang, print if requeued locally

Frnak McKenney frank_mckenney at mindspring.com
Thu Jun 21 19:58:39 PDT 2007


Summary
-------

Two computers ('office', 'manticore') and an Ethernet-attached
printer (Brother MFC420CN) are connected to the same LAN.

CUPS 1.2.7 is running under openSuSE 10.2 on 'manticore'.

Printing from 'manticore' apps (e.g.  gedit, inkscape) works as
expected (print stream is written to spool file, job is queued, job
prints, spool file is deleted).

Remote printing from 'office' apps fails.  The print stream is
written to a spool file, the job is queued, the job starts printing,
the printer LCD panel acknowledges that data is being received...
and then nothing further happens.

If the spool file is manually requeued by issuing (e.g.)

    lp -d mfc420cn /var/spool/cups/d00082-001

the job prints without getting hung.

Can anyone help me figure out whether this is a Bug, a Configuration
Error, or (an old IBM favorite) a Probable User Error?

Any clues, hints, or suggestions will be appreciated.


Frank McKenney


Background (More data than anyone will really want)
--------------------------------------
The Printer: Brother MFC-420CN multifunction printer/server
Printer IP: 192.168.0.99 (brn_60fb75)

manticore: openSuSE 10.2 / Gnome
  uname -a
  Linux manticore 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC
        2006 i686 athlon i386 GNU/Linux
manticore IP: 192.168.0.2

office: IBM OS/2 Warp 4
office IP: 192.168.0.1
office printer driver: Apple Color LaserWriter 12/600

CUPS rpms:  rpm -qa |grep 'cups\|mfc\|MFC'
  cupswrapperMFC420CN-1.0.0-1
  cups-libs-1.2.7-3
  cups-client-1.2.7-3
  cups-drivers-1.2.7-7
  gnome-cups-manager-0.32cvs20060120-71
  cups-backends-1.0-43
  cups-1.2.7-3
  cups-devel-1.2.7-3
  MFC420CNlpr-1.0.2-1
  libgnomecups-0.2.2-46

manticore:/var/spool/cups # ls -l /etc/cups/ppd
total 44
-rw-r--r-- 1 root root 23152 2007-06-11 11:37 mfc420cn.ppd
-rw-r--r-- 1 root root 16705 2007-06-11 14:06 PDFWriter.ppd
...
*PCFileName: "MFC420CN.PPD"
*Manufacturer: "Brother"
*Product: "(MFC-420CN)"
*1284DeviceID: "MFG:Brother;MDL:MFC-420CN"
*cupsVersion: 1.1
*cupsManualCopies: False
*cupsFilter: "application/vnd.cups-postscript 0 brlpdwrapperMFC420CN"
*cupsModelNumber: 6
*ModelName: "Brother MFC-420CN"
*ShortNickName: "Brother MFC-420CN"
*NickName: "Brother MFC-420CN CUPS v1.1"
*PSVersion: "(3010.106) 3"
-------------------------------------------------------------
manticore:/var/spool/cups # cat /etc/cups/cupsd.conf|
                                grep -v ˆ#|grep [:alnum:]
# Show troubleshooting information in error_log.
LogLevel alert
SystemGroup sys root
# Allow remote access
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Encryption Required
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes
    Enable-Printer Disable-Printer Pause-Printer-After-Current-Job
    Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer
    Activate-Printer Shutdown-Printer Startup-Printer Promote-Job
    Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer
    CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs
    CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
-------------------------------------------
manticore:/var/spool/cups # ldd `which cupsd`
        linux-gate.so.1 =>  (0xffffe000)
        libz.so.1 => /lib/libz.so.1 (0xb7f51000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f14000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7de1000)
        libslp.so.1 => /usr/lib/libslp.so.1 (0xb7dcb000)
        libpam.so.0 => /lib/libpam.so.0 (0xb7dbe000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7dba000)
        libwrap.so.0 => /lib/libwrap.so.0 (0xb7db0000)
        libcups.so.2 => /usr/lib/libcups.so.2 (0xb7d80000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7d68000)
        libm.so.6 => /lib/libm.so.6 (0xb7d42000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7d0e000)
        libc.so.6 => /lib/libc.so.6 (0xb7be0000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7bca000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb7bb7000)
        libaudit.so.0 => /lib/libaudit.so.0 (0xb7ba4000)
        /lib/ld-linux.so.2 (0xb7f7f000)
manticore:/var/spool/cups #
--------------------------------------------------
manticore:/var/spool/cups # cups-config --version --api-version
1.2.7
1.2
manticore:/var/spool/cups #
------------------------------------------
c00082 is the remote print job.
c00083 is the same job "requeued"

-rw------- 1 root lp    688 2007-06-21 20:36 c00082
-rw------- 1 root lp    648 2007-06-21 20:34 c00083

This job was generated by 'office', and hasn't printed.
---------------------------------------------------
manticore:/var/spool/cups # xxd c00082
0000000: 0101 0002 0000 0001 0147 0012 6174 7472  .........G..attr
0000010: 6962 7574 6573 2d63 6861 7273 6574 0005  ibutes-charset..
0000020: 7574 662d 3848 001b 6174 7472 6962 7574  utf-8H..attribut
0000030: 6573 2d6e 6174 7572 616c 2d6c 616e 6775  es-natural-langu
0000040: 6167 6500 0265 6e02 4500 0b70 7269 6e74  age..en.E..print
0000050: 6572 2d75 7269 0021 6970 703a 2f2f 6c6f  er-uri.!ipp://lo
0000060: 6361 6c68 6f73 742f 7072 696e 7465 7273  calhost/printers
0000070: 2f6d 6663 3432 3063 6e42 0019 6a6f 622d  /mfc420cnB..job-
0000080: 6f72 6967 696e 6174 696e 672d 7573 6572  originating-user
0000090: 2d6e 616d 6500 0546 5241 4e4b 4200 196a  -name..FRANKB..j
00000a0: 6f62 2d6f 7269 6769 6e61 7469 6e67 2d68  ob-originating-h
00000b0: 6f73 742d 6e61 6d65 000b 3139 322e 3136  ost-name..192.16
00000c0: 382e 302e 3142 0008 6a6f 622d 6e61 6d65  8.0.1B..job-name
00000d0: 001f 736d 6270 726e 2e30 3030 3030 3032  ..smbprn.0000002
00000e0: 3320 4865 6c6c 6f5f 576f 726c 642e 7478  3 Hello_World.tx
00000f0: 7449 000f 646f 6375 6d65 6e74 2d66 6f72  tI..document-for
0000100: 6d61 7400 1861 7070 6c69 6361 7469 6f6e  mat..application
0000110: 2f76 6e64 2e63 7570 732d 7261 7721 000c  /vnd.cups-raw!..
0000120: 6a6f 622d 7072 696f 7269 7479 0004 0000  job-priority....
0000130: 0032 4500 086a 6f62 2d75 7569 6400 2d75  .2E..job-uuid.-u
0000140: 726e 3a75 7569 643a 3636 3336 6637 3534  rn:uuid:6636f754
0000150: 2d35 6334 332d 3366 6639 2d37 3532 362d  -5c43-3ff9-7526-
0000160: 3765 6430 3464 6133 3034 6237 2100 1074  7ed04da304b7!..t
0000170: 696d 652d 6174 2d63 7265 6174 696f 6e00  ime-at-creation.
0000180: 0446 7b18 3021 0012 7469 6d65 2d61 742d  .F{.0!..time-at-
0000190: 7072 6f63 6573 7369 6e67 0004 467b 1917  processing..F{..
00001a0: 1300 1174 696d 652d 6174 2d63 6f6d 706c  ...time-at-compl
00001b0: 6574 6564 0000 2100 066a 6f62 2d69 6400  eted..!..job-id.
00001c0: 0400 0000 5223 0009 6a6f 622d 7374 6174  ....R#..job-stat
00001d0: 6500 0400 0000 0421 001a 6a6f 622d 6d65  e......!..job-me
00001e0: 6469 612d 7368 6565 7473 2d63 6f6d 706c  dia-sheets-compl
00001f0: 6574 6564 0004 0000 0002 4500 0f6a 6f62  eted......E..job
0000200: 2d70 7269 6e74 6572 2d75 7269 002a 6970  -printer-uri.*ip
0000210: 703a 2f2f 6d61 6e74 6963 6f72 652e 7369  p://manticore.si
0000220: 7465 3a36 3331 2f70 7269 6e74 6572 732f  te:631/printers/
0000230: 6d66 6334 3230 636e 4200 086a 6f62 2d6e  mfc420cnB..job-n
0000240: 616d 6500 1f73 6d62 7072 6e2e 3030 3030  ame..smbprn.0000
0000250: 3030 3233 2048 656c 6c6f 5f57 6f72 6c64  0023 Hello_World
0000260: 2e74 7874 2100 0c6a 6f62 2d6b 2d6f 6374  .txt!..job-k-oct
0000270: 6574 7300 0400 0001 1744 000e 6a6f 622d  ets......D..job-
0000280: 686f 6c64 2d75 6e74 696c 0007 6e6f 2d68  hold-until..no-h
0000290: 6f6c 6442 000a 6a6f 622d 7368 6565 7473  oldB..job-sheets
00002a0: 0004 6e6f 6e65 4200 0000 046e 6f6e 6503  ..noneB....none.
manticore:/var/spool/cups #
---------------------------------------------------

This job was requeued, and printed.
---------------------------------------------------
manticore:/var/spool/cups # xxd c00083
0000000: 0101 0002 0000 0001 0147 0012 6174 7472  .........G..attr
0000010: 6962 7574 6573 2d63 6861 7273 6574 0005  ibutes-charset..
0000020: 7574 662d 3848 001b 6174 7472 6962 7574  utf-8H..attribut
0000030: 6573 2d6e 6174 7572 616c 2d6c 616e 6775  es-natural-langu
0000040: 6167 6500 0565 6e2d 7573 0245 000b 7072  age..en-us.E..pr
0000050: 696e 7465 722d 7572 6900 2169 7070 3a2f  inter-uri.!ipp:/
0000060: 2f6c 6f63 616c 686f 7374 2f70 7269 6e74  /localhost/print
0000070: 6572 732f 6d66 6334 3230 636e 4200 196a  ers/mfc420cnB..j
0000080: 6f62 2d6f 7269 6769 6e61 7469 6e67 2d75  ob-originating-u
0000090: 7365 722d 6e61 6d65 0004 726f 6f74 4200  ser-name..rootB.
00000a0: 086a 6f62 2d6e 616d 6500 0a64 3030 3038  .job-name..d0008
00000b0: 322d 3030 3149 000f 646f 6375 6d65 6e74  2-001I..document
00000c0: 2d66 6f72 6d61 7400 1661 7070 6c69 6361  -format..applica
00000d0: 7469 6f6e 2f70 6f73 7473 6372 6970 7442  tion/postscriptB
00000e0: 000a 6a6f 622d 7368 6565 7473 0004 6e6f  ..job-sheets..no
00000f0: 6e65 4200 0000 046e 6f6e 6521 000c 6a6f  neB....none!..jo
0000100: 622d 7072 696f 7269 7479 0004 0000 0032  b-priority.....2
0000110: 4500 086a 6f62 2d75 7569 6400 2d75 726e  E..job-uuid.-urn
0000120: 3a75 7569 643a 6134 3638 6165 3933 2d30  :uuid:a468ae93-0
0000130: 3832 302d 3366 6337 2d36 3034 372d 6565  820-3fc7-6047-ee
0000140: 3536 3062 3361 3562 3037 4200 196a 6f62  560b3a5b07B..job
0000150: 2d6f 7269 6769 6e61 7469 6e67 2d68 6f73  -originating-hos
0000160: 742d 6e61 6d65 0009 6c6f 6361 6c68 6f73  t-name..localhos
0000170: 7421 0010 7469 6d65 2d61 742d 6372 6561  t!..time-at-crea
0000180: 7469 6f6e 0004 467b 18dd 2100 1274 696d  tion..F{..!..tim
0000190: 652d 6174 2d70 726f 6365 7373 696e 6700  e-at-processing.
00001a0: 0446 7b18 e721 0011 7469 6d65 2d61 742d  .F{..!..time-at-
00001b0: 636f 6d70 6c65 7465 6400 0446 7b18 fa21  completed..F{..!
00001c0: 0006 6a6f 622d 6964 0004 0000 0053 2300  ..job-id.....S#.
00001d0: 096a 6f62 2d73 7461 7465 0004 0000 0009  .job-state......
00001e0: 2100 1a6a 6f62 2d6d 6564 6961 2d73 6865  !..job-media-she
00001f0: 6574 732d 636f 6d70 6c65 7465 6400 0400  ets-completed...
0000200: 0000 0045 000f 6a6f 622d 7072 696e 7465  ...E..job-printe
0000210: 722d 7572 6900 2a69 7070 3a2f 2f6d 616e  r-uri.*ipp://man
0000220: 7469 636f 7265 2e73 6974 653a 3633 312f  ticore.site:631/
0000230: 7072 696e 7465 7273 2f6d 6663 3432 3063  printers/mfc420c
0000240: 6e42 0008 6a6f 622d 6e61 6d65 000a 6430  nB..job-name..d0
0000250: 3030 3832 2d30 3031 2100 0c6a 6f62 2d6b  0082-001!..job-k
0000260: 2d6f 6374 6574 7300 0400 0001 1744 000e  -octets......D..
0000270: 6a6f 622d 686f 6c64 2d75 6e74 696c 0007  job-hold-until..
0000280: 6e6f 2d68 6f6c 6403                      no-hold.
manticore:/var/spool/cups #
---------------------------------------------------

Frank McKenney, McKenney Associates
Richmond, Virginia / (804) 320-4887
Munged E-mail: frank uscore mckenney ayut minds pring dawt cahm (y'all)
--
   "A good traveller has no fixed plans and is not intent on
    arriving."               -- Lao Tzu (570-490 BC)
--





More information about the cups mailing list