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

Nginx No such file or directory + some issues reported #1339

Closed
eowin opened this issue Apr 1, 2019 · 12 comments
Closed

Nginx No such file or directory + some issues reported #1339

eowin opened this issue Apr 1, 2019 · 12 comments
Assignees
Labels
type/bug Bug issue

Comments

@eowin
Copy link

eowin commented Apr 1, 2019

Hi,

I have installed wazuh the last week on my elasticsearch server, and i encounter some issues with the kibana app.

  1. When I have the health_check, an error 404 appear on my browser, when I check the link I have the following link :

localhost.home/app/wazuh

but when I manually change the link by :

localhost.home/kibana/app/wazuh

Every thing is working.


  1. When I want analyze a rule ID from the dashboard "Security Events", I get an error 404 whit the following link :

localhost.hom/kibana/app//app/wazuh#/manager/?tab=ruleset&ruleid=31101

But, when I edit the link to get this :

localhost.hom/kibana/app/wazuh#/manager/?tab=ruleset&ruleid=31101

Every thing is working, (I tried to change it from the index patern, but every day the configuration is reset)


  1. The principal issue where I didn't find the solution yet. I have nginx installed on my server, but when I go on the wazuh kibana app I get many error in the Nginx log when I load page :

2019/04/01 11:28:02 [error] 28645#28645: *23045 open() "/var/www/plugins/wazuh/img/icons/app_dashboard.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_dashboard.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"
2019/04/01 11:28:02 [error] 28645#28645: *23050 open() "/var/www/plugins/wazuh/img/icons/app_logging.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_logging.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"
2019/04/01 11:28:02 [error] 28645#28645: *23046 open() "/var/www/plugins/wazuh/img/icons/app_advanced_settings.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_advanced_settings.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"
2019/04/01 11:28:02 [error] 28645#28645: *23045 open() "/var/www/plugins/wazuh/img/icons/app_security.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_security.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"
2019/04/01 11:28:02 [error] 28645#28645: *23050 open() "/var/www/plugins/wazuh/img/icons/app_monitoring.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_monitoring.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"
2019/04/01 11:28:02 [error] 28645#28645: *23054 open() "/var/www/plugins/wazuh/img/icons/app_discover.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_discover.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"
2019/04/01 11:28:02 [error] 28645#28645: *23055 open() "/var/www/plugins/wazuh/img/icons/app_visualize.svg" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: localhost.home, request: "GET /plugins/wazuh/img/icons/app_visualize.svg HTTP/1.1", host: "localhost.home", referrer: "https://localhost.home/kibana/app/wazuh"

Someone can help me the find solution to fix these 3 issue ( my first and second point I juste want to have a solution to fix link issue permanently and for the third I don't have the solution to fix theses issue)

Thx :)

@jesusgn90 jesusgn90 added this to To do in Wazuh 3.9.x - 6.7.x via automation Apr 1, 2019
@jesusgn90 jesusgn90 added this to the 14th week sprint milestone Apr 1, 2019
@jesusgn90
Copy link
Contributor

Hi @eowin this is a known issue, another user (@candlerb) reported the same behavior here #1135, now we have a branch where we are fixing it, it's also a Kibana known issue, but our plugin can manage it so it can work properly.

The main issue here is about "base paths" and Kibana routing system, in addition, the Wazuh app is not handling it properly under certain situations.

Woking branch: https://github.com/wazuh/wazuh-kibana-app/tree/issue-1339

Stay updated tracking this ticket, and sorry about the inconveniences.

Regards

@eowin
Copy link
Author

eowin commented Apr 2, 2019

Hi @jesusgn90,

Thank you for your answer, I will check that, juste to be sure, can I copy and paste the files from this branch without uninstall anything ?

@jesusgn90
Copy link
Contributor

Hi @eowin (and @candlerb), our patch is not ready yet, the branch hasn't got the latest changes and the fix is designed for the incoming version.

Of course, I'll share with you how to apply the patch for your current installation.

In addition, I want to say that we've found the cause for all the issues related to this so we hope to have the fix soon.

I'll let you know about any news into this issue.

Best regards,
Jesús

@eowin
Copy link
Author

eowin commented Apr 2, 2019

Ah good news :D

Thank you for your help !

@jesusgn90
Copy link
Contributor

Update

Hi @eowin and @candlerb, here we've merged the PR for fixing this issue, #1342, into our next version branch, thanks to @juankaromo

Let us prepare a patch for the previous app version so you can apply to your existing installation with no need to wait for the next version.

Regards,
Jesús

@jesusgn90
Copy link
Contributor

Update

Hi @eowin and @candlerb, since our fix was done for the next version (not released yet), we've prepared a branch and a zip package with the patch for Wazuh 3.8.2 plus Kibana 6.7.0 so you can give a try to it while waiting for the next version.

I hope it helps. In case you consider this thread may be closed, just close it or ask us to close it.

Best regards,
Jesús

@eowin
Copy link
Author

eowin commented Apr 5, 2019

Hi @jesusgn90

Thank you for your help, I have to update my Elasticsearch to 6.7.1n do you think that this package will work on this version ?

I will try it the next week, I'll do a feed back when I my tests are done !

Regards,

@jesusgn90
Copy link
Contributor

Update

Hello again @eowin and @candlerb, we've just released the Wazuh app for Wazuh 3.8.2 and Kibana 6.7.1 which includes the fix for the base path issues.

I hope it helps guys and if this ticket is solved, please let us know so we can close it.

Regards,
Jesús

@eowin
Copy link
Author

eowin commented Apr 5, 2019

Hi @jesusgn90

I'll try it the next week, I'll close this ticket if everything working fine !

Regards,

@jesusgn90 jesusgn90 moved this from In progress to Needs review in Wazuh 3.9.x - 6.7.x Apr 5, 2019
@jesusgn90 jesusgn90 removed this from the 14th week sprint milestone Apr 8, 2019
@eowin
Copy link
Author

eowin commented Apr 9, 2019

Hi @jesusgn90

I did some tests today and I confirm to you that all link seem to working fine, and icon appears now on kibana !

Thank for your help !

@eowin eowin closed this as completed Apr 9, 2019
Wazuh 3.9.x - 6.7.x automation moved this from Needs review to Done Apr 9, 2019
@jesusgn90
Copy link
Contributor

That's great @eowin,

I want just to point that @juankaromo did the fix here.

Don't hesitate to open a new ticket if needed.

Regards,
Jesús

@eowin
Copy link
Author

eowin commented Apr 10, 2019

So thank you to @juankaromo ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
No open projects
Development

No branches or pull requests

3 participants