Project:Deployment of Math Search
From MaRDI portal
The deployment of MathSearch components is currently tricky and has some pitfalls.
This page is to collect information to mitigate these.
Live Production development
- ssh tunnel to mardi01
- server settings in Intellij Idea sync files to mardi01 (within ide folder)
- override file which mounts the specified folder to the MathSearch extension folder
- override folder should be mounted by cron already, can be renamed or moved
Corrupted index files
Updating the indices causes logs on the formulasearch container like these:
avax.xml.xquery.XQException:
BXCE001 - Stopped at ., 588/76:
[XUDY0027] Insert target is an empty sequence.
at com.formulasearchengine.mathosphere.basex.Client.updateFormula(Client.java:448)
at org.citeplag.domain.MathUpdate.run(MathUpdate.java:60)
at org.citeplag.controller.BaseXController.update(BaseXController.java:212)
This indicates that the current xml-index database is non-existant or corrupted.
Here are steps to solve the issue at the moment.
- Stop formulasearch container to prevent modication of xml-files in database
- Go in the shell of mardi-wikibase container
- Download valid initial xml-harvest files with wget https://www.dropbox.com/s/u3umtxxnshkfm0t/math000000000000_initial.xml
- Remove "_initial"-suffix for the file
- Restart formulasearch container