lp and lpr return unauthorized error in linux cups printing on cups server

  
Resolved printing lp and lpr return unauthorized error and MSG-00002: reject in Linux CUPS print server.
Many times Invoice printing failed as lp: Unauthorized below while ebs user’s trying to print from oracle application.

Here I will show how to resolve lp: Unauthorized issue in CUPS Server printers.conf setting.


Error showing in ebs Request log.

APPLLCSP Environment Variable set to :
 Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_INDIA.UTF8

'.,'
Enter Password:
MSG-00002: reject

Report Builder: Release 10.1.2.3.0 - Production on Mon Sep 11 11:48:06 2017

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
Executing request completion options...

+------------- 1) PRINT   -------------+

Printing output file.
               Request ID : 30498579    
         Number of copies : 1            
                  Printer : PRODPRN

lp: Unauthorized
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.
+--------------------------------------+

Solution:-

After that I check the printers.conf file in linux print server to find out root cause. In /etc/cups/printers.conf AuthInfoRequired pointing negotiate.

cat printers.conf|grep AuthInfoRequired

#AuthInfoRequired negotiate

We need to remove AuthInfoRequired negotiate from /etc/cups/printers.conf and stop and start or simply restart cups service as below

#vi /etc/cups/printers.conf

# service cups restart
Stopping cups:                                             [  OK  ]
Starting cups:                                             [  OK  ]

Verify whether cups running.

# service cups status
cupsd (pid  11320) is running...

Again check it in printers.conf file, If it will show in /etc/cups/printers.conf remove them accordingly .

# cat printers.conf|grep negociate




2 comments:

Epson Contact said...

If you need to add Epson xp 235 wifi setup to a wireless network then in that case on the printer machine press the home button further press the arrow on the printer then as you see the wi- fi set up option press the OK button. If in case you are still in need of more information or help then ask for it from the experts.

Marry Cotson said...


Really it is very great information that you have shared and thanks for sharing the information with us.
Lexmark support
Lexmark printer support
Lexmark printer customer service
Lexmark printer technical support

Post a Comment

Thanks for reading till end. I hope this will help you more to improve your knowledge.

Now it's your turn!

What do you think? Share your experience in the comments box and subscribe for more interesting post.