https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Status|ASSIGNED
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Attachment #63677|0 |1
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #54 from Tomás Cohen Arazi ---
Created attachment 72369
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72369=edit
Bug 17717: Make cronjobs using koha-foreach use --chdir
In order
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #52 from Tomás Cohen Arazi ---
(In reply to Marcel de Rooy from comment #48)
> (In reply to Marco Moreno from comment #47)
> > Understanding the problem is necessary to determine the best solution.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Status|NEW
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Assignee|ch...@bigballofwax.co.nz
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
Keywords|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
Status|REOPENED
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Nighswonger changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #48 from Marcel de Rooy ---
(In reply to Marco Moreno from comment #47)
> Understanding the problem is necessary to determine the best solution.
[...]
> 5. Change the current directory to one
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #47 from Marco Moreno ---
Understanding the problem is necessary to determine the best solution.
The problem is this:
- All cron jobs start in $HOME and those in /etc/cron* run as root which is
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #46 from Katrin Fischer ---
It looks like this one is not dead yet - Tomas, could you take another look as
you hunted down the problem last time?
--
You are receiving this mail because:
You
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #45 from Larry Baerveldt ---
We're getting the exact same error when trying to do a full rebuild from root
cron, using /usr/sbin/koha-rebuild-zebra.
Koha 17.05.05, Ubuntu 16.04.3 LTS, Perl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Magnus Enger changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #43 from Marco Moreno ---
Here is another way that demonstrates the fix of modifying the @INC array
similarly to how I described above:
root@koha:~# cd /root
root@koha:~# sudo -u library-koha perl -e
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #42 from Marco Moreno ---
ubuntu@koha:~$ sudo -i
root@koha:~# sudo -u library-koha perl -MAuthen::CAS::Client -e 'print "Ok\n"'
Can't locate Authen/CAS/Client/Response/Failure.pm:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #41 from Tomás Cohen Arazi ---
(In reply to Marco Moreno from comment #40)
> This issue is NOT fixed in 17.05. I'm seeing this now after having upgraded
> from 16.11. However, I've discovered some
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Marco Moreno changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
See Also|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Resolution|---
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #38 from Julian Maurice ---
I can reproduce a similar error with this command:
root@koha-yakkety:~# sudo -u koha1-koha PERL5LIB=. perl -MAuthen::CAS::Client
-E 'say "Hi"'
Can't locate
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #37 from Julian Maurice ---
Same with Ubuntu 16.10/Perl 5.22/koha-common 16.11.08
I'm running out of ideas... Does any other QAer want to try ? :)
--
You are receiving this mail because:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #36 from Julian Maurice ---
In comment 23, Chris says:
> With perl 5.22 with latest ubuntu, debian testing and above, etc have.
> Something has changed in the way it deals with modules that
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #35 from Marcel de Rooy ---
And what about the difference between perl 5.22 and 5.24 ?
--
You are receiving this mail because:
You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #34 from Julian Maurice ---
More info:
$ pmvers Authen::CAS::Client
0.07
$ pmvers Authen::CAS::Client::Response
0.03
$ perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #33 from Julian Maurice ---
(In reply to Marcel de Rooy from comment #32)
> Is there a difference between the standard koha-foreach with a sudo koha
> user and the sudo you added in your cron
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Marcel de Rooy changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #31 from Julian Maurice ---
I let the cron do it, as Chris suggested in comment 25.
The only thing I modified in the cron entry is '*/15' to get it launched every
minute
--
You are
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #30 from Katrin Fischer ---
Did you run it manually in your package installation or using the standard
cron.d entry?
*/15 * * * * root koha-foreach --enabled --email
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
alfre69 changed:
What|Removed |Added
CC|al...@ibdinternet.com |
--
You
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #29 from Julian Maurice ---
Just tried a package install following instructions on
https://wiki.koha-community.org/wiki/Debian.
Same result. The cron ran process_message_queue.pl and the
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #28 from Julian Maurice ---
I've read the history of the bug, many times, and I understand that the problem
is with the package install, which I'm trying to mimic to understand what's
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #27 from Chris Cormack ---
I feel like you are not reading the history of the bug, it is when using the
cron job from the packages.
You are not running that.
Step 3 of the test plan says
3/
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #26 from Julian Maurice ---
# cat /etc/cron.d/koha
* * * * * root sudo -u koha sh -c 'PERL5LIB=/home/koha/koha
KOHA_CONF=/home/koha/etc/koha-conf.xml perl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #25 from Chris Cormack ---
(In reply to Julian Maurice from comment #24)
>
> I have no errors and the message queue is processed.
>
> Can you tell me what I'm doing wrong ?
You are not
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #24 from Julian Maurice ---
I've made a fresh install on Debian stretch (Perl 5.24) but I can't reproduce
the problem.
root@koha-stretch:~# sudo -u koha sh -c 'touch test'
touch: cannot
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #23 from Chris Cormack ---
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
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Julian Maurice changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Josef Moravec changed:
What|Removed |Added
Attachment #63676|0 |1
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Josef Moravec changed:
What|Removed |Added
Status|Needs Signoff
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Mason James changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #19 from Chris Cormack ---
Created attachment 63676
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63676=edit
Bug 17717 : Work around for the permissions problem when running
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Cormack changed:
What|Removed |Added
Status|NEW
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #18 from Chris Cormack ---
(In reply to Larry Baerveldt from comment #14)
> Just a FYI on this. I found that *not* using koha-foreach, and instead use
> the actual koha instance user also works.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #17 from Chris Cormack ---
I am working on replacing this module with one that supports CAS 2.0 and doesnt
have this problem.
It won't obviously be ready in time though. So I will write a patch
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Josef Moravec changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Cormack changed:
What|Removed |Added
Version|16.11
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Larry Baerveldt changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Barton Chittenden changed:
What|Removed |Added
See Also|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #11 from Chris Cormack ---
We could do a patch that adds the cd /tmp &&
Otherwise we could try to fix the upstream module, to work better with perl
5.22 and cron.
But yeah, it's an upstream
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Katrin Fischer changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #9 from mjn...@gmail.com ---
(In reply to Liz Rea from comment #8)
> On affected servers, changing the /etc/cron.d/koha-common job for process
> message queue to the following:
>
> */15 * * * * root cd /tmp &&
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Liz Rea changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Cormack changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
alfre69 changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Stefan Berndtsson changed:
What|Removed |Added
CC|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #5 from mjn...@gmail.com ---
Separating Exception.pm seemed to have broken other things, so I've backed out
of it.
--
You are receiving this mail because:
You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
mjn...@gmail.com changed:
What|Removed |Added
Priority|P5 - low|P4
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
mjn...@gmail.com changed:
What|Removed |Added
CC||mjn...@gmail.com
--
You
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #4 from mjn...@gmail.com ---
Futher, after separating Exception.pm, we get:
ourlib: Class Koha::Exceptions::Exception appears to be a typo as it is only
specified in the 'isa' param for
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #3 from mjn...@gmail.com ---
After separating Failure.pm, the emails are now showing the same problem with
Success.pm.
After extracting Success.pm in the same way, now it complains about
Exceptions.pm :
Can't locate
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #2 from mjn...@gmail.com ---
After extracting Failure to its own file, process_message_queue.pl runs without
a peep. I don't understand enough of Perl to know what's going on.
Files end up like this:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
--- Comment #1 from mjn...@gmail.com ---
Created attachment 57947
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57947=edit
Full error as displayed in the email
--
You are receiving this mail because:
You are
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
mjn...@gmail.com changed:
What|Removed |Added
Summary|Can't locate|process_message_queue.pl:
67 matches
Mail list logo