Employee

How to fix an empty database on startup (reported on Linux)

On Linux the database may be incomplete when you start the software for the first time. Symptom: everything empty in the Studio.
This is due to the mdm.conf file that is not found by the MDM server. Workaround:
- stop jboss
- cd to your jboss home
- mdm.conf is located in bin/:
- strip off the ^M chars (ex: dos2unix bin/mdm.conf)
- copy bin/mdm.conf into jboss home (cp bin/mdm.conf .)
To make sure the database is reinitialized, you can delete everything under server/default/deploy/exist-1.4.0-rev10440.war/WEB-INF/data (except .DO_NOT_DELETE, obviously).
Then start run.sh in jboss home again.
On startup, the eXist database will restore the default files in /data, then MDM will 1) bootstrap its metadata 2) load the default models & containers.

1 REPLY
One Star

Re: How to fix an empty database on startup (reported on Linux)

The effective and useful information which you have shared here regarding the empty database on start-up that is amazing and for any beginner also much useful.