kodeswarank / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

cannot create any dashboards #215

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. standalone install on ubuntu 14.04
2. latest code base

from /data/elsa/log/web.log

* ERROR [2014/06/30 15:32:05] /usr/local/elsa/web/lib/View.pm (161) View::catch 
{...}  24407 [undef]
DBD::mysql::db prepare failed: handle 2 is owned by thread 7f9f85ff4e60 not 
current thread 7f9f8b696cc0 (handles can't be shared bet  ween threads and your 
driver may need a CLONE method added) at 
/usr/local/elsa/web/lib/Controller/Charts.pm line 29.

Original issue reported on code.google.com by AndyCap...@gmail.com on 30 Jun 2014 at 9:51

GoogleCodeExporter commented 9 years ago
That's because 14.04 uses mpm_event as the default, which means all the HTTP 
requests are handled by the a process' threads.

Switch back to mpm_prefork will workaround the problem. In the long run, ELSA 
should clone() the db handler between threads.

Original comment by tim.lau....@gmail.com on 3 Dec 2014 at 1:42