ILIAS-7-Install-Tutorial for Ubuntu 20.04

Manual Indexing

The following script was written because the lucene-index broke down sometimes. I realy recommend to run this script by cron every day.

  • nano /opt/scripts/fixlucene
  • Copy the following script in
    • Change line 2-4 if necessary
    • chmod +x /opt/scripts/fixlucene
    • Start script: /opt/scripts/fixlucene
    • The script runs in the background. Have a look at the cpu load with htop - if it is high, the script is running. After that ILIAS should be able to index itself. It`s just a little start-up aid.
    • You can monitor the size of the folder that should increase while indexing:
      • du -h /opt/iliasdata/lucene/info_8747
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
client_nic=info_8747
ilserver=/var/www/html/ilias/Services/WebServices/RPC/lib
config=/opt/iliasdata/lucene
#############################################

rm -R ${config}/${client_nic}
#mkdir ${config}/${client_nic}

#/etc/init.d/ilserver stop
#sleep 5
#/etc/init.d/ilserver start
#sleep 5

echo Manuelles Indizieren
echo "Open htop. If CPU load is high, indexing is still in progress. May take 3-5 minutes..."
index=createIndex

#Line to update the Lucene-Index

/usr/bin/java -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -jar ${ilserver}/ilServer.jar ${config}/ilServer.properties ${index} ${client_nic} &
  • Open htop
  • Press F4
  • Type in: lucene
  • You should see the process
You can also run this script by cron at midnight or something - I do this in my server. Just add this line in your crontab:
  • nano /etc/crontab
  • Add the follwing 2 lines: 

#Fixlucene
30 3    * * *   root   /opt/scripts/fixlucene



No comment has been posted yet.