Embedded Fess Site Search Form does not find Fess server

Hello,
my VPS site (at tunearch.org) is running Mediawiki [1.34.0] and using Elasticsearch as a search engine (a single standalone node)
These are my relevant configurations items

  • Ubuntu0.18.04.3
  • Elasticsearch 6.8.8
  • Fess-12.7.0
  • JVM 11.0.8

Now… after three days of struggling with installation and configuration, search in google and the English:Fess Forum at CodeLIbs I realised that:

  1. If I install with dpkg —install fess-12.7.0.deb (or any other rel.) Fess doesn’t run despite every configuration attempt: I swear, I’ve tried them all (at least all the ones I could find on the forum).
    There was no way I could make it work. I avoid to post here the useless copies (for the sake of this post, of course) of fess and server_0 logs that always report the same kind of WARNs ERRs already reported by the members of this community, e.g.:
  • 2020-04-19 07:58:54,434 [main] WARN fess_indices/fess.json is not found.
    • despite it is in the correct place
  • (“java.io.FilePermission$ “/var/lib/elasticsearch/config/ja/mapping.txt” “read”)
    • despite it is readable, writable, executable by everyone (owned by elasticsearch user)
  • WARN fess_indices/fess/alias is not found.
    • despite it is in the right place
  • org.lastaflute.di.exception.ContainerInitFailureException: Look! Read the message below.
    • the (at least for me) obscure Failed to initialize the container.
  • etcetera….
  1. BUT
    • If I download the 12.7.0.zip file,
    • uncompress it in (lets say) /opt
    • modify the fess.in.sh to
      a) uncomment
      - ES_HTTP_URL=http://localhost:9200
      - FESS_DICTIONARY_PATH=/var/lib/elasticsearch/config/
      b) BUT NOT #ES_TRANSPORT_URL=localhost:9300 (otherwise I get the same WARNs and ERRs as above…)
      c) change the /opt/fess-12.7.0/lib/classes/tomcat_config.properties to bind the internet address of my VPS
    • and run bin/fess (from /opt/fess-12.7.0/)
      I get Fess up and running with the following warnings at stderr
      • OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
      • Warning: Nashorn engine is planned to be removed from a future JDK release
      • WARNING: An illegal reflective access operation has occurred
      • WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/opt/fess-12.7.0/app/WEB-INF/lib/groovy-2.5.7.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      • etc…
        I can manage (admin) FESS from the public Internet at http://tunearch.org:8080/admin
        I can see (and manage) the elasticsearch indices (see below)

I can create crawlers
BUT i cannot embed the Fess Site Search… or better I can embed the HTML Standard(Search Form/Result) page in my wiki but it always respond with “Server not found” with any query (right or wrong) as you can see below, despite the script is (it seems to me) correct:

<html>

<script>
  (function() {
    var fess = document.createElement('script');
    fess.type = 'text/javascript';
    fess.async = true;
    // fess.src is URL for FSS JS
    fess.src = '//tunearch.org/w/JavaScript/fess-ss.min.js';
    fess.charset = 'utf-8';
    fess.setAttribute('id', 'fess-ss');
    // fess-url is URL for Fess Server
    fess.setAttribute('fess-url', '//tunearch.org:8080/json');
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fess, s);
  })();
</script>

<fess:search></fess:search>

</html>


Try yourself at https://tunearch.org/wiki/TTA:EveryTune

Any idea why the script does’n find the fess server ?
Am I missed (or misunderstood) something?
Please forgive this somewhat verbose post.

Thanks.

Silkwood.

Did you install plugins? see installation guide.

Absolutely yes.
All the plugins (the correct 6.8.0 plugins) were installed as well as the configsync.config_path: /var/lib/elasticsearch/config was added to the /etc/elasticsearch/elasticsearch.yml confg file.
I’ve restarted (systemctl restart elasticsearch.service) the elasticsearch node before to restart (/opt/fess-12.7.0/bin/fess) Fess.

Still, I cannot make the search form to find the Fess Server.

The javascript (fess-ss.min.js) is in the correct place, otherwise, I believe, I cannot see the search form; am I right?
But it cannot see the server. Why?

Now, if you search for “Northumbrian” at http://tunearch.org:8080 you get

  • Results 1 - 10 of 24 for Northumbrian (1.33 sec)

so, the Fess Server is working fine.
What am I missing???

Regards.

I think it’s better to reinstall it… and then check log files.