KB Article #177625

traffic monitor journal write failed: invalid index file

Problem

-- The following error could happen in loop in API Gateway logs:

ERROR 04/Jan/2016:10:11:39.101 [6f9e:000000000000000000000000] traffic monitor journal write failed: invalid index file 5946: cannot open index file 5946


Resolution

- This means that the Traffic Monitor data in /apigateway/groups/group-x/instance-y/conf/opsdb.d got corrupted somehow. There are several ways this can happen: crashes, someone deleting old files from this directory because it has grown too large, etc.

NOTE: As the index of the Traffic Monitor database is corrupt, the following step will clear all Traffic Monitor data.


- To get ride of this problem, one solution is to purge the data:

* Stop API Gateway instance

* Remove content of /apigateway/groups/group-x/instance-y/conf/opsdb.d/ folder

* Restart API Gateway instance

Content folder will be recreate at API Gateway instance restart. Doing this will blank out the data seen in Traffic Monitor.