Project:Deployment of Math Search: Difference between revisions

From MaRDI portal
Created page with "The deployment of MathSearch components is currently tricky and has some pitfalls. This page is to collect information to mitigate these. ==== Corrupted index files ==== Updating the indices causes logs on the formulasearch container like these: <syntaxhighlight> 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.cite..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
This page is to collect information to mitigate these.  
This page is to collect information to mitigate these.  


 
==== Live Production development ====
This moved [[Project:Develop and Test Mediawiki Extensions on Production|here]]


==== Corrupted index files ====
==== Corrupted index files ====
Line 20: Line 21:


* Stop formulasearch container to prevent modication of xml-files in database   
* Stop formulasearch container to prevent modication of xml-files in database   
* Go in the shell of mardi-wikibase container
* Go in the shell of formulasearch(!) container
* Change directory to the "my_harvests" folder
* Download valid initial xml-harvest files  with wget [https://www.dropbox.com/s/u3umtxxnshkfm0t/math000000000000_initial.xml?dl=0 https://www.dropbox.com/s/u3umtxxnshkfm0t/math000000000000_initial.xml]  
* Download valid initial xml-harvest files  with wget [https://www.dropbox.com/s/u3umtxxnshkfm0t/math000000000000_initial.xml?dl=0 https://www.dropbox.com/s/u3umtxxnshkfm0t/math000000000000_initial.xml]  
* Remove "_initial"-suffix for the file  
* Remove "_initial"-suffix for the file  
* chmod ugo+rw for the xml file
* Restart formulasearch container
* Restart formulasearch container

Latest revision as of 10:09, 26 October 2023

The deployment of MathSearch components is currently tricky and has some pitfalls.

This page is to collect information to mitigate these.

Live Production development

This moved here

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 formulasearch(!) container
  • Change directory to the "my_harvests" folder
  • Download valid initial xml-harvest files with wget https://www.dropbox.com/s/u3umtxxnshkfm0t/math000000000000_initial.xml
  • Remove "_initial"-suffix for the file
  • chmod ugo+rw for the xml file
  • Restart formulasearch container