I'm using the AUR package, default config with opensearch and one directory to be indexed. Constantly getting this error in the syslog, repeating:
Dec 06 17:21:49 aurora systemd[1]: fs2es-indexer.service: Scheduled restart job, restart counter is at 5.
Dec 06 17:21:49 aurora systemd[1]: Started Indexes files into elasticsearch.
Dec 06 17:21:49 aurora python3[2089]: 2023-12-06 17:21:49 Reading config file "/etc/fs2es-indexer/config.yml"
Dec 06 17:21:49 aurora python3[2089]: 2023-12-06 17:21:49 Starting indexing in daemon mode with a wait time of 30m between indexing runs.
Dec 06 17:21:49 aurora python3[2089]: 2023-12-06 17:21:49 Updating mapping of index "files" ...Traceback (most recent call last):
Dec 06 17:21:49 aurora python3[2089]: File "/opt/fs2es-indexer/lib/Fs2EsIndexer.py", line 154, in elasticsearch_prepare_index
Dec 06 17:21:49 aurora python3[2089]: self.elasticsearch.indices.put_mapping(
Dec 06 17:21:49 aurora python3[2089]: File "/usr/lib/python3.11/site-packages/elasticsearch/client/utils.py", line 152, in _wrapped
Dec 06 17:21:49 aurora python3[2089]: return func(*args, params=params, headers=headers, **kwargs)
Dec 06 17:21:49 aurora python3[2089]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 06 17:21:49 aurora python3[2089]: TypeError: IndicesClient.put_mapping() got an unexpected keyword argument 'properties'
Dec 06 17:21:49 aurora python3[2089]: During handling of the above exception, another exception occurred:
Dec 06 17:21:49 aurora python3[2089]: Traceback (most recent call last):
Dec 06 17:21:49 aurora python3[2089]: File "/opt/fs2es-indexer/fs2es-indexer", line 86, in <module>
Dec 06 17:21:49 aurora python3[2089]: indexer.daemon()
Dec 06 17:21:49 aurora python3[2089]: File "/opt/fs2es-indexer/lib/Fs2EsIndexer.py", line 438, in daemon
Dec 06 17:21:49 aurora python3[2089]: self.elasticsearch_prepare_index()
Dec 06 17:21:49 aurora python3[2089]: File "/opt/fs2es-indexer/lib/Fs2EsIndexer.py", line 163, in elasticsearch_prepare_index
Dec 06 17:21:49 aurora python3[2089]: except elasticsearch.exceptions.BadRequestError as err:
Dec 06 17:21:49 aurora python3[2089]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 06 17:21:49 aurora python3[2089]: AttributeError: module 'elasticsearch.exceptions' has no attribute 'BadRequestError'. Did you mean: 'RequestError'?
Dec 06 17:21:49 aurora systemd[1]: fs2es-indexer.service: Main process exited, code=exited, status=1/FAILURE
Dec 06 17:21:49 aurora systemd[1]: fs2es-indexer.service: Failed with result 'exit-code'.
Dec 06 17:22:49 aurora systemd[1]: fs2es-indexer.service: Scheduled restart job, restart counter is at 6.
Dec 06 17:22:49 aurora systemd[1]: Started Indexes files into elasticsearch.
Dec 06 17:22:49 aurora python3[2118]: 2023-12-06 17:22:49 Reading config file "/etc/fs2es-indexer/config.yml"
Dec 06 17:22:49 aurora python3[2118]: 2023-12-06 17:22:49 Starting indexing in daemon mode with a wait time of 30m between indexing runs.
Dec 06 17:22:49 aurora python3[2118]: 2023-12-06 17:22:49 Updating mapping of index "files" ...Traceback (most recent call last):
Dec 06 17:22:49 aurora python3[2118]: File "/opt/fs2es-indexer/lib/Fs2EsIndexer.py", line 154, in elasticsearch_prepare_index
Dec 06 17:22:49 aurora python3[2118]: self.elasticsearch.indices.put_mapping(
Dec 06 17:22:49 aurora python3[2118]: File "/usr/lib/python3.11/site-packages/elasticsearch/client/utils.py", line 152, in _wrapped
Dec 06 17:22:49 aurora python3[2118]: return func(*args, params=params, headers=headers, **kwargs)
Dec 06 17:22:49 aurora python3[2118]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dec 06 17:22:49 aurora python3[2118]: TypeError: IndicesClient.put_mapping() got an unexpected keyword argument 'properties'
Dec 06 17:22:49 aurora python3[2118]: During handling of the above exception, another exception occurred:
Dec 06 17:22:49 aurora python3[2118]: Traceback (most recent call last):
Dec 06 17:22:49 aurora python3[2118]: File "/opt/fs2es-indexer/fs2es-indexer", line 86, in <module>
Dec 06 17:22:49 aurora python3[2118]: indexer.daemon()
Dec 06 17:22:49 aurora python3[2118]: File "/opt/fs2es-indexer/lib/Fs2EsIndexer.py", line 438, in daemon
I'm using the AUR package, default config with opensearch and one directory to be indexed. Constantly getting this error in the syslog, repeating: