Cache index file Expansion and file repair

Index File Repair

When the following message appears in the /usr/local/oredge-node/logs/error.log error log, it indicates that the index file is corrupted:

"cache index unable to seek cursor: MDB_CORRUPTED: Located page was wrong type"

In this case, the index file needs to be deleted. Please note that deleting the index file will make the cache purge function for cached files ineffective.

This issue is usually caused by unexpected shutdowns (such as sudden power outages) preventing index file data from synchronizing to disk.

Delete Index File and Restart OpenResty Edge Node

  1. Delete the old index file:
  sudo rm -fr /usr/local/oredge-node/data/cache_index.lmdb/*
  1. Restart OpenResty Edge Node:
  systemctl start upgrade-oredge-node

By following these steps, you can effectively expand the cache index file and repair related issues, ensuring the regular operation of OpenResty Edge Node.