elsa icon indicating copy to clipboard operation
elsa copied to clipboard

Cannot start web interface

Open ardichoke opened this issue 10 years ago • 1 comments

Fresh install of ELSA on CentOS 6 using Apache resulted in a non-functioning installation for me. Apache would start and then immediately crash when trying to bring up the web app with the following error.

[Tue Feb 16 11:41:44 2016] [error] Error while loading /usr/local/elsa/web/lib/Web.psgi: Type of arg 1 to shift must be array (not anonymous list ([])) at /usr/local/elsa/web/lib/Query/Sphinx.pm line 1291, near "];"\nCompilation failed in require at /usr/local/elsa/web/lib/QueryParser.pm line 28.\nBEGIN failed--compilation aborted at /usr/local/elsa/web/lib/QueryParser.pm line 28.\nCompilation failed in require at /usr/local/elsa/web/lib/Controller.pm line 34.\nBEGIN failed--compilation aborted at /usr/local/elsa/web/lib/Controller.pm line 34.\nCompilation failed in require at /usr/local/elsa/web/lib/Web.psgi line 10.\nBEGIN failed--compilation aborted at /usr/local/elsa/web/lib/Web.psgi line 10.\nBEGIN failed--compilation aborted at /etc/httpd/conf/elsa_startup.pl line 19.\nCompilation failed in require at (eval 2) line 1.\n

I was able to get things up and running by changing line 1291 in /usr/local/elsa/web/lib/Query/Sphinx.pm from this:

my $key = shift [ keys %{ $ret->{results} } ];

To this:

my $key = shift @{[ keys %{ $ret->{results} } ]};

Seems to be working as expected once this change was made.

ardichoke avatar Feb 16 '16 17:02 ardichoke

Confirmed works, but just means HTTPD service able to start with no errors.

Then when browser http://<elsa_server_ip>/, will get error code "500", also below messages in /var/log/httpd/error_log

[Wed Mar 30 11:36:56 2016] [crit] [client 10.1.x.x] configuration error: couldn't perform authentication. AuthType not set!: / [Wed Mar 30 11:36:56 2016] [crit] [client 10.1.x.x] configuration error: couldn't perform authentication. AuthType not set!: /favicon.ico, referer: http://<elsa_server_ip>/ [Wed Mar 30 11:37:03 2016] [crit] [client 10.1.x.x] configuration error: couldn't perform authentication. AuthType not set!: /API/info, referer: http://<elsa_server_ip>/API/info

The last message keep repeating every minutes, (may because cron job run's every min)

I was able to get pass of this issue, by comment out below line in /etc/httpd/conf.d/ZZelsa.conf, then restart httpd service.

# Require all granted

radiumfu avatar Mar 30 '16 18:03 radiumfu