IBM Support

MGSHTP8424 - "Error occurred opening log file" Received in ADMIN Server's job log.

Troubleshooting


Problem

This document will discuss an issue where a MSGHTP8424 - "Error occurred opening log file" occurs in an ADMIN server job log preventing the ADMIN job with function PGM-QZSRLOG from starting.

Resolving The Problem

Problem

When starting the ADMIN Server, the ADMIN job with function PGM-QZSRLOG will not start. When reviewing the ADMIN job logs, the following message or one very similar is found for the ADMIN job attempting to start the server logging job:

HTP8424    Diagnostic              10   12/22/11  14:34:26.097251  QZSRAPR      QHTTPSVR    *STMT    QZSRCORE    QHTTPSVR    *STMT
               From module . . . . . . . . :   QZSRSNDM
               From procedure  . . . . . . :   sendMessageToJobLog_CCSID
               Statement . . . . . . . . . :   27
               To module . . . . . . . . . :   ZSRVMSG
               To procedure  . . . . . . . :   send_log_open_failure_msg
               Statement . . . . . . . . . :   15
               Message . . . . :   Error occurred opening log file
                     /QIBM/UserData/HTTPA/admin/logs/error_log.Q111122200.  No such path or directory.

This message indicates the ADMIN logging job was unable to create and open the error log file required for the job to run. Because it is unable to create and open the log file, the job fails to start.

Resolution

The issue occurs because the /QIBM/UserData/HTTPA/admin/logs/ directory does not exist on the system. Because the directory does not exist, the error log file cannot be created and opened. To resolve the issue, execute the following CL commands to create the directory and change the necessary authorities:

MKDIR DIR('/QIBM/UserData/HTTPA/admin/logs')
CHGOWN OBJ('/QIBM/UserData/HTTPA/admin/logs') NEWOWN(QSYS)
CHGAUT OBJ('/QIBM/UserData/HTTPA/admin/logs') USER(QTMHHTTP) DTAAUT(*RWX) OBJAUT(*ALL)
CHGAUT OBJ('/QIBM/UserData/HTTPA/admin/logs') USER(QWEBADMIN) DTAAUT(*RWX) OBJAUT(*ALL)

After executing the above commands, restart the ADMIN server using the following commands:

1. ENDTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN)
2. Wait for all of the ADMIN jobs to end.
3. STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN)

The ADMIN job with function PGM-QZSRLOG should now start successfully.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

621385306

Document Information

Modified date:
18 December 2019

UID

nas8N1011220