(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.