Wednesday, July 13, 2022

lp: Too many active jobs. Pasta: Error: Print failed. Command=lp -c -dPRNUS104 APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1

 Dear Folks.

Recently, we have an issue with one of concurrent program completed warning with below message.


Printing output file.

               Request ID : 122747775

         Number of copies : 1

                  Printer : PRNUS104 

lp: Too many active jobs.

Pasta: Error: Print failed. Command=lp -c -dPRNUS104  /u03/app/***/KIAGI/fs2/inst/apps/KIAGI_korladrbs02/appltmp/pasta117306_0.tmp

Pasta: Error: Check printCommand/ntPrintCommand in pasta.cfg

Pasta: Error: Preprocess or Print command failed!!!

APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1

Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.

Action: Review your concurrent request log file for more detailed information.


We have reviewed the printer on OS level and shows it was enabled.

 lpstat -t |grep PRNUS104

device for PRNUS104: lpd://grprint1/PRNUS_104

PRNUS104 accepting requests since Wed Sep  1 13:46:57 2021


Fix - Printing Stopped Working Error: " Ip: Too many active jobs " (Doc ID 2003436.1)

Edit the MaxJobs setting under /etc/cups/cupsd.conf.

        vi  etc/cups/cupsd.conf

Increase to desired value (By default MaxJobs is set to 500) 

        MaxJobs 700

Cups service needs to be restarted to apply changes.

        /etc/rc.d/init.d/cups restart

If you have already maxjobs is set to high. Just check if you have pending jobs under CPUS and cleared them all and submit the program. It will completed.

In our case, we didn't chang maxjobs. Simply we have cleared old jobs under CPUS.

NONPROD [root@******02 ~]# lpstat -o | wc -l

500

Cleared all 500 pending jobs.

Thanks.