Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting server failed with error #139

Closed
fvales opened this issue Jun 11, 2019 · 3 comments
Closed

Starting server failed with error #139

fvales opened this issue Jun 11, 2019 · 3 comments
Labels
question Further information is requested

Comments

@fvales
Copy link

fvales commented Jun 11, 2019

When i run docker-compose up, i get the following error:

ERROR elastalert-server:
Server: Starting server failed with error: TypeError: object must be passed
cdf60ab0f7d4_praeco_elastalert_1 | at module.exports (/opt/elastalert-server/node_modules/object-resolve-path/object-resolve-path.js:13:11)
cdf60ab0f7d4_praeco_elastalert_1 | at ServerConfig.get (/opt/elastalert-server/src/common/config/server_config.js:32:12)
cdf60ab0f7d4_praeco_elastalert_1 | at /opt/elastalert-server/src/elastalert_server.js:84:58
cdf60ab0f7d4_praeco_elastalert_1 | at /opt/elastalert-server/src/common/config/server_config.js:60:9
cdf60ab0f7d4_praeco_elastalert_1 | at Array.forEach ()
cdf60ab0f7d4_praeco_elastalert_1 | at /opt/elastalert-server/src/common/config/server_config.js:59:22
cdf60ab0f7d4_praeco_elastalert_1 | 04:24:35.215Z INFO elastalert-server: Server: Stopping server
cdf60ab0f7d4_praeco_elastalert_1 | /opt/elastalert-server/src/common/websocket.js:34
cdf60ab0f7d4_praeco_elastalert_1 | wss.clients.forEach(function (ws) {
cdf60ab0f7d4_praeco_elastalert_1 | ^
cdf60ab0f7d4_praeco_elastalert_1 |
cdf60ab0f7d4_praeco_elastalert_1 | TypeError: Cannot read property 'clients' of null
cdf60ab0f7d4_praeco_elastalert_1 | at Timeout._onTimeout (/opt/elastalert-server/src/common/websocket.js:22:7)
cdf60ab0f7d4_praeco_elastalert_1 | at listOnTimeout (internal/timers.js:531:17)
cdf60ab0f7d4_praeco_elastalert_1 | at processTimers (internal/timers.js:475:7)
cdf60ab0f7d4_praeco_elastalert_1 exited with code 0

I'm running Elasticsearch 7.0.1.

@johnsusek
Copy link
Owner

Hi thanks for the report. Unfortunately ES7 is not supported yet. Elastalert has it in a beta branch but has not released ES7 support for their main master branch. Once that hits master I will make any changes as needed for praeco. This is actually tracked in #132, so closing this as a dupe.

@singhabhi786
Copy link

Hi John,
When i am deploying praeco, it is throwing :
API error
Error: Request failed with status code 500
Note: I have ran my elastalert server as a container and i can access it at localhost:3030.

@singhabhi786
Copy link

Sorry, little modification in the previous comment, post deployment, while accessing i am getting error.
I have provided the path and es host in the config files.

@nsano-rururu nsano-rururu added the question Further information is requested label Feb 6, 2021
Repository owner locked and limited conversation to collaborators Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants