Geoff, I recently worked with A/T and had some issues as well, although the 
difference was that I was working with 2.2 and configured the machine myself, 
so I was reasonably certain that the environment was in good shape.

If you are unsure where the problem is, you basically want to take a step at a 
time to keep narrowing it down to eliminate possibilities. I don't claim to 
have deep knowledge of A/T, but a few things I would do or look at:


Generally check environment variables/settings and make sure all the services 
are running properly

1. Are all the dependencies installed? Perl, etc? Check the install 
instructions for your version of Evergreen and the newer ones as well.

2. Are all the Evergreen environment variables set correctly? Perhaps look 
through the install instructions again, test for errors 
http://evergreen-ils.org/dokuwiki/doku.php?id=troubleshooting:checking_for_errors

3. Make sure to run everything, including configuration commands using proper 
system users. You really want to pay attention to which users run which 
commands.

4. Restart evergreen and watch for anything that says FAILURE, or other errors.

5. See of there are any clues in logs in /var/log, /openils/var/log.


Before trying to run cron jobs, make sure your A/T events are configured and 
working individually

Configure a simple A/T event that you KNOW would generate output, e.g., notices 
by email sent to you. If you have to, create a test circulation that would 
trigger an event, like an item due within some period of time that's configured 
for courtesy notices. Make sure that your Processing Delay is not set to the 
same value as Max Event Validity Delay.

Test the event by clicking on the A/T trigger event definition name and then 
going to the test tab. Do you get any results or errors? Look in the database 
to see if any output is being generated in action_trigger.event_output.

If all seems to check out, maybe even grab the sources for 2.0 and diff the 
files with 2.2 sources, look for any clues. In the past (not related to A/T) 
I've grabbed scripts from newer Evergreen and just plugged them into an older 
Evergreen version for testing.

I hope this can be of some help. Good luck.

Alexey


On Sep 12, 2012, at 15:08 , Geoff Sams wrote:

> I was afraid that was the next step, and that is unfortunately not an option. 
>  I will take a crack at it from a different angle and see what I can come up 
> with.  Thanks for all the help!
>  
> Thanks,
> Geoff Sams
> Roanoke Public Library
> 817-491-2691
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Peters, 
> Michael
> Sent: Wednesday, September 12, 2012 3:05 PM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> Geoff,
>  
> At this point, I would contact whoever you contracted with to upgrade your 
> servers the last time.  Something sure seems misconfigured, and I’d imagine 
> they’d be the best bet in troubleshooting.
>  
> Sincerely, 
> Michael Peters 
> Indiana State Library MIS | Inspire.IN.gov Helpdesk | Evergreen Indiana 
> Helpdesk
> office - 317.234.2128 
> email - [email protected]
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Geoff 
> Sams
> Sent: Wednesday, September 12, 2012 4:01 PM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> Yes, the information is there.  I guess I’m not exactly off on this after 
> all.  I will keep digging to see if I might have missed something else.
>  
> Thanks,
> Geoff Sams
> Roanoke Public Library
> 817-491-2691
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Peters, 
> Michael
> Sent: Wednesday, September 12, 2012 1:45 PM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> Well, does opensrf have those environment variables?  Root might have, but 
> opensrf has to as well.
>  
> Sincerely, 
> Michael Peters 
> Indiana State Library MIS | Inspire.IN.gov Helpdesk | Evergreen Indiana 
> Helpdesk
> office - 317.234.2128 
> email - [email protected]
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Geoff 
> Sams
> Sent: Wednesday, September 12, 2012 2:35 PM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> I was running as root, trying as opensrf appears to have the same issue 
> however.
>  
> Thanks,
> Geoff Sams
> Roanoke Public Library
> 817-491-2691
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Peters, 
> Michael
> Sent: Wednesday, September 12, 2012 1:14 PM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> You are running all of this as the opensrf user, right?
>  
> Sincerely, 
> Michael Peters 
> Indiana State Library MIS | Inspire.IN.gov Helpdesk | Evergreen Indiana 
> Helpdesk
> office - 317.234.2128 
> email - [email protected]
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Geoff 
> Sams
> Sent: Wednesday, September 12, 2012 2:04 PM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> I don’t believe I’ve ever heard it called an incantation before.
>  
> The sources I have been running from had some mixed information it seems.  I 
> started with just going to the directory where action_trigger_runner.pl is 
> located.
>  
> First I ran it as su: action_trigger_runner.pl –process-hooks –run-pending
>  
> That was when I got the first error, it was: can't locate 
> openils/utils/fieldmapper.pm in @inc
>  
> I ended up adding: use lib /openils/lib/perl5 to the perl script before 
> running it again.
>  
> That’s when things got interesting for me.  I ran it again and it produced 
> nothing for about an hour.  No new prompt, or anything.  I finally 
> interrupted it and went looking for advice again.
>  
> I noticed there was a debug output trigger and ran it again:
>  
> action_trigger_runner.pl --debug-stdout
>  
> And it displayed the help information.  This is more or less a looping event 
> at this point.  Running either process-hooks or run-pending actions led to no 
> output, running the debug results in help output.
>  
> Hopefully that was the information you were looking for.  Sorry for the 
> disjointed write up.
>  
> Thanks,
> Geoff Sams
> Roanoke Public Library
> 817-491-2691
>  
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of David 
> Busby
> Sent: Wednesday, September 12, 2012 2:17 AM
> To: Evergreen Development Discussion List
> Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10
>  
> Geoff,
> Can you please share examples of your incantation?
> 
> / djb
> 
> On Sep 11, 2012 2:31 PM, "Geoff Sams" <[email protected]> wrote:
> Okay, I am having some trouble with this, and unfortunately I have limited 
> experience with the innards of this system.  I won’t lie, I’m a novice at 
> this at best.
>  
> I am trying to setup action/trigger events for the first time in our system 
> and having very little luck with this.  I have the staff client 
> administration side of things handled, it is the server side that is killing 
> me right now.
>  
> Currently, I am trying to run the perl script just once to make certain that 
> it works and I keep getting the help output or nothing at all.  When I 
> attempt to run the script with --debug-stdout I get the help output and 
> nothing else, if I try to run it with osrf-config I get the help file, and if 
> I try either process-hooks or run-pending I get nothing at all.
>  
> At first I had to go in and add openils/lib/perl5 to the file so that it 
> could find fieldmapper.pm and once I got that working, this was all the 
> result I’ve gotten.  As much digging as I’ve had to do over the past few days 
> just to get this far, I was hoping some kind soul would be able to point me 
> in a better direction.
>  
> Thanks,
> Geoff Sams
> Roanoke Public Library
> 817-491-2691
>  


Alexey Lazar
PALS
Information System Developer and Integrator
507-389-2907
http://www.mnpals.org/

Reply via email to