Printer Problem...

max_xx

Well Known Member
Hi Every1,

We are on 8.12
Enterprise Server : RHEL
Deployment Server: Win 2k3
Web Server: RHEL

Printer Installed on Deployment Server
Printer: RICOH 2020D
Drivers: PCL


I've got this small printer problem.
If I try to print directly from WSJ, nothing happens. Printer dosent print anything.

If I open the PDF, than give the print command, it prints perfectly well.

What I possibly understand that
1) when I open the PDF from the thin client, JDE drags the report from the Enterprise Server and opens it up on your machine (windows in my case)

2) When the direct Print command is given from WSJ, thin client passes the request to Enterprise Server to print the pdf file which in turn passes on the request to the default printer (printer installed on deployment server in my case).

Case 1 works fine
Case 2 fails.
The below error is seen in the log file on the enterprise server:

24107/-1218598784 MAIN_THREAD Wed Apr 16 12:39:49.761742 ipcmisc.c299
process 24107 <runprint> registered in entry 25

24107/-1218598784 MAIN_THREAD Wed Apr 16 12:39:50.275624 jdekprnt.c3954
KNT0000156 - Print request failed 256. printer: \\lidcodep\RICOH print file: R42520_RIS0002_2_PDF


If I print from the Linux i.e. issue a print command from linux, it prints perfectly well.

Any suggestion/solution would be highly appreciated.

Thanks a lot in advance.

Warm Regards,
Max
 
Max,

Typically on a Unix enterprise server I would not expect to use the Windows UNC printer naming convention. I assume you have Samba configured on your Linux box. I don't think that E1 can print using the UNC name in that situation. I would expect it to issue the lp command. In this case I would expect it to try to "lp" to \\lidcodep\RICOH. That would probably not be a defined printer to the lpd daemon. The way I have configured windows UNC printers on Linux using Samba is to define the printer using the smbprint command.

In the printcap file you would have something like this:

smb|RICOH on lidcodep:\
:if=/usr/bin/smbprint:\
:lp=/dev/null:\
:sd=/var/spool/lpd/smb:\
:mx=0:

Where the "RICOH on libcodep" is the name of the printer as defined to Samba.

Note that I have never used Samba printers from Linux using E1. The few Linux installs that I manage are using direct TCP/IP printing to network attached printers (HP JetDirect).

Try defining the printer in the printcap file using smbprint and let us know how you get on.

Regards,
 
Thanks a lot for your reply.

Mate, the result is the same.

If I print directly from linux without using JDE, I am able to print. But its just when I am issuing the print from within JDE, its giving out problem.

I copied the stuff given by by you to the printcap file, but it did not made any effect.

I was able to ping the printer's IP Addres but was not able to ping directly by name. So added the name in the Hosts file. Still, no result.

This is the toughest printer that I have seen. It's just not giving up.

Is there anything else that I can try ???

-Max
 
I turned on the debug level for the log cups log files

Below is the extract from that log file when I give a print command from JDE, fat client

