Data is not saved when restarting/rebuilding the application/database

If your data is not saved when you restart/rebuild the project, make sure you save it to the /data directory.

This directory was specially created by us so that when restarting projects, rebuilding, etc. all your data were safe and accessible.

In addition, we save the data stored in /data in three copies on different cluster nodes, additionally making regular backups, which reduces the risk of their irretrievable loss.

If you are not comfortable using the /data directory, you can usually change it in the amverum.yaml file. For example:

# part amverum.yml
run:
  persistenceMount: /var/myapp/data

Important

The data folder in the project root and the /data directory are different directories.

You can check that the save is going to /data by going to the “data” folder on the “Repository” page.

For ease of testing, you can create a /data directory on your local computer.

When deploying entirely using amverum.yaml, we do not recommend setting the value of run.persistenceMount to /app or its subfolder: this may lead to incorrect behavior.

If you are saving a SQLite database to /data, please read instructions.

Clue

If you can’t figure it out, write to support support@amverum.com. Please immediately indicate your user and project name. We will try to help.