I have been trying to create new assets (“Thing Asset” type) but for some reason every time I stop the project and then continue the next day, they are not saved.
This infurates me because as long as I keep my session on they work, and I have even prepared a mqtt process with them and works fine. But then, once I stop it, they disappear.
I use the commands:
Initiating it
docker compose up -d
cd C:\Users\Pol\Downloads\openremote-main\ui\app\manager
yarn serve --env managerUrl=https://localhost --env keycloakUrl=https://localhost/auth
Stopping it
docker compose down (and Control + C to stop the yarn)
docker compose up -d
docker compose down # With -v your docker volumes will be removed clearing your data
# You can check if the volumes are still there using `docker volume ls`
docker compose up -d
The data shouldn’t be cleared. The following docker volumes should be present if you’re running the above commands:
docker volume ls
DRIVER VOLUME NAME
local openremote_manager-data
local openremote_postgresql-data
local openremote_proxy-data
If you set the OR_DEV_MODE (or OR_SETUP_RUN_ON_RESTART) environment variable to true the database will be cleared. So you could set them explicitly to false and see if that fixes the issue, although the default docker-compose.yml file shouldn’t cause you’re data to be cleared.
If you’re running the manager through Intelij, it’s likely that your data is being cleared unless you explicitly set OR_SETUP_RUN_ON_RESTART to false.