Could not print report to primary printer - Report not being printed

Hey guys,
I'm trying to print a report in Perspective, but I'm getting the error below:

14:25:40.581 [AWT-EventQueue-0] ERROR com.inductiveautomation.ignition.client.util.gui.ErrorUtil - Attempted Action could not complete.

ERROR: Could not print report to primary printerjava.awt.print.PrinterIOException

Caused by: java.io.IOException: Cannot run program "/usr/bin/lpr": error=2, No such file or directory

at java.base/java.lang.ProcessBuilder.start(Unknown Source)

at java.base/java.lang.ProcessBuilder.start(Unknown Source)

at java.base/java.lang.Runtime.exec(Unknown Source)

at java.base/java.lang.Runtime.exec(Unknown Source)

... 63 common frames omitted

Caused by: java.io.IOException: error=2, No such file or directory

at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)

at java.base/java.lang.ProcessImpl.(Unknown Source)

My gateway is installed on Ubuntu server. The network printer is installed properly using CUPS service. I can print a local file with no issues. I also see the printer in the report.
Any idea why it's not running CUPS to print the report?

image

Thanks!

You did this part on the gateway? (Your error suggests that the gateway doesn't have CUPS installed at all.)

1 Like

I've run into the same issue. I do have CUPS installed on the gateway. I checked, and I don't have lpr in /usr/bin/. The printer drivers are installed, and the printer shows up in Ignition, I just can't print.

In my Kubuntu workstation, /usr/bin/lpr is provided by the cups-bsd package.

1 Like

After installing cups-bsd, I don't get the error message anymore, but nothing is printing.

I installed the drivers for the printer and setup cups like so

 $ sudo lpadmin -p SILO_A -E -v ipp://<ip>/ipp/print -m sato/sato-cl4nxplus-203dpi.ppd

Any other advice?

Not off the top of my head, sorry.

Try to access the webpage for cups:
http://[your gateway IP]:631

It looks like this printer has a bad configuration.

1 Like

I finally got the webserver going so I could look at it. I'm still trying to get it working, as I'm getting status: bad filter.
I'll report back what I find out.

I see you also have a Sato label printer. This is how my Sato is set and printing:

image

1 Like