Description
Describe the bug
I encountered an issue where operations and agents disappear from the Caldera UI after a restart, even though the execution results are stored in caldera/data/results/
To Reproduce
Steps to reproduce the behavior:
- Successfully deploy an agent and execute an operation (confirmed that results are displayed in the UI).
- Restart Caldera.
- Upon restart, the agent and operation from that day are no longer visible in the UI.
- Check caldera/data/results/ and confirm that the execution results exist.
Expected behavior
After restarting Caldera, the UI should still display the operations and agents, as long as the execution results exist in data/results/.
Desktop (please complete the following information):
- OS: Ubuntu
- Browser: Chrome/Firefox
- Version 4.2.0
Additional context
Troubleshooting Attempts which failed:
• Changed file ownership and permissions of data/results/. (via chown & chmod commands)
• Modified system and file timestamps. (since we thought it might be a new bug recently)
• Attempted to overwrite data/results from a previously successful operation with our new result. (since we thought it might be a bug which the Operation ID couldn't link to the new results)
p.s. We deleted all data in data/results/, but Caldera still displayed old results, suggesting it might not be reading from data/results/.
Request for Help:
Is there another directory or database where Caldera stores operation data? How can we ensure that previously executed operations are properly loaded after a restart?