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

Cannot start web interface #33

Open
ardichoke opened this issue Feb 16, 2016 · 1 comment
Open

Cannot start web interface #33

ardichoke opened this issue Feb 16, 2016 · 1 comment

Comments

@ardichoke
Copy link

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.

@radiumfu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants