๐ ProcessController: /usr/bin/python3: Error while finding module specification for 'elastalert.create_index' (ModuleNotFoundError: No module named 'elastalert')
Hi gyus,
I am sending this as a question since I am not sure wether is a bug or a step not done in the installation. Whenever I do the docker-compose up the process will automatically stop due to the following error:
elastalert_1 | 13:52:36.541Z ERROR elastalert-server:
elastalert_1 | ProcessController: /usr/bin/python3: Error while finding module specification for 'elastalert.create_index' (ModuleNotFoundError: No module named 'elastalert')
elastalert_1 |
elastalert_1 | 13:52:36.541Z ERROR elastalert-server: ProcessController: Index create exited with code 1
elastalert_1 | 13:52:36.541Z WARN elastalert-server: ProcessController: ElastAlert will start but might not be able to save its data!
elastalert_1 | 13:52:36.541Z INFO elastalert-server: ProcessController: Starting elastalert with arguments [none]
elastalert_1 | 13:52:36.556Z INFO elastalert-server: ProcessController: Started Elastalert (PID: 36)
elastalert_1 | 13:52:36.562Z ERROR elastalert-server:
elastalert_1 | Server: Starting server failed with error: TypeError: Cannot read properties of undefined (reading 'relative')
elastalert_1 | at RulesController._getRulesFolder (/opt/elastalert-server/src/controllers/rules/index.js:151:28)
elastalert_1 | at new RulesController (/opt/elastalert-server/src/controllers/rules/index.js:16:29)
elastalert_1 | at callback (/opt/elastalert-server/src/elastalert_server.js:94:33)
elastalert_1 | at forEach (/opt/elastalert-server/src/common/config/server_config.js:59:9)
elastalert_1 | at Array.forEach ()
elastalert_1 | at /opt/elastalert-server/src/common/config/server_config.js:58:22
elastalert_1 | at processTicksAndRejections (node:internal/process/task_queues:95:5)
elastalert_1 | 13:52:36.563Z INFO elastalert-server: Server: Stopping server
elastalert_1 | 13:52:36.563Z INFO elastalert-server: ProcessController: Stopping ElastAlert (PID: 36)
elastalert_1 | 13:52:36.564Z INFO elastalert-server: Server: Server stopped. Bye!
๐ ProcessController: /usr/bin/python3: Error while finding module specification for 'elastalert.create_index' (ModuleNotFoundError: No module named 'elastalert')
Hi gyus,
I am sending this as a question since I am not sure wether is a bug or a step not done in the installation. Whenever I do the docker-compose up the process will automatically stop due to the following error:
elastalert_1 | 13:52:36.541Z ERROR elastalert-server: elastalert_1 | ProcessController: /usr/bin/python3: Error while finding module specification for 'elastalert.create_index' (ModuleNotFoundError: No module named 'elastalert') elastalert_1 |)
elastalert_1 | at /opt/elastalert-server/src/common/config/server_config.js:58:22
elastalert_1 | at processTicksAndRejections (node:internal/process/task_queues:95:5)
elastalert_1 | 13:52:36.563Z INFO elastalert-server: Server: Stopping server
elastalert_1 | 13:52:36.563Z INFO elastalert-server: ProcessController: Stopping ElastAlert (PID: 36)
elastalert_1 | 13:52:36.564Z INFO elastalert-server: Server: Server stopped. Bye!
elastalert_1 | 13:52:36.541Z ERROR elastalert-server: ProcessController: Index create exited with code 1 elastalert_1 | 13:52:36.541Z WARN elastalert-server: ProcessController: ElastAlert will start but might not be able to save its data! elastalert_1 | 13:52:36.541Z INFO elastalert-server: ProcessController: Starting elastalert with arguments [none] elastalert_1 | 13:52:36.556Z INFO elastalert-server: ProcessController: Started Elastalert (PID: 36) elastalert_1 | 13:52:36.562Z ERROR elastalert-server: elastalert_1 | Server: Starting server failed with error: TypeError: Cannot read properties of undefined (reading 'relative') elastalert_1 | at RulesController._getRulesFolder (/opt/elastalert-server/src/controllers/rules/index.js:151:28) elastalert_1 | at new RulesController (/opt/elastalert-server/src/controllers/rules/index.js:16:29) elastalert_1 | at callback (/opt/elastalert-server/src/elastalert_server.js:94:33) elastalert_1 | at forEach (/opt/elastalert-server/src/common/config/server_config.js:59:9) elastalert_1 | at Array.forEach (
๐ Ubuntu 22.04.1 LTS
๐