https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Status|ASSIGNED|Needs Signoff
--
You a
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Attachment #63677|0 |1
is obsolete|
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&action=edit
Bug 17717: Make cronjobs using koha-foreach use --chdir
In order to patch produc
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.
> [...]
> > 5. Change t
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Status|NEW |ASSIGNED
--- Comment #5
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Assignee|ch...@bigballofwax.co.nz|tomasco...@gmail.com
--
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
Keywords||rel_18_05_candidate
--
Y
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
Status|REOPENED|NEW
--- Comment #50 from
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Nighswonger changed:
What|Removed |Added
CC||cnighswon...@foundations
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 that is readable by modifying
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
/root.
- Problems occur w
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 are watching all bug changes.
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 v5.22.1
Cronjob: /usr/sbin/koh
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Magnus Enger changed:
What|Removed |Added
CC||mag...@libriotech.no
--- Com
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 'use Authen::CAS::C
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:
./Authen/CAS/Client/Response/Failure.p
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 things that might be h
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Marco Moreno changed:
What|Removed |Added
CC||mmor...@pobox.com
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
See Also||https://bugs.koha-commun
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
Resolution|--- |WORKSFORME
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 Authen/CAS/Client.pm: ./Authen/CAS
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:
You are watching all bug change
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 have multiple
> packages in the
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.
___
Koha-bugs
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
x86_64-linux-gnu-thread-multi
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 job ?
> Are the permissions o
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Marcel de Rooy changed:
What|Removed |Added
CC||m.de.r...@rijksmuseum.nl
-
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 receiving this mail because:
You are w
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
/usr/share/koha/bin/cronjobs/process_message_queue.pl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
alfre69 changed:
What|Removed |Added
CC|al...@ibdinternet.com |
--
You are receiving this mail
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 message queue was
processed. No er
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
happening.
If my command succeeds, w
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/ Build and install a new pack
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
/home/koha/koha/misc/cronjobs/process_message_queue.pl > /tmp/koha
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 running it as cron, you are runn
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 touch 'test': Permission denied
ro
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 ubuntu, debian testing and
abov
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
Assignee|gmcha...@gmail.com |ch...@bigballofwax.co.nz
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Julian Maurice changed:
What|Removed |Added
CC||julian.maur...@biblibre.com
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Josef Moravec changed:
What|Removed |Added
Attachment #63676|0 |1
is obsolete|
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Josef Moravec changed:
What|Removed |Added
Status|Needs Signoff |Signed Off
--
You are rece
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Mason James changed:
What|Removed |Added
CC||m...@kohaaloha.com
--
You ar
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&action=edit
Bug 17717 : Work around for the permissions problem when running
process_message_queu
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Cormack changed:
What|Removed |Added
Status|NEW |Needs Signoff
--
You are r
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.
>
> For example, instead
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 to add the
cd /tmp && and a
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Josef Moravec changed:
What|Removed |Added
CC||josef.mora...@gmail.com
---
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Jonathan Druart changed:
What|Removed |Added
CC||jonathan.dru...@bugs.koha-
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Cormack changed:
What|Removed |Added
Version|16.11 |master
--
You are receivin
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Larry Baerveldt changed:
What|Removed |Added
CC||la...@bywatersolutions.com
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Tomás Cohen Arazi changed:
What|Removed |Added
CC||tomasco...@gmail.com
--
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Barton Chittenden changed:
What|Removed |Added
See Also||https://bugs.koha-commun
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 problem, I think the module
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Katrin Fischer changed:
What|Removed |Added
CC||katrin.fisc...@bsz-bw.de
-
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 && koha-foreac
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Liz Rea changed:
What|Removed |Added
CC||l...@catalyst.net.nz
--- Comment
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Chris Cormack changed:
What|Removed |Added
CC||ch...@bigballofwax.co.nz
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
alfre69 changed:
What|Removed |Added
CC||al...@ibdinternet.com
--
You are
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17717
Stefan Berndtsson changed:
What|Removed |Added
CC||stefan.berndts...@ub.gu.
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
Severity|min
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
Koha::Exceptions::Virtualshelves::I
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 Koha/
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:
root@koha:/usr/share
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&action=edit
Full error as displayed in the email
--
You are receiving this mail because:
You a
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