Struggling to get this working on Ubuntu 14.04.

(from github.com/pcolmer)
I’m installed elasticsearch 2.4.2 and fess 10.3.1. I’ve fixed some permission errors but fess itself seems to be failing when I try to access it.

The main error seems to be this one:

2016-12-12 16:43:32,378 [localhost-startStop-1] ERROR Failed to initialize Lasta Di.
org.lastaflute.di.exception.ContainerInitFailureException: Look! Read the message below.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to initialize the container.

[Path]
esclient.xml

[Namespace]
null

[Included by]
esflute_config.xml
esflute_user.xml
esflute_log.xml

                  • */

but I’m struggling to figure out what is causing that or how to fix it.

(from github.com/pcolmer)
It looks like the root cause might be a whole bunch of missing directories and files under /var/lib/elasticsearch/config that is resulting in indexes not being created which is then causing fess to get upset. I’m gradually creating empty files and restarting fess/elasticsearch to clear those individual errors so I’m not sure, at this stage, if that is going to fix it.

(from github.com/marevol)
Please check /var/log/fess/*.log and /var/log/elasticsearch/elasticsearch.log.

(from github.com/pcolmer)
So, as noted in my previous comment, I’m seeing messages like this:

[2016-12-13 09:40:57,865][DEBUG][action.admin.indices.create] [Trump] [fess.20161213] failed to create

[fess.20161213] IndexCreationException[failed to create index]; nested: IllegalArgumentException[IOException while reading keywords_path: /var/lib/elasticsearch/config/da/protwords.txt (No such file or directory)];

So far, I’ve created /var/lib/elasticsearch/config/ar/protwords.txt, ca/protwords.txt, cs/protwords.txt, da/protwords.txt, ja/protwords.txt and an empty /var/lib/elasticsearch/config/synonym.txt. What concerns me is that an opening section of the elasticsearch log file says this:

[2016-12-13 09:40:56,868][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/synonym.txt
[2016-12-13 09:40:56,878][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ar/protwords.txt
[2016-12-13 09:40:56,882][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ca/protwords.txt
[2016-12-13 09:40:56,888][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/id/protwords.txt
[2016-12-13 09:40:56,891][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/pt/protwords.txt
[2016-12-13 09:40:56,895][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ru/protwords.txt
[2016-12-13 09:40:56,899][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/sv/protwords.txt
[2016-12-13 09:40:56,944][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ko/seunjeon.txt
[2016-12-13 09:40:56,950][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/es/protwords.txt
[2016-12-13 09:40:56,954][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/hi/protwords.txt
[2016-12-13 09:40:56,962][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/tr/protwords.txt
[2016-12-13 09:40:56,984][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ja/mapping.txt
[2016-12-13 09:40:56,991][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ja/kuromoji.txt
[2016-12-13 09:40:56,995][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/de/protwords.txt
[2016-12-13 09:40:56,999][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/da/protwords.txt
[2016-12-13 09:40:57,007][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/el/protwords.txt
[2016-12-13 09:40:57,011][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/fr/protwords.txt
[2016-12-13 09:40:57,016][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/hu/protwords.txt
[2016-12-13 09:40:57,028][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/it/protwords.txt
[2016-12-13 09:40:57,032][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/lt/protwords.txt
[2016-12-13 09:40:57,036][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/lv/protwords.txt
[2016-12-13 09:40:57,044][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/no/protwords.txt
[2016-12-13 09:40:57,047][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/ro/protwords.txt
[2016-12-13 09:40:57,051][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/cs/protwords.txt
[2016-12-13 09:40:57,055][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/fa/protwords.txt
[2016-12-13 09:40:57,059][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/fi/protwords.txt
[2016-12-13 09:40:57,063][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Trump] Updated /etc/elasticsearch/nl/protwords.txt

So I’m not sure why the early part of the log is very happy that everything sits under /etc/elasticsearch but the later part of the log is unhappy because it is then looking in /var/lib/elasticsearch/config.

It looks like fess is not working because the indices aren’t being created for these various protword files, which is why I’ve been creating empty ones just to get past these problems but I don’t understand why I need to do this when the documentation makes no mention of that.

(from github.com/marevol)
Did you modify elasticsearch.yml and restart elasticsearch?
http://fess.codelibs.org/10.3/install/install.html#using-rpm-package

(from github.com/pcolmer)
Thank you - no, I didn’t. I have now and I can see that the “Updated” lines in the log now refer to /var/lib/elasticsearch/config, not /etc/elasticsearch.