Network Printing

Hi,

Hope someone can help. I am running openSUSE 11.2 with an HP printer running locally no problem. I want to use this printer from all my pc’s and I have got it working from another linux pc (also 11.2) but having trouble getting it to work from a windows xp pc. I’m effectively using IPP printing, I can ping my ‘server’ pc, and I can see my printer from CUPS and can print a test page from CUPS, but I cannot print otherwise. Have I done it right in that I add a printer from the add printer wizard, select network printer, select URL in my case http://192.168.1.2:631/printers/Photosmart-C5300-series OK then it asks for the driver which I have pre-loaded and it adds it all ok.
But when I try to print something it doesn’t print, the print queue shows status ‘error’ and thats all. CUPS does not show the job, yet as I said I can print a test page ok.

Any ideas ??

On Fri November 20 2009 04:56 pm, pv1962osl wrote:

>
> Hi,
>
> Hope someone can help. I am running openSUSE 11.2 with an HP printer
> running locally no problem. I want to use this printer from all my pc’s
> and I have got it working from another linux pc (also 11.2) but having
> trouble getting it to work from a windows xp pc. I’m effectively using
> IPP printing, I can ping my ‘server’ pc, and I can see my printer from
> CUPS and can print a test page from CUPS, but I cannot print otherwise.
> Have I done it right in that I add a printer from the add printer
> wizard, select network printer, select URL in my case
> http://192.168.1.2:631/printers/Photosmart-C5300-series OK then it asks
> for the driver which I have pre-loaded and it adds it all ok.
> But when I try to print something it doesn’t print, the print queue
> shows status ‘error’ and thats all. CUPS does not show the job, yet as I
> said I can print a test page ok.
>
> Any ideas ??
>
>
pv1962osl;

I think this Howto should be of help. It should still apply to 11.2.
http://opensuse.swerdna.org/suseprintipp.html

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Hi, I’ve done all that and it’s all good right up to the last line that says “you should now be printing Windows_to_Linux using IPP/Cups”.

As i said I can see the printer ok from CUPS and can send a test page, and the driver can see it ok too but errors.

Which made me think it is a driver issue, so I deleted it and added it again but used ‘Generic’ and ‘MS Publisher Imagesetter’ driver or ‘MS Publisher Color Printer’ and it prints now, which is great, but all the jobs stay in the print queue in error status and on CUPS jobs page stay on the active jobs page with a status of ‘stopped’.

Can anyone suggest a more appropriate driver to use that might not do this?

Thanks again.

On Fri November 20 2009 06:16 pm, pv1962osl wrote:

>
> Hi, I’ve done all that and it’s all good right up to the last line that
> says “you should now be printing Windows_to_Linux using IPP/Cups”.
>
> As i said I can see the printer ok from CUPS and can send a test page,
> and the driver can see it ok too but errors.
>
> Which made me think it is a driver issue, so I deleted it and added it
> again but used ‘Generic’ and ‘MS Publisher Imagesetter’ driver or ‘MS
> Publisher Color Printer’ and it prints now, which is great, but all the
> jobs stay in the print queue in error status and on CUPS jobs page stay
> on the active jobs page with a status of ‘stopped’.
>
> Can anyone suggest a more appropriate driver to use that might not do
> this?
>
> Thanks again.
pv1962osl;

I may have misunderstood your first post. Can you please post the following
information.

  1. Which HP printer do you have?
  2. Is the printer physically connected to a the OpenSuSE machine in question
    or to another machine. If connected to another machine is the other machine
    Linux or Windows?


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

venzkep,

My printer is HP Photosmart C5380 multifunction. It is physically connected to an openSUSE machine (USB connection). Prints fine on that. Also prints fine from a second openSUSE machine across the network. The problem I have is printing across the network from a Windows xp machine. Having said that now I can actually print from the windows machine after I changed the driver to a generic rather than the HP 5300 series driver. Only problem is now that the jobs stay in the print queue’s in CUPS and also the windows print queue with aan error status, even though they have printed ok, I have to cancel the job from the CUPS active jobs queue, and I cant remove or cancel the jobs from the windows queue unless I logout or restart windows.

