[Koha-bugs] [Bug 17717] process_message_queue.pl: Can't locate Authen/CAS/Client/ Response/Failure.pm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 29 21:08:48 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717

--- Comment #23 from Chris Cormack <chris at bigballofwax.co.nz> ---
Ok

The original report of the error describes the problem, so I don't think i need
to go proving it exists?

I'll do a summary anyway. With perl 5.22 with latest ubuntu, debian testing and
above, etc have. Something has changed in the way it deals with modules that
have multiple packages in them.
This is not unique to this module, if you search for 
Permission denied at /usr/share/perl/5.22/base.pm line 97
You will see  others doing it too

EG
 I've noticed that Object::InsideOut v3.98 fails when the current directory is
not readable by the user running the Perl binary.  Most Perl modules don't have
this requirement, and so OIO creates a very cryptic error message when you run
it in such circumstances.

However Authen::CAS::Client is a module we use, that is loaded by one of the
modules that process_message_queue.pl uses. 
By adding cd /tmp &&  to the cron we make sure we avoid the not readable part.

Of course running as root gets round this too.
This is not a fix, like I said, but a simple workaround so that notices get
sent in Koha on perl 5.22. Until this module is replaced (which it is going to
be) or another solution involving changing how koha-for-each works under cron
(it works fine on the command line) is done.

This does only occur on perl 5.22 and up, so something changed in that.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list