Bug 11835

Summary: Warnings from DBIx about Moo::_Utils and Class::XSAccessor in Koha::Schema
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Marcel de Rooy 2014-02-25 14:04:14 UTC
It started with the following warnings in my staff logfile:

member.pl: Class::XSAccessor exists but failed to load with error: Attempt to reload Class/XSAccessor.pm aborted.
member.pl: Compilation failed in require at /usr/local/share/perl5/Moo/_Utils.pm line 54.

You could try to reproduce them by entering a partial name in the Patron search box on members-home or member. (I entered a name that returned some hits.)

Some debugging brought me via Koha/List/Patron and Koha/Database (_new_schema) to Koha::Schema (which goes to DBIx::Class::Schema.

Problem somehow is the Koha::Schema->connect call in _new_schema.

I do appreciate any feedback whether you have the same error/warning in your log..
Comment 1 Galen Charlton 2014-02-25 16:03:40 UTC
I tried a partial name search and didn't see this error.  Please supply more details on your environment -- based on some conversations I had recently, I'm particularly interested in Perl and DBIx::Class versions.
Comment 2 Marcel de Rooy 2014-02-27 12:54:32 UTC
Ah Solved ;) Forget this each time..

From the Linux logs: 
Feb 27 13:45:12 RKM004-2 kernel: [56562127.737651] type=1400 audit(1393505112.354:66552): avc:  denied  { execute } for  pid=30404 comm="zz3.pl" path="/usr/local/lib64/perl5/auto/Class/XSAccessor/XSAccessor.so" dev="md2" ino=11275174 scontext=system_u:system_r:httpd_sys_script_t:s0 tcontext=unconfined_u:object_r:usr_t:s0 tclass=file 

Wrong SELinux file label on shared libary file..
chcon is your friend :)