Thanks.

On Fri November 20 2009 09:26 pm, pv1962osl wrote:

>
> venzkep,
>
> My printer is HP Photosmart C5380 multifunction. It is physically
> connected to an openSUSE machine (USB connection). Prints fine on that.
> Also prints fine from a second openSUSE machine across the network. The
> problem I have is printing across the network from a Windows xp machine.
> Having said that now I can actually print from the windows machine after
> I changed the driver to a generic rather than the HP 5300 series driver.
> Only problem is now that the jobs stay in the print queue’s in CUPS and
> also the windows print queue with aan error status, even though they
> have printed ok, I have to cancel the job from the CUPS active jobs
> queue, and I cant remove or cancel the jobs from the windows queue
> unless I logout or restart windows.
>
> Thanks.
>
pv1962osl;

Are there any error messages in /var/log/cups/error_log that throw a light on
this? I rather suspect the Windows drivers are not properly closing the
connection. Have you looked for an updated XP driver on the hp web site?

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Hi venzkep,

I have tried the latest HP driver, it is exactly the same as I have. Here is the printout from the log file you requested:

I [22/Nov/2009:09:50:10 +1300] [Job ???] Request file type is application/postscript.
I [22/Nov/2009:09:50:10 +1300] [Job 29] Adding start banner page “none”.
I [22/Nov/2009:09:50:10 +1300] [Job 29] Adding end banner page “none”.
I [22/Nov/2009:09:50:10 +1300] [Job 29] File of type application/postscript queued by “PV162700”.
I [22/Nov/2009:09:50:10 +1300] [Job 29] Queued on “Photosmart-C5300-series” by “PV162700”.
I [22/Nov/2009:09:50:10 +1300] [Job 29] Started filter /usr/lib/cups/filter/pstops (PID 32242)
I [22/Nov/2009:09:50:10 +1300] [Job 29] Started filter /usr/lib/cups/filter/pstoraster (PID 32243)
I [22/Nov/2009:09:50:10 +1300] [Job 29] Started filter /usr/lib/cups/filter/hpcups (PID 32244)
I [22/Nov/2009:09:50:10 +1300] [Job 29] Started backend /usr/lib/cups/backend/hp (PID 32245)
E [22/Nov/2009:09:50:12 +1300] PID 32243 (/usr/lib/cups/filter/pstoraster) stopped with status 1!
I [22/Nov/2009:09:50:12 +1300] Hint: Try setting the LogLevel to “debug” to find out more.
E [22/Nov/2009:09:50:12 +1300] PID 32244 (/usr/lib/cups/filter/hpcups) stopped with status 1!
I [22/Nov/2009:09:50:12 +1300] Hint: Try setting the LogLevel to “debug” to find out more.
E [22/Nov/2009:09:50:12 +1300] PID 32245 (/usr/lib/cups/backend/hp) stopped with status 1!
I [22/Nov/2009:09:50:12 +1300] Hint: Try setting the LogLevel to “debug” to find out more.
I [22/Nov/2009:09:50:12 +1300] [Job 29] Backend returned status 1 (failed)
I [22/Nov/2009:09:50:12 +1300] Saving printers.conf…
I [22/Nov/2009:09:51:34 +1300] Started “/usr/lib/cups/cgi-bin/jobs.cgi” (pid=32261)
I [22/Nov/2009:09:51:46 +1300] Started “/usr/lib/cups/cgi-bin/jobs.cgi” (pid=32269)
I [22/Nov/2009:09:51:46 +1300] [Job 28] Restarted by “root”.
I [22/Nov/2009:09:51:50 +1300] Started “/usr/lib/cups/cgi-bin/jobs.cgi” (pid=32270)

Interesting it says stopped with status 1, dont know what that means, also dont know how to set the LogLevel to “debug”.

On further testing it seems that I can print 1 document from windows then it seems to prevent me printing any more, they just go straight to error. The above log was using the generic driver, I could try the same thing with the HP driver again and see what the log produces from that too, will post when I get around to doing that. Thanks for your assistance.

On Sat November 21 2009 09:56 pm, pv1962osl wrote:

>
> Hi venzkep,
>
> I have tried the latest HP driver, it is exactly the same as I have.
> Here is the printout from the log file you requested:
>
> I [22/Nov/2009:09:50:10 +1300] [Job ???] Request file type is
> application/postscript.
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Adding start banner page
> “none”.
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Adding end banner page “none”.
> I [22/Nov/2009:09:50:10 +1300] [Job 29] File of type
> application/postscript queued by “PV162700”.
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Queued on
> “Photosmart-C5300-series” by “PV162700”.
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Started filter
> /usr/lib/cups/filter/pstops (PID 32242)
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Started filter
> /usr/lib/cups/filter/pstoraster (PID 32243)
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Started filter
> /usr/lib/cups/filter/hpcups (PID 32244)
> I [22/Nov/2009:09:50:10 +1300] [Job 29] Started backend
> /usr/lib/cups/backend/hp (PID 32245)
> E [22/Nov/2009:09:50:12 +1300] PID 32243
> (/usr/lib/cups/filter/pstoraster) stopped with status 1!
> I [22/Nov/2009:09:50:12 +1300] Hint: Try setting the LogLevel to
> “debug” to find out more.
> E [22/Nov/2009:09:50:12 +1300] PID 32244 (/usr/lib/cups/filter/hpcups)
> stopped with status 1!
> I [22/Nov/2009:09:50:12 +1300] Hint: Try setting the LogLevel to
> “debug” to find out more.
> E [22/Nov/2009:09:50:12 +1300] PID 32245 (/usr/lib/cups/backend/hp)
> stopped with status 1!
> I [22/Nov/2009:09:50:12 +1300] Hint: Try setting the LogLevel to
> “debug” to find out more.
> I [22/Nov/2009:09:50:12 +1300] [Job 29] Backend returned status 1
> (failed)
> I [22/Nov/2009:09:50:12 +1300] Saving printers.conf…
> I [22/Nov/2009:09:51:34 +1300] Started “/usr/lib/cups/cgi-bin/jobs.cgi”
> (pid=32261)
> I [22/Nov/2009:09:51:46 +1300] Started “/usr/lib/cups/cgi-bin/jobs.cgi”
> (pid=32269)
> I [22/Nov/2009:09:51:46 +1300] [Job 28] Restarted by “root”.
> I [22/Nov/2009:09:51:50 +1300] Started “/usr/lib/cups/cgi-bin/jobs.cgi”
> (pid=32270)
>
>
> Interesting it says stopped with status 1, dont know what that means,
> also dont know how to set the LogLevel to “debug”.
>
> On further testing it seems that I can print 1 document from windows
> then it seems to prevent me printing any more, they just go straight to
> error. The above log was using the generic driver, I could try the same
> thing with the HP driver again and see what the log produces from that
> too, will post when I get around to doing that. Thanks for your
> assistance.
>
>
pv1962osl;

As root, edit /etc/cups/cupsd.conf and change the LogLevel directive
to “debug”. See:


man cupsd.conf

for a complete list of options. It is normally set to “info”, if the LogLevel
directive is not in your cupsd.conf just add it.

After you edit cupsd.conf restart CUPS.


su
rccups restart

You can get the documentation for CUPS here:
http://www.cups.org/ The documentation should also be in:
/usr/share/doc/packages/cups, assuming you installed the documents.

You may also find further information on the error message by doing a GOOGLE
search of the error message. e.g. In GOOGLE search for “Backend returned
status 1”. You may need to use a higher loglevel for your Google search to
yield better information. The above example will return too many hits to be
of much use, since many faults can lead to a status 1.

You might want to check if other computers yield errors in the logs for that
printer, it could help you sort out what is different with the XP print.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

On Sat November 21 2009 10:32 pm, PV wrote:

> On Sat November 21 2009 09:56 pm, pv1962osl wrote:
>
<snip>
pv1962osl;

Have you checked that the printing preferences in XP agree with your printer.
For example perhaps the preferences call for a paper size of letter and you
are using A4 or vice versa. This would cause an error to be generated.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green