Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Issue

There may be no new Events displayed in the Zend Server User Interface.  Or, it may not be possible to view Events in the Zend Server User Interface.  Instead, an error similar to this might be seen:

Info
iconfalse
Zend Monitor can not access the issues database

Environment

Any version of Zend Server for IBM i running on any version of IBM i.

Resolution

The Monitor data is kept in a SQLite data base file.  This file may become corrupt. It can be regenerated by removing or renaming the file, cycling the Monitor daemon, and then restarting PHP. Note that all old events will be lost. This procedure will make your web site unavailable for a few minutes, so please schedule for a suitable time when maintenance can be done.

Step 1: Delete or rename this file:


Info
iconfalse

NOTE: If there is a file named monitor.db-journal in the same directory, please also delete this file.


For Zend Server version 9 or higher, this is the file:


Info
iconfalse
/usr/local/zendphp7/var/db/monitor.db 


For Zend Server version 6-8.5, this is the file:


Info
iconfalse
/usr/local/zendsvr6/var/db/monitor.db 


For Zend Server version 5, this is the file:


Info
iconfalse
/usr/local/zendsvr/var/db/monitor


This is easiest to do using iSeries Navigator, the Zend Studio Remote Systems perspective, or a mapped network drive.


Step 2: Stop and start the Monitor daemon. From a 5250 command line:


For Zend Server 9 or higher:


Info
iconfalse
GO ZENDPHP7/ZSMMENU 


For Zend Server 6-8.5:


Info
iconfalse
GO ZENDSVR6/ZSMMENU 


For Zend Server 5:


Info
iconfalse
GO ZENDSVR/ZSMMENU 


Use option '2. Stop Monitor' Then, on the command line:


For Zend Server 9 or higher:


Info
iconfalse
WRKACTJOB SBS(ZENDPHP7) 


For Zend Server 6-8.5:

Info
iconfalse
WRKACTJOB SBS(ZENDSVR6) 


For Zend Server 5:


Info
iconfalse
WRKACTJOB SBS(ZENDSVR) 



Make sure there are no jobs named 'ZSMONMNG'. Use F5 to redisplay until the jobs are gone. Then use F12 to return to the menu.


Use option '1. Start Monitor' Then, again from the command line:


For Zend Server 9 or higher:


Info
iconfalse
WRKACTJOB SBS(ZENDPHP7) 


For Zend Server 6-8.5:

Info
iconfalse
WRKACTJOB SBS(ZENDSVR6) 


For Zend Server 5:


Info
iconfalse
WRKACTJOB SBS(ZENDSVR) 


Verify these two jobs appear (use F5 to redisplay until they do):


Info
iconfalse
ZSMONMNG     QTMHHTTP    BCI      .0  PGM-watchdog   
ZSMONMNG QTMHHTTP BCI .0 PGM-MonitorNod


Step 3: Verify the monitor file now exists. 


For Zend Server version 9 or higher:


Info
iconfalse
/usr/local/zendphp7/var/db/monitor


For Zend Server version 6-8.5:


Info
iconfalse
/usr/local/zendsvr6/var/db/monitor


For Zend Server version 5:


Info
iconfalse
/usr/local/zendsvr/var/db/monitor


Step 4: Restart PHP.

In the Zend Server User Interface in your browser, use the 'Restart' button that appears in the upper right corner of most displays (bottom right for Zend Server 5).


After PHP restarts, there may not be any events to display. New events will begin to accumulate as they occur.