You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Published projects not found when server is freshly launched #134
After publishing projects in the application, I expected them to persist across server restarts (since the app is running in Docker). However, when I freshly launch the server, none of the previously published projects are found. It looks as if the published projects are not being stored in a persistent location inside the Docker container.
Please provide a fix or guidance on how to properly persist published projects.
From what I can tell, this is because the attached database gets wiped every time you restart the server, as can seen by the
Hibernate: drop table ...
Hibernate: create table ...
in the logs.
And this is due to the hibernate.hbm2ddl.auto property set to create-drop inside conf/META-INF/persistence.xml. That property is propagated by its persistence-unit with name sysml2-hibernate in
jpa.default = sysml2-hibernate
in conf/application.conf.
Setting the property value to update worked for me.
Additionally, the data in the postgresql Docker container would be cleared when it is deleted. To persist this, start the Docker container with a named volume (extra -v argument) like this:
where the sysmlv2_db is the name of the persistent Docker volume that will be created and mounted to the container (can be changed), and /var/lib/postgresql/data is where postgresql stores its data (shouldn't be changed).
Activity
athreyrk commentedon Apr 1, 2026
From what I can tell, this is because the attached database gets wiped every time you restart the server, as can seen by the
in the logs.
And this is due to the
hibernate.hbm2ddl.autoproperty set tocreate-dropinsideconf/META-INF/persistence.xml. That property is propagated by itspersistence-unitwith namesysml2-hibernateinin
conf/application.conf.Setting the property value to
updateworked for me.athreyrk commentedon Apr 2, 2026
Additionally, the data in the
postgresqlDocker container would be cleared when it is deleted. To persist this, start the Docker container with a named volume (extra-vargument) like this:where the
sysmlv2_dbis the name of the persistent Docker volume that will be created and mounted to the container (can be changed), and/var/lib/postgresql/datais wherepostgresqlstores its data (shouldn't be changed).