LXC Fess Search Engine Install
On the LXC Host System
Checking the value vm.max_map_count use:
When the value is less than 262144, modify file /etc/sysctl.conf
and add or modify a line like this:
To change the setting immediately without rebooting use the following command:
Create Container
To create a container and use the following command:
When asked for a distribution, select ubuntu and then noble.
Start and attach to the container:
Install OpenSearch
Install the required Java version first.
Sanity check on the Java version.
Download OpenSearch deb package to the /root/download directory.
mkdir donload && cd download
wget https://artifacts.opensearch.org/releases/bundle/opensearch/3.5.0/opensearch-3.5.0-linux-x64.deb
Set the required for the initial admin password.
Now install OpenSearch.
Call the following command to reload the systemd daemon.
To prevent the following error, the service needs to be modified or amended.
Feb 23 13:14:15 search (mkdir)[4230]: opensearch.service: Failed to set up mount namespacing: /sys/fs/cgroup/cpu: No such file or directory
USe the service edit command to modify the service.
Past the following content into the editor.
[Service]
# Disable namespace isolation and cgroup protections that fail in LXC
ProtectControlGroups=no
ProtectKernelModules=no
ProtectKernelTunables=no
PrivateTmp=no
RestrictNamespaces=no
# Optional: ensure it doesn't look for missing cgroup paths
ReadOnlyPaths=
Again, call the following command to reload the systemd daemon.
Install the required opensearch plugins.
/usr/share/opensearch/bin/opensearch-plugin install org.codelibs.opensearch:opensearch-analysis-fess:3.5.0
/usr/share/opensearch/bin/opensearch-plugin install org.codelibs.opensearch:opensearch-analysis-extension:3.5.0
/usr/share/opensearch/bin/opensearch-plugin install org.codelibs.opensearch:opensearch-minhash:3.5.0
/usr/share/opensearch/bin/opensearch-plugin install org.codelibs.opensearch:opensearch-configsync:3.5.0
Edit file /etc/opensearch/opensearch.yml and add the following lines.
configsync.config_path: /var/lib/opensearch/data/config/
plugins.security.disabled: true
discovery.type: single-node
Enable and start opensearch service.
Check the status of OpenSearch and the log information when needed.
Install Fess
Download OpenSearch deb package to the /root/download directory.
Install the Fess Debian package.
Configure Fess to connect to OpenSearch and edit file /usr/share/fess/bin/fess.in.sh.
Ensure these variables point to the correct locations:
Note: Must ve exact like this otherwise Fess will not work and a 404 error will be returned.
Enable and start Fess service.
For the web-interface access the administration console at http://<your-ip>:8080/admin/.