problem with print server

rubboli at gmail.com rubboli at gmail.com
Mon Feb 7 07:15:38 PST 2005


I have 2 printer: HP 1700 and HP5000, the first with a print server. I have a linux box with cups and samba with this printer shared.

If i print a page when the HP1700 is turned off (and the print server is powered on) the printer in the cups status page will be turned in stop status (and will never be restarted also if i turn on the printer), if I turn off the *print server* the job remain in queue ("... retry in 60 seconds") and when i turn on the print server this will be printed.

Log result (debug) when the printer is turned off and printer server on:


...
D [..] AcceptClient: 5 from localhost:631.
D [..] ReadClient: 5 POST /printers/HP_1700 HTTP/1.1
D [..] print_job: auto-typing file...
D [..] print_job: request file type is application/octet-stream.
D [..] check_quotas: requesting-user-name = 'xxx'
D [..] print_job: requesting-user-name = 'xxx'
D [..] Adding default job-sheets values "none,none"...
I [..] Adding start banner page "none" to job 6644.
I [..] Adding end banner page "none" to job 6644.
I [..] Job 6644 queued on 'HP_1700' by 'xxx'.
D [..] Job 6644 hold_until = 0
D [..] StartJob(6644, 0x809dfb0)
D [..] StartJob() id = 6644, file = 0/1
D [..] StartJob: Sending job to queue tagged as raw...
D [..] job-sheets=none,none
D [..] banner_page = 0
D [..] StartJob: argv = "HP_1700","6644","xxx","smbprn.00000663 ELENCO-DOCUMENTI.XLS","1","","/var/spool/cups/d06644-001"
D [..] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [..] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [..] StartJob: envp[2]="USER=root"
D [..] StartJob: envp[3]="CHARSET=iso-8859-1"
D [..] StartJob: envp[4]="LANG=en"
D [..] StartJob: envp[5]="TZ=Europe/Rome"
D [..] StartJob: envp[6]="PPD=/etc/cups/ppd/HP_1700.ppd"
D [..] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [..] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [..] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [..] StartJob: envp[10]="CONTENT_TYPE=application/octet-stream"
D [..] StartJob: envp[11]="DEVICE_URI=lpd://192.168.0.251/auto"
D [..] StartJob: envp[12]="PRINTER=HP_1700"
D [..] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [..] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [..] StartJob: envp[15]="CUPS_SERVER=localhost"
D [..] StartJob: envp[16]="IPP_PORT=631"
D [..] StartJob: statusfds = [ 7 8 ]
D [..] StartJob: filterfds[1] = [ 9 -1 ]
D [..] StartJob: backend = "/usr/lib/cups/backend/lpd"
D [..] StartJob: filterfds[0] = [ -1 10 ]
D [..] start_process("/usr/lib/cups/backend/lpd", 0xbfff0100, 0xbffef470, 9, 10, 8)
I [..] Started backend /usr/lib/cups/backend/lpd (PID 21256) for job 6644.
D [..] ProcessIPPRequest: 5 status_code=0
D [..] CloseClient: 5
D [..] AcceptClient: 5 from localhost:631.
D [..] ReadClient: 5 POST / HTTP/1.1
D [..] ProcessIPPRequest: 5 status_code=0
D [..] ReadClient: 5 POST / HTTP/1.1
E [..] PID 21256 stopped with status 1!
D [..] [Job 6644] Connected on ports 515 (local 1023)...
D [..] [Job 6644] lpd_command 02 auto
D [..] [Job 6644] Sending command string (6 bytes)...
D [..] [Job 6644] Reading command status...
D [..] [Job 6644] lpd_command returning -1
D [..] UpdateJob: job 6644, file 0 is complete.
D [..] StopJob: id = 6644, force = 0
I [..] Saving printers.conf...
D [..] StopJob: printer state is 5
D [..] ProcessIPPRequest: 5 status_code=0
D [..] CloseClient: 5
...

when i do the same but with the Print Server turned off the result is:
W [..] [Job 6675] Network host '192.168.0.251' is busy, down, or unreachable; will retry in 30 seconds...

and cups is still waiting for the printer power on... isn't this the correct way to handle the problem???

the printer HP5000 have a similar problem, when i print a page with a printer turned off this will go ever in the spool (with the "will retry  in 30 seconds..." message) but when i power on the printer SOMETIMES all go right, sometimes the printer will be set in stop status.

I'm using debian sid and default i386 deb package.

Thank You
ER.




More information about the cups mailing list