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

Wazuh dashboard shows a "Internal Server Error" in 4.10.0 AMI #117

Closed
DiegoRatto opened this issue Nov 14, 2024 · 1 comment
Closed

Wazuh dashboard shows a "Internal Server Error" in 4.10.0 AMI #117

DiegoRatto opened this issue Nov 14, 2024 · 1 comment
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@DiegoRatto
Copy link
Member

DiegoRatto commented Nov 14, 2024

Description:

Internal Server Error occurs in Wazuh OpenSearch Dashboards during authentication, causing requests for favicon.ico to fail. Error trace points to HapiResponseAdapter in response_adapter.js and authentication lifecycle in auth.js.

Step to reproduce

The following log messages have been found in the wazuh/wazuh#26798 (comment) testing:

  • When we execute the following command:
[root@wazuh-server wazuh-user]# journalctl -r -u wazuh-dashboard | grep -i -E "error|critical|fatal|warning"

One of the logs shows:

Nov 13 00:17:43 wazuh-server opensearch-dashboards[28236]: 
{"type":"error","@timestamp":"2024-11-13T00:17:43Z","tags":[],"pid":28236,"level":"error","error":{"message":"Internal Server Error","name":"Error","stack":"Error: Internal Server Error\n    
at HapiResponseAdapter.toInternalError (/usr/share/wazuh-dashboard/src/core/server/http/router/response_adapter.js:69:19)\n    
at Object.interceptAuth [as authenticate] (/usr/share/wazuh-dashboard/src/core/server/http/lifecycle/auth.js:148:34)\n    
at runMicrotasks (<anonymous>)\n   
at processTicksAndRejections (internal/process/task_queues.js:95:5)\n    
at exports.Manager.execute (/usr/share/wazuh-dashboard/node_modules/@hapi/hapi/lib/toolkit.js:60:28)\n    
at module.exports.internals.Auth._authenticate (/usr/share/wazuh-dashboard/node_modules/@hapi/hapi/lib/auth.js:273:30)\n    
at Request._lifecycle (/usr/share/wazuh-dashboard/node_modules/@hapi/hapi/lib/request.js:371:32)\n    
at Request._execute (/usr/share/wazuh-dashboard/node_modules/@hapi/hapi/lib/request.js:281:9)"},"url":"https://3cccc153/favicon.ico","message":"Internal Server Error"}
@DiegoRatto DiegoRatto added level/task Task issue type/bug Bug issue labels Nov 14, 2024
@wazuhci wazuhci moved this to Triage in Release 4.10.0 Nov 14, 2024
@Enaraque Enaraque self-assigned this Nov 15, 2024
@wazuhci wazuhci moved this from Triage to In progress in Release 4.10.0 Nov 15, 2024
@teddytpc1 teddytpc1 changed the title Wazuh dashboard show a "Internal Server Error" in 4.10.0 AMI Wazuh dashboard shows a "Internal Server Error" in 4.10.0 AMI Nov 15, 2024
@Enaraque
Copy link
Member

Enaraque commented Nov 19, 2024

Update report

After creating a new instance with the AMI and trying to get the error message mentioned in the issue description, it has not been possible to replicate it.

After talking to @DiegoRatto to see what steps he followed to get the error, it was found that the instance of the AMI used to detect this error had already been used previously for other tests, so the problem could be due to the dashboard itself.

The issue is passed to blocked until the next approach is known.

@wazuhci wazuhci moved this from In progress to Blocked in Release 4.10.0 Nov 19, 2024
@wazuhci wazuhci moved this from Blocked to Done in Release 4.10.0 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
Status: Done
Development

No branches or pull requests

3 participants