D [23/Apr/2008:12:17:15 +1000] AddLocation: added location '/admin'
D [23/Apr/2008:12:17:15 +1000] DenyIP: /admin deny 00000000/00000000
D [23/Apr/2008:12:17:15 +1000] AllowIP: /admin allow 7f000001/ffffffff
D [23/Apr/2008:12:17:15 +1000] AddLocation: added location '/printers/printqueue'
D [23/Apr/2008:12:17:15 +1000] DenyIP: /printers/printqueue deny 00000000/00000000
D [23/Apr/2008:12:17:15 +1000] AllowIP: /printers/printqueue allow 7f000001/ffffffff
D [23/Apr/2008:12:17:15 +1000] AddLocation: added location '/printers/QBATCH'
D [23/Apr/2008:12:17:15 +1000] DenyIP: /printers/QBATCH deny 00000000/00000000
D [23/Apr/2008:12:17:15 +1000] AllowIP: /printers/QBATCH allow 7f000001/ffffffff
D [23/Apr/2008:12:17:15 +1000] AllowIP: /printers/QBATCH allow 00000000/00000000
D [23/Apr/2008:12:17:15 +1000] AddLocation: added location '/'
D [23/Apr/2008:12:17:15 +1000] DenyIP: / deny 00000000/00000000
D [23/Apr/2008:12:17:15 +1000] AllowIP: / allow 7f000001/ffffffff
D [23/Apr/2008:12:17:15 +1000] AddLocation: added location 'CUPS_INTERNAL_BROWSE_ACL'
D [23/Apr/2008:12:17:15 +1000] AllowHost: CUPS_INTERNAL_BROWSE_ACL allow @LOCAL
I [23/Apr/2008:12:17:15 +1000] Sending browsing info to ffffffff:631
I [23/Apr/2008:12:17:15 +1000] Listening to 0:631
D [23/Apr/2008:12:17:15 +1000] ReadConfiguration() ConfigurationFile="/etc/cups/cupsd.conf"
I [23/Apr/2008:12:17:15 +1000] Configured for up to 100 clients.
I [23/Apr/2008:12:17:15 +1000] Allowing up to 10 client connections per host.
D [23/Apr/2008:12:17:16 +1000] LoadAllPrinters: Loading printer QBATCH...
I [23/Apr/2008:12:17:16 +1000] LoadPPDs: Read "/etc/cups/ppds.dat", 13 PPDs...
I [23/Apr/2008:12:17:16 +1000] LoadPPDs: No new or changed PPDs...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "http"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "ipp"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "lpd"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "smb"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "scsi"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS2?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS3?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS4?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS5?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS6?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS7?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS8?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS9?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS10?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS11?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS12?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS13?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS14?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS15?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS16?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS17?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS18?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS19?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS20?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS21?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS22?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS23?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS24?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS25?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS26?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS27?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS28?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS29?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS30?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "serial:/dev/ttyS31?baud=115200"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "socket"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp0"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp1"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp2"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp3"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp4"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp5"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp6"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp7"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp8"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp9"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp10"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp11"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp12"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp13"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp14"...
D [23/Apr/2008:12:17:16 +1000] LoadDevices: Added device "usb:/dev/usb/lp15"...
D [23/Apr/2008:12:17:16 +1000] StartListening: NumListeners=1
D [23/Apr/2008:12:17:16 +1000] StartListening: address=00000000 port=631
D [23/Apr/2008:12:17:16 +1000] ResumeListening: setting input bits...
D [23/Apr/2008:12:17:16 +1000] LoadAllJobs: Scanning /var/spool/cups...
D [23/Apr/2008:12:17:16 +1000] LoadAllJobs: Loading attributes for job 13...
D [23/Apr/2008:12:17:16 +1000] LoadAllJobs: Loading attributes for job 14...
D [23/Apr/2008:12:17:16 +1000] LoadAllJobs: Loading attributes for job 15...
D [23/Apr/2008:12:17:42 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:17:42 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:17:42 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:17:42 +1000] CloseClient() 3
D [23/Apr/2008:12:17:42 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:17:42 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:17:42 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:17:42 +1000] CloseClient() 3
D [23/Apr/2008:12:17:42 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:17:42 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:17:42 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:17:42 +1000] ReadClient() 3 POST /printers/\lidcodepRICOH HTTP/1.1
D [23/Apr/2008:12:17:42 +1000] print_job: auto-typing file...
D [23/Apr/2008:12:17:42 +1000] print_job: request file type is text/plain.
E [23/Apr/2008:12:17:42 +1000] print_job: resource name '/printers/\lidcodepRICOH' no good!
D [23/Apr/2008:12:17:42 +1000] Sending error: client-error-not-found
D [23/Apr/2008:12:17:42 +1000] ProcessIPPRequest: 3 status_code=406
D [23/Apr/2008:12:17:43 +1000] CloseClient() 3
D [23/Apr/2008:12:20:51 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:20:51 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:20:51 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:20:51 +1000] CloseClient() 3
D [23/Apr/2008:12:20:53 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:20:53 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:20:53 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:20:53 +1000] CloseClient() 3
D [23/Apr/2008:12:20:53 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:20:53 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:20:53 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:20:53 +1000] CloseClient() 3
D [23/Apr/2008:12:20:53 +1000] AcceptClient() 3 from localhost:631.
D [23/Apr/2008:12:20:53 +1000] ReadClient() 3 POST / HTTP/1.1
D [23/Apr/2008:12:20:53 +1000] ProcessIPPRequest: 3 status_code=0
D [23/Apr/2008:12:20:53 +1000] CloseClient() 3



I am worried about this particular statement
"E [23/Apr/2008:12:17:42 +1000] print_job: resource name '/printers/\lidcodepRICOH' no good!"

Any suggestions.

Thanks a lot.

Warm Regards,
MAX
 
Yes, it seems clear that the Windows-formatted "UNC" name you are using is not valid for your setup:

E [23/Apr/2008:12:17:42 +1000] print_job: resource name '/printers/\lidcodepRICOH' no good!

The reason you see only one backslash before the lidcodepRICOH is that the first slash in the \\lidcodepRICOH is treated as an escape character and the pair are being interpreted as a single backslash.

You said you tested printing directly from Linux and it worked. What is the name of the printer as defined to Linux? This is the value you should be using in E1 for the printer name. You should use a platform type of HP9000 (covers all unix makers) and the name of the printer as defined to the Linux OS.

Here is a link that I think describes CUPS to Samba to Windows Printer links well. It is for Debian Linux but should apply to RHEL.

http://tldp.org/HOWTO/Debian-and-Windows-Shared-Printing/printing_to_windows.html

The key is that you must specify the printer in E1 in exactly the way that CUPS sees the printer. CUPS is mapping a standard unix printer, for example "printer001", to a Windows shared printer like "\\myserver\printer001" via Samba.

I hope this helps.
 
Thanks a lot for your suggestions.

So, here I am.

I added a new printer in JDE which is of type linux.
And yes, it did print the pdf this time, but with junk things on it. At least the request for print passed on from linux to the windows machine.

so, in JDE the printer is setup of linux type.
In linux, I have set up the printers queue type as "Networked SMB(Windows)" . I found the printer Ricoh Aficio 220 in that, drivers "pxlmono".I have selected it.

Our printer on windows is 2020D with PCL 5e drivers.
There is no "PCL" drivers in the Generic drivers list not PCL 5e drivers in the RICOH list.

The test page is getting printed out properly but still, if we print from thin client, it prints junk things.

Its such a pain in a** to setup things in linux.
smile.gif


The log files does not show any error. So, I guess its now the driver thats misbehaving.

Thanks a ton.

Warm Regards,
MAX
 
Thanks a lot mate.

Finally, I made the printer working properly.

Below is the setup done.

1) On Printer Installed Machine (Windows)
Added a new printer with the same specs as the default one.
But I installed it on a different port this time.

2) In JDE
Added a new printer of type Linux and not NTSVR.

3) In Linux
Added a new printer with the
Queue Type: "Networked Windows (SMB)" &
Driver: "RAW Print Queue" Driver

This finally worked.

Thanks a lot once again for helping me solve this puzzle.

Cheers,
-Max
 
Back
Top