1.4.3 (SunOS/sparc): canceled jobs do not go away and stay in active list

Matthias Apitz guru at unixarea.de
Tue Sep 20 05:11:47 PDT 2011


Hello,

I run CUPS 1.4.3 on a SunOS/sparc machine and see the following effect with some jobs:

# cancel lhdv-704
cancel: cancel-job failed: Job #704 is already canceled - can't cancel.

# lpstat -l lhdv
lhdv-704                uersisis       2920448   Mon Sep 19 17:26:52 2011
        Alerts: job-canceled-by-user
        queued for lhdv
lhdv-714                uersisis          1024   Mon Sep 19 21:49:17 2011
        Alerts: job-canceled-by-user
        queued for lhdv
l06mi-729               uersisis          1024   Mon Sep 19 21:56:37 2011
        Alerts: job-printing
        queued for l06mi
l12gg-733               uersisis          2048   Mon Sep 19 21:56:38 2011
        Alerts: job-printing
        queued for l12gg
lhdv-755                uersisis          3072   Tue Sep 20 08:47:48 2011
        Alerts: printer-stopped
        queued for lhdv
lhaerw3-795             uersisis          2048   Tue Sep 20 11:30:32 2011
        Alerts: job-printing
        queued for lhaerw3

I watched with truss(1) what cupsd is doing when it receives
the cancel command, but there is nothing to say about, i.e. cupsd
mus know this internaly already that the job can't be canceƶed and
it does not depend on some external in (for example in spool system):

recv(17, 0x001931B8, 2048, 0)                   = 279
   P O S T   / j o b s /   H T T P / 1 . 1\r\n C o n t e n t - L e
   n g t h :   1 4 0\r\n C o n t e n t - T y p e :   a p p l i c a
   t i o n / i p p\r\n H o s t :   l o c a l h o s t\r\n U s e r -
   A g e n t :   C U P S / 1 . 4 . 3\r\n E x p e c t :   1 0 0 - c
   o n t i n u e\r\n\r\n0101\0\b\0\0\00101 G\012 a t t r i b u t e
   s - c h a r s e t\005 u t f - 8 H\01B a t t r i b u t e s - n a
   t u r a l - l a n g u a g e\005 d e - d e E\007 j o b - u r i\0
  18 i p p : / / l o c a l h o s t / j o b s / 7 0 4 B\014 r e q u
   e s t i n g - u s e r - n a m e\004 r o o t03
time()                                          = 1316518754
time()                                          = 1316518754
time()                                          = 1316518754
time()                                          = 1316518754
time()                                          = 1316518754
time()                                          = 1316518754
time()                                          = 1316518754
time()                                          = 1316518754
send(17, 0xFFBF04D0, 25, 0)                     = 25
   H T T P / 1 . 1   1 0 0   C o n t i n u e\r\n\r\n
time()                                          = 1316518754
pollsys(0x0010A218, 10, 0xFFBFEFD0, 0x00000000) = 0
time()                                          = 1316518754
pollsys(0x0010A218, 10, 0xFFBFEFD0, 0x00000000) = 0
time()                                          = 1316518754
pollsys(0x0010A218, 10, 0xFFBFEFD0, 0x00000000) = 0
time()                                          = 1316518754
pollsys(0x0010A218, 10, 0xFFBFEFD0, 0x00000000) = 0
time()                                          = 1316518754
write(10, 0x0015F3E8, 128)                      = 128
   E   [ 2 0 / S e p / 2 0 1 1 : 1 3 : 3 9 : 1 4   - 0 1 0 0 ]   R
   e t u r n i n g   I P P   c l i e n t - e r r o r - n o t - p o
   s s i b l e   f o r   C a n c e l - J o b   ( i p p : / / l o c
   a l h o s t / j o b s / 7 0 4 )   f r o m   l o c a l h o s t\n

Any ideas?

        matthias





More information about the cups mailing list