Steps to take if user cant print: Find out what printing method they use. The 2 most common ones are:
Java Printing, Google Cloud print and LPD printing via windows.
Before anything, make sure they can print a windows test page. Not out of word or excel, it has to be a windows test page. If they cannot print a windows test page, they need to fix it until they can. Next, just try to cupsenable the printer (use texaad and prnaad to find out what printer they are using. DO NOT ASSUME ANYTHING. You can also use teaad on their screen directly.). These will take care of most issues. If that does not fix it, depending on how they print, do one of the following:
print type
In prnaad: if the System Printer Name starts and ends with a slash, it is Java printing. If it does not, it is using cups.
If you determine it is using cups, run
lpstat -t | grep <printername>
look at the "device for" line. it should say:
socket:// <- Network printer lpd:// <- LPD via windows gcp:// <- google cloud print
Java Printing:
- Run the crecompsw. press stop then start. This will fix 99% of all problems.
- Otherwise ask customer to restart the whole computer. There may be a memory leak on the Java code that will affect computers that have a small amount of memory.
- the window printer can not be a shared printer from other computer, the computer has to have direct control to the printer.
- some time crecompsw cannot connect to the http, and will not be able to fetch job due to httpd not running on the server , check the server run as root
service httpd status if its not running then run service httpd start of if its running but not porper service httpd restart #sometime httpd cannot be started and complaining port already in use #this is because httpd has go defunc and did not release the port #in this case find and kill all the httpd by either killall httpd #or ps aux | grep httpd #then kill it manually #some time may need -9
Java printing issue on Window 11
on window 11 we have meet with a issue which the spooler will immediatly delete the print job after java printing added.
in crecompsw the log on page if set to log on as local service, then java printing will fail to locate the printer and you will see a error message in the err log saying invalid printer name.
but if you choose local system in the log on page the print job will get spooled and get deleted.
i guess this is to do with security and permission.
when i run the java prining service in cmd via the following command under a know user the whole thing work
"C:\Program Files\Java\jre1.8.0_471\bin\java.exe" -cp C:\crecomps\commons-logging-1.2.jar;C:\crecomps\pdfbox-2.0.9.jar;C:\crecomps\fontbox-2.0.9.jar;C:\crecomps\crecomps.jar com.creativecomputing.DeviceService "start&URL=http://printing.olbis.com.au/printers/deviceservice.cgi&SECS=1&CENV=/u/cc/&CP_DUMMY=Brother HL-L6200DW series Printer (Tray 1)"
Google Cloud print:
Using Chrome on the client's computer go to chrome://devices. Close the browser. (Do NOT click on any button, specially disconnect printers.)
Otherwise on the server they run Control on, run (as root) the following:
/usr/share/cloudprint-cups/setupcloudprint.py
Just press enter on everything until you get a numbered list of printers for the company. Choose the printer and specify the correct prefix
Add all Google Cloud Print printers from printerbndvic@gmail.com to CUPS (Y/N)? Not adding printers automatically 1) Warehouse 2) Preston 3) Pakenham 4) Amy 5) Cranbourne 6) Save to Google Drive 7) Anita 8) Brother HL-3170CDW series 9) Brother HL-3170CDW series Printer 10) Brother MFC-L2713DW Printer 11) Brother MFC-L2713DW Printer (Copy 2) 12) Brother PC-FAX v.3.2 13) Brother PC-FAX v.3.2 (Copy 1) 14) Fax 15) Microsoft Print to PDF 16) Microsoft XPS Document Writer 17) Nunawading 18) OKI C301 19) PaperPort Image Printer 20) PaperPort Image Printer 21) Send To OneNote 2016 22) Send To OneNote 2016 23) SmarThru Office PC Fax Add printer (1-27, 0 to cancel)? 1 Adding Warehouse Use a prefix for name of printer (Y/N)? y Prefix ( e.g. GCP- )? bndv- Added bndv-Warehouse
Press enter all the way until the prompt is back.
lpd printing
LPD Printing via windows:
From the server they connect to, find out the details of their printer:
lpstat -t
Look at the important details (It's the line that starts with device for)
device for x2x-A2-receipt: lpd://10.14.0.243/CITIZEN CT-S310II (Copy 1) device for x2x-GC-receipt: lpd://10.14.0.223/CITIZEN CT-S310II device for x2x-GV-receipt: lpd://10.14.0.251/CITIZEN CT-S310II device for x2x-HS-receipt: lpd://10.14.0.166/CITIZEN CT-S310
Then for example if we want to check x2x-A2-receipt
telnet 10.14.0.243 515 Trying 10.14.0.243... Connected to 10.14.0.243. Escape character is '^]'.
Type Ctrl-] and then close <enter>
- If you cannot connect to port 515, it could be one of 3 reasons:
- Their VPN is not connected (either openvpn or windows native vpn)
- They have a third party firewall that is blocking port 515. In this case, they can temporarily disable their firewall to get printing going, but let them know that this cannot be a permanent solution.
- Their LPD service is not running. Right click on their "computer" and choose manage. Go to Services and look for "LPD Printing", "TCP/IP Printing" or "Unix Printing for Windows". They are different names for the same service. Right click on it and go to "properties". Make sure it is set to "Automatic". Click on Stop, and then Start. (if this doesn't work, ask them to restart the computer, as long as it's set to "Automatic" it will automatically run).
- If you can connect to port 515, go to their devices and printers (under Control Panel) and verify that the Printer name in your lpstat command above matches what is in their computer. Often, customers don't know that the name has to be the same or they delete a printer thinking it's not needed. Rename it back to what it says in your lpstat command and that should fix it.
4, if printer list was missing from a printer dialogue , popup when press the printer button on the report, its because /etc/printcap is blank,
add a dummy printer using system-config-printer then service cups restart. will fix this.
spooled printers
when you see a warning error flashing on the crecom program screen when the customer try to print, which say spooler error 256
and spooler id shared amount all printers,
it mean the spooler is full , just run
lprm -P<system printer name> -
to remove all pending print job
