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

**URL:** <https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [May 25, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190 "2023-05-25T18:33:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![augusto.junior](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@augusto.junior](https://forum.inductiveautomation.com/u/augusto.junior)\
**Post date:** [May 25, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/1 "2023-05-25T18:33:33Z")

</div>

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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7b6312a870e27593ebec75817df28f6a5f4a9b14.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 25, 2023, 6:35pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/2 "2023-05-25T18:35:35Z")

</div>

> [@augusto.junior](#):
>
> The network printer is installed properly using CUPS service.

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

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 23, 2024, 6:24pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/3 "2024-07-23T18:24:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 23, 2024, 6:26pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/4 "2024-07-23T18:26:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 23, 2024, 6:42pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/5 "2024-07-23T18:42:32Z")

</div>

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

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

```

Any other advice?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 23, 2024, 7:03pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/6 "2024-07-23T19:03:52Z")

</div>

Not off the top of my head, sorry.

---

<div class="post-metadata">

**Author:** ![augusto.junior](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@augusto.junior](https://forum.inductiveautomation.com/u/augusto.junior)\
**Post date:** [July 23, 2024, 7:18pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/7 "2024-07-23T19:18:04Z")

</div>

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

It looks like this printer has a bad configuration.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 23, 2024, 8:41pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/8 "2024-07-23T20:41:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![augusto.junior](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@augusto.junior](https://forum.inductiveautomation.com/u/augusto.junior)\
**Post date:** [July 24, 2024, 12:20pm UTC](https://forum.inductiveautomation.com/t/could-not-print-report-to-primary-printer-report-not-being-printed/74190/9 "2024-07-24T12:20:21Z")

</div>

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

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd8d55bc6175ddc3e35e90e976bfef2c0fce5d73.png)
