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

Magnus Enger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #44 from Magnus Enger <[email protected]> ---
I ran into this problem after upgrading from

Koha 3.22, Ubuntu 14.04, Perl ?

to 

Koha 17.05.05, Ubuntu 16.04.3 LTS, Perl v5.22.1

gather_print_notices.pl run from cron (sudo crontab -e) would fail with this
error:

Can't locate Koha/Exceptions/Exception.pm: ./Koha/Exceptions/Exception.pm:
Permission denied at /usr/share/perl/5.22/base.pm line 97.
...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at (eval 14) line 3.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Exceptions.pm
line 56.
Compilation failed in require at /usr/share/koha/lib/Koha/DateUtils.pm line 22.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/DateUtils.pm line
22.
Compilation failed in require at /usr/share/koha/lib/C4/Log.pm line 30.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Log.pm line 30.
Compilation failed in require at /usr/share/koha/lib/Koha/Config/SysPref.pm
line 26.
BEGIN failed--compilation aborted at /usr/share/koha/lib/Koha/Config/SysPref.pm
line 26.
Compilation failed in require at /usr/share/koha/lib/C4/Context.pm line 105.
BEGIN failed--compilation aborted at /usr/share/koha/lib/C4/Context.pm line
105.
Compilation failed in require at
/usr/share/koha/bin/cronjobs/gather_print_notices.pl line 13.
BEGIN failed--compilation aborted at
/usr/share/koha/bin/cronjobs/gather_print_notices.pl line 13.

Running the command in the crontab on the command line would succeed, no
errors. 

Adding the "cd /tmp &&" trick in front of the commands in the crontab makes the
errors go away.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to