[Phenomenon]
If some of the *.db files under <%RESIN_HOME%>/resin-data/ are corrupted and inconsistencies occur, Resin may not start properly.
Also, if there is an inconsistency, it may be restarted by Resin's health check.
[Occurrence condition]
This occurs only when accessing corrupt data in the *.db file when Resin starts.
If the corrupted part is not accessed when starting, Resin starts properly.
[Cause]
This is because some of the *.db files are corrupted and inconsistent.
If an inconsistency occurs, the following log will be output:
・ WarningService: Shutdown: caucho.database.corrupt[****/resin-data/app-0/XXXX/*.db]
Table[data:6,****\resin-data\app-0\XXXX/*.db]: inode block 1ab8 has invalid block code (X) expected (X)
There are mainly two causes of file corruption.
1. If you are using old Resin
The internal database of Resin is being improved with each version upgrade. In particular, Resin 4.0.63 has undergone significant modification.
Therefore, if you are using an older version, there is a high risk of your *.db files becoming corrupted.
2. Resin is not stopped properly
If the program is forced to close, the *.db file may become corrupted, causing inconsistencies.
Example:
・ Forcibly stop the Java process (example, kill command)
・ If the stop process is executed by the OS before Resin is stopped
If Resin is not stopped properly, the following log will be output when it starts.
・ Table[stat_name:2,d:\resin-pro-4.0.XX\resin-data\app-0\XXXX\*.db] validating indexes due to unclean shutdown.
This log indicates that Resin did not shut down successfully, so it is verifying the consistency of the internal database.
[Recommended measure to prevent the file corruption]
To prevent this, please do both of the following:
1. Update to the latest version of Resin
Resin's internal database is improved with each version update.
Resin 4.0.63 in particular has made significant changes.
As of October 2025, the latest version is Resin 4.0.67.
Therefore, we recommend using the latest version whenever possible.
2. Normal shutdown of Resin
To stop Resin, please follow the official instructions below.
■ intra-mart Accel Platform Setup Guide - 6. Start / Stop Web Application Server
https://document.intra-mart.jp/library/iap/public/setup/iap_setup_guide/texts/start_end/index.html
[What to do when this issue occurs]
Delete the corrupted *.db file under <%RESIN_HOME%>/resin-data/.
Please note the following:
・ Make sure to delete ~data.db and ~name.db as a pair. (example: log_data.db and log_name.db)
If you delete only one, Resin will not start.
- Please make sure to do this with Resin stopped.
For information on the impact of deleting files under <%RESIN_HOME%>/resin-data/, please refer to the FAQ below.
- The effect of deleting the directory of %RESIN_HOME%/resin-data/app-0/log/
https://global.intra-mart.support/hc/en-us/articles/13306452069529
- Is there anything I should be careful about when deleting files under the resin-data directory?
https://global.intra-mart.support/hc/en-us/articles/27477404128281-Is-there-anything-I-should-be-careful-about-when-deleting-files-under-the-resin-data-directory
-- Target ---------------------------------------------------------------------
iAP/Accel Platform/All Updates
--------------------------------------------------------------------------------
FAQID:1412
Resin does not start or keeps restarting. I would like to know the cause and workaround.