mcholste / elsa

Enterprise Log Search and Archive
GNU General Public License v2.0
207 stars 51 forks source link

Field missing in the Web interface the firt time is loaded #48

Open bonomani opened 7 years ago

bonomani commented 7 years ago

I am not sure it is a bug or a parameter to adjuste, but when it load the first time the ELSA web Interface with any of my browser some fields are empty like for the version of sphinx (not set) or the addterm menu (only "unclassified"). I have to reload it and then it works! Any idea of the problem? (I am woking on Centos 7 with Apache)

bonomani commented 7 years ago

I found this log message below: This is in my understandaning related to http_get for AnyEvent, but I dont really undertstand the problem. Please let me know if I can help!:

Header: $VAR1 = { 'Reason' => 'Connection timed out', 'URL' => 'http://127.0.0.1/API/local_info', 'Status' => 596 };

body: $VAR1 = undef;

bonomani commented 7 years ago

I think I have may be found the problem: I modified /usr/local/elsa/web/lib/Controller.pm Lines 876 } 877 AnyEvent->now_update; 878 $results{$peer} = http_get $url, headers => $headers, @no_proxy, sub {

I added the line 876 AnyEvent->now_update This just updates the counter to reflect real time and it seems to work now. I am sure that it is not the best place to add it, as you have probably the AnyEvent functions in different places. (you know that better than me :) Please let me know if you want me to try something else.