IBM Support

ESA: Message CPF2408 - Not authorized to Message Queue QSRV

Troubleshooting


Problem

Message CPF2408 - Not authorized to message queue QSRV found in the QS9PALMON job (and QS9HDWMON, QS9PRBMON, and QS9PRBSND)

Symptom

Reviewing the QS9PALMON (and QS9HDWMON, QS9PRBMON, and QS9PRBSND) joblog, messages CPF2469 and CPF2408 are found as listed:

Message ID . . . . . . . . . :   CPF2469                                    
Message . . . . :   Error occurred when sending message QSRV.                  
Recovery  . . . :   See messages previously listed for a description of the error. Correct the error, and then try the command again.  

Message ID . . . . . . . . . :   CPIEF01                                      
Message . . . . :   Service Agent is analyzing your system product activity log entries.                                                              
Cause . . . . . :   This message will appear every time Service Agent analyzes the system product activity log.  This analysis attempts to predict and  prevent unscheduled outages.                                                

Message ID . . . . . . . . . :   CPF2408                          
Message . . . . :   Not authorized to message queue QSRV.
 

Diagnosing The Problem

In this example, the QSRVAGT user profile was attempting to send a message to the QSRV message queue. The QSRVAGT user profile did not have the proper authority to the QSRV message queue and *PUBLIC is set to *USE
The user profile needs a minimum of *CHANGE authority to send a message to the message queue if *PUBLIC does not have it.

Resolving The Problem

Use the EDTOBJAUT OBJ(QSRV) OBJTYPE(*MSGQ) command to check and update the authority on the QSRV message queue:
EDTOBJAUT OBJ(QSRV) OBJTYPE(*MSGQ) screen
Per security reference manual, for sending messages to a message queue the user needs to have *CHANGE rights.
Can easily fix this through *PUBLIC rights or by authorizing the user that runs these jobs explicitly. The user is QSRVAGT.

Both solutions works:
GRTOBJAUT OBJ(QUSRSYS/QSRV) OBJTYPE(*MSGQ)  AUT(*CHANGE) USER(QSRVAGT)
OR
GRTOBJAUT OBJ(QUSRSYS/QSRV) OBJTYPE(*MSGQ)  AUT(*CHANGE) USER(*PUBLIC)
Note:
If QSRV user profile is not listed, you should use the F6 function key to add the user profile and give it the authority it needs.

To test the resolution, issue GO SERVICE Option 12 and, after a few minutes, check the QS9PALMON joblog for errors.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"Electronic Service Agent","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"5.4.0;6.1.0;7.1.0;7.2.0;7.3.0;7.4.0","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

527407721

Document Information

Modified date:
17 January 2020

UID

nas8N1012883