print queue hung in "SENDING" status


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers print queue hung in "SENDING" status
# 1  
Old 06-07-2011
print queue hung in "SENDING" status

Dear All,

Realized recently some of the print queue configured with rembak, are hung in "SENDING" status. The only workaround for this is to disable and enable back the print queue.

This issue happen very random and frequent.

I turned on the debug mode for a print queue and the following the is captured trace :

Code:
rembak[1048666] main: Mon May 30 12:11:04 2011
rembak[1048666] main: /usr/lib/lpd/rembak -T2880 -D /tmp/thcgl016dbg.log -S CGSK016 -P raw1 -N /usr/lib/lpd/aixshort -o -d -o p -o -X -o 850 /var/spool/qdaemon/tM6UmEa 
rembak[1048666] main: backend=1.
rembak[1048666] hookup: Try to connect, current time=1306728664.
rembak[1048666] sendjob: sendjob starts, jobname=004nzVzN.P00, current time=1306728665.
rembak[1048666] sendjob: datafn[0]=dfA437kulapp72p, fakedfn=dfA437kulapp72p.
rembak[1048666] makecontrolfile: Entering makecontrolfile.
rembak[1048666] makecontrolfile:  dfnames[0]=dfA437kulapp72p
/?燼k[1048666] getbsdinfo: bsd3=Hkulapp72p\10 Pp00adm\10 
rembak[1048666] get_bsd_4file: bsd nc=1
/?餫k[1048666] get_bsd_4file: bsd strings: [N004nzVzN.P00\10 ][N004nzVzN.P00\10 ][N004nzVzN.P00\10 ][N004nzVzN.P00\10 ]
/?燼k[1048666] getbsdinfo: bsd3=Hkulapp72p\10 Pp00adm\10 fdfA437kulapp72p\10 UdfA437kulapp72p\10 N004nzVzN.P00\10 
rembak[1048666] gettmpr: Opening file /tmp//rembak_YafEa.
rembak[1048666] gettmpr: File /tmp//rembak_YafEa opened successfully, fd=7.
rembak[1048666] sendjob: ctrlfname=/tmp//rembak_YafEa, fakecfn=cfA437kulapp72p.
rembak[1048666] sendjob: State machine starts.....
rembak[1048666] sendjob: State 1 - send the "Receive a Print Job" request.
/?`ak[1048666] sendreq: sendreq - sending lpd request [\2 raw1\10 ].
rembak[1048666] gotack: Reading ACK status.....current time=1306728665, timeout_ack=172800.
rembak[1048666] gotack: ACK status=0x0.
rembak[1048666] sendjob: state 3 - Send data file(s), dfcount=1.
rembak[1048666] sendjob:  realfn=/var/spool/qdaemon/tM6UmEa, fakefn=dfA437kulapp72p, filter=/usr/lib/lpd/aixshort.
/?癮k[1048666] sendreq: sendreq - sending lpd request [\3 5029 dfA437kulapp72p\10 ].
rembak[1048666] gotack: Reading ACK status.....current time=1306728665, timeout_ack=172800.
rembak[1048666] gotack: ACK status=0x0.
rembak[1048666] senddatafile: Opening file /var/spool/qdaemon/tM6UmEa.
rembak[1048666] senddatafile: File /var/spool/qdaemon/tM6UmEa opened successfully, fd=8.
rembak[1048666] send_file_rembak: Reading 4096 bytes from file, fd=8.
rembak[1048666] send_file_rembak: Writing 4096 bytes to socket 5.
rembak[1048666] send_file_rembak: Reading 933 bytes from file, fd=8.
rembak[1048666] send_file_rembak: Writing 933 bytes to socket 5.
rembak[1048666] send_file_rembak: File sent.
rembak[1048666] ack: Send ACK.
rembak[1048666] send_file_rembak: waiting for ACK.
rembak[1048666] gotack: Reading ACK status.....current time=1306728665, timeout_ack=172800.
rembak[1048666] gotack: ACK status=0x0.
rembak[1048666] sendjob: State 2 - send control file, ctrlfname=/tmp//rembak_YafEa, fakecfn=cfA437kulapp72p.
/?癮k[1048666] sendreq: sendreq - sending lpd request [\2 149 cfA437kulapp72p\10 ].
rembak[1048666] gotack: Reading ACK status.....current time=1306728665, timeout_ack=172800.
rembak[1048666] gotack: ACK status=0x0.
rembak[1048666] sendcontrolfile: Opening file /tmp//rembak_YafEa.
rembak[1048666] sendcontrolfile: File /tmp//rembak_YafEa opened successfully, fd=8.
rembak[1048666] send_file_rembak: Reading 149 bytes from file, fd=8.
rembak[1048666] send_file_rembak: Writing 149 bytes to socket 5.
rembak[1048666] send_file_rembak: File sent.
rembak[1048666] ack: Send ACK.
rembak[1048666] send_file_rembak: waiting for ACK.
rembak[1048666] gotack: Reading ACK status.....current time=1306728665, timeout_ack=172800.
rembak[1048666] gotack: ACK status=0x0.
rembak[1048666] sendjob: State 5 - end of job #437 (004nzVzN.P00).
rembak[1048666] sendjob: Delete control file /tmp//rembak_YafEa.
 
 
rembak[1048668] main: Mon May 30 12:11:06 2011
rembak[1048668] main: /usr/lib/lpd/rembak -T2880 -D /tmp/thcgl016dbg.log -S CGSK016 -P raw1 -N /usr/lib/lpd/aixshort -o -d -o p -o -X -o 850 /var/spool/qdaemon/tN4ieia 
rembak[1048668] main: backend=1.
rembak[1048668] hookup: Try to connect, current time=1306728666.
rembak[1048668] sendjob: sendjob starts, jobname=004nzeVt.P00, current time=1306728666.
rembak[1048668] sendjob: datafn[0]=dfA438kulapp72p, fakedfn=dfA438kulapp72p.
rembak[1048668] makecontrolfile: Entering makecontrolfile.
rembak[1048668] makecontrolfile:  dfnames[0]=dfA438kulapp72p
/?燼k[1048668] getbsdinfo: bsd3=Hkulapp72p\10 Pp00adm\10 
rembak[1048668] get_bsd_4file: bsd nc=1
/?餫k[1048668] get_bsd_4file: bsd strings: [N004nzeVt.P00\10 ][N004nzeVt.P00\10 ][N004nzeVt.P00\10 ][N004nzeVt.P00\10 ]
/?燼k[1048668] getbsdinfo: bsd3=Hkulapp72p\10 Pp00adm\10 fdfA438kulapp72p\10 UdfA438kulapp72p\10 N004nzeVt.P00\10 
rembak[1048668] gettmpr: Opening file /tmp//rembakb5afMa.
rembak[1048668] gettmpr: File /tmp//rembakb5afMa opened successfully, fd=7.
rembak[1048668] sendjob: ctrlfname=/tmp//rembakb5afMa, fakecfn=cfA438kulapp72p.
rembak[1048668] sendjob: State machine starts.....
rembak[1048668] sendjob: State 1 - send the "Receive a Print Job" request.
/?`ak[1048668] sendreq: sendreq - sending lpd request [\2 raw1\10 ].
rembak[1048668] gotack: Reading ACK status.....current time=1306728666, timeout_ack=172800.
 
 
rembak[1200380] main: Mon May 30 15:15:28 2011
rembak[1200380] main: /usr/lib/lpd/rembak -T2880 -D /tmp/thcgl016dbg.log -S CGSK016 -P raw1 -N /usr/lib/lpd/aixshort -o -d -o p -o -X -o 850 /var/spool/qdaemon/tN4ieia 
rembak[1200380] main: backend=1.
rembak[1200380] hookup: Try to connect, current time=1306739728.
rembak[1200380] sendjob: sendjob starts, jobname=004nzeVt.P00, current time=1306739728.
rembak[1200380] sendjob: datafn[0]=dfA438kulapp72p, fakedfn=dfA438kulapp72p.
rembak[1200380] makecontrolfile: Entering makecontrolfile.
rembak[1200380] makecontrolfile:  dfnames[0]=dfA438kulapp72p
/?燼k[1200380] getbsdinfo: bsd3=Hkulapp72p\10 Pp00adm\10 
rembak[1200380] get_bsd_4file: bsd nc=1
/?餫k[1200380] get_bsd_4file: bsd strings: [N004nzeVt.P00\10 ][N004nzeVt.P00\10 ][N004nzeVt.P00\10 ][N004nzeVt.P00\10 ]
/?燼k[1200380] getbsdinfo: bsd3=Hkulapp72p\10 Pp00adm\10 fdfA438kulapp72p\10 UdfA438kulapp72p\10 N004nzeVt.P00\10 
rembak[1200380] gettmpr: Opening file /tmp//rembakfwupMa.
rembak[1200380] gettmpr: File /tmp//rembakfwupMa opened successfully, fd=7.
rembak[1200380] sendjob: ctrlfname=/tmp//rembakfwupMa, fakecfn=cfA438kulapp72p.
rembak[1200380] sendjob: State machine starts.....
rembak[1200380] sendjob: State 1 - send the "Receive a Print Job" request.
/?`ak[1200380] sendreq: sendreq - sending lpd request [\2 raw1\10 ].
rembak[1200380] gotack: Reading ACK status.....current time=1306739728, timeout_ack=172800.
rembak[1200380] gotack: ACK status=0x0.
rembak[1200380] sendjob: state 3 - Send data file(s), dfcount=1.
rembak[1200380] sendjob:  realfn=/var/spool/qdaemon/tN4ieia, fakefn=dfA438kulapp72p, filter=/usr/lib/lpd/aixshort.
/?癮k[1200380] sendreq: sendreq - sending lpd request [\3 4693 dfA438kulapp72p\10 ].
rembak[1200380] gotack: Reading ACK status.....current time=1306739728, timeout_ack=172800.
rembak[1200380] gotack: ACK status=0x0.
rembak[1200380] senddatafile: Opening file /var/spool/qdaemon/tN4ieia.
rembak[1200380] senddatafile: File /var/spool/qdaemon/tN4ieia opened successfully, fd=8.
rembak[1200380] send_file_rembak: Reading 4096 bytes from file, fd=8.
rembak[1200380] send_file_rembak: Writing 4096 bytes to socket 5.
rembak[1200380] send_file_rembak: Reading 597 bytes from file, fd=8.
rembak[1200380] send_file_rembak: Writing 597 bytes to socket 5.
rembak[1200380] send_file_rembak: File sent.
rembak[1200380] ack: Send ACK.
rembak[1200380] send_file_rembak: waiting for ACK.
rembak[1200380] gotack: Reading ACK status.....current time=1306739728, timeout_ack=172800.
rembak[1200380] gotack: ACK status=0x0.
rembak[1200380] sendjob: State 2 - send control file, ctrlfname=/tmp//rembakfwupMa, fakecfn=cfA438kulapp72p.
/?癮k[1200380] sendreq: sendreq - sending lpd request [\2 149 cfA438kulapp72p\10 ].
rembak[1200380] gotack: Reading ACK status.....current time=1306739728, timeout_ack=172800.
rembak[1200380] gotack: ACK status=0x0.
rembak[1200380] sendcontrolfile: Opening file /tmp//rembakfwupMa.
rembak[1200380] sendcontrolfile: File /tmp//rembakfwupMa opened successfully, fd=8.
rembak[1200380] send_file_rembak: Reading 149 bytes from file, fd=8.
rembak[1200380] send_file_rembak: Writing 149 bytes to socket 5.
rembak[1200380] send_file_rembak: File sent.
rembak[1200380] ack: Send ACK.
rembak[1200380] send_file_rembak: waiting for ACK.
rembak[1200380] gotack: Reading ACK status.....current time=1306739730, timeout_ack=172800.
rembak[1200380] gotack: ACK status=0x0.
rembak[1200380] sendjob: State 5 - end of job #438 (004nzeVt.P00).
rembak[1200380] sendjob: Delete control file /tmp//rembakfwupMa.

As you can see, after the spool : 1048666 completed, the spool somehow stop at : 1048668 the following line :
Code:
rembak[1048668] gotack: Reading ACK status.....current time=1306728666, timeout_ack=172800.

Do you know what is the meaning of this line ? Does it meant the print queue waiting the response of the physical printer after sending the acknowledgement to the physical printer ?

Best Regards,
Ken
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

Why awk print is strange when I set FS = " " instead of FS = "\t"?

Look at the following data file(cou.data) which has four fields separated by tab. Four fields are country name, land area, population, continent where it belongs. As for country name or continent name which has two words, two words are separated by space. (Data are not accurately... (1 Reply)
Discussion started by: chihuyu
1 Replies

3. UNIX for Advanced & Expert Users

can "netif_queue_stopped" function check wether or not the net device queue is stopped?

Hi, all: In linux 3.0.4, can "netif_queue_stopped" function check wether or not the net device queue is stopped? How could I know wether a net device queue is stopped or not? li,kunlun (0 Replies)
Discussion started by: liklstar
0 Replies

4. UNIX for Dummies Questions & Answers

lpstat print queue remain SENDING status

Hi All, When I type the following command: lpstat -pthcgl240 I get the following : Queue Dev Status Job Files User PP % Blks Cp Rnk ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- --- thcgl24 @CGBP SENDING 636... (0 Replies)
Discussion started by: nj1986
0 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

CPAN Configuration: Hung at "Select your continent"

Going through the CPAN configuration on a Solaris systems and I keep getting stuck at: Select your continent (or several nearby continents) ? It offers no choices to select from. I have tried using the default PERL installing with Solaris, and installing PERL packages from Blastwave. I... (0 Replies)
Discussion started by: bisbell
0 Replies

7. Solaris

How to check "faulty" or "stalled" print queues - SAP systems?

Hi all, First off, sorry for a long post but I think I have no other option if I need to explain properly what I need help for. I need some advise on how best to check for "faulty" or "stalled/jammed' print queues. At the moment, I have three (3) application servers which also acts as print... (0 Replies)
Discussion started by: newbie_01
0 Replies

8. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question