Re: [OPEN-ILS-DEV] reporter problems

2007-10-25 Thread Mike Rylander
On 10/25/07, Dan Scott [EMAIL PROTECTED] wrote:
 Hi Bill:

 Apparently you have to run clark-kent.pl (reporter, get it? hah) for
 the reports to actually run.

And the easiest way to make that happen is something like

su opensrf -c 'PERL5LIB=/openils/lib/perl5/ /openils/bin/clark-kent.pl -c 4 -d'

as long as opensrf owns the report output directory.  The -c param is
the concurrency (four reports at a time in that command line) and -d
tells it to daemonize itself.  You may want to drop the concurrency to
1 if you're on a 1 or 2 core box.

Your error messages suggest that you have not created subfolders under
my templates and friends in which to place your reports, though.

-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  [EMAIL PROTECTED]
 | web:  http://www.esilibrary.com


 Dan

 On 25/10/2007, Bill Ott [EMAIL PROTECTED] wrote:
 
   You will need to add open-ils.reporter to the services section in
   the gateway config in opensrf_core.xml.  (xpath:
   /config/gateway/services/service).  It's not there by default.
  
 
  I can now create wonderful reports ...which never run.  They're time
  stamped with a run time, but never receive a complete time, and there's
  no output produced.  The logs are pretty boring reading too, except for
  the following.  Are the not found folders, file system folders, or the
  folders that I created to hold reports?
 
 
  [2007-10-25 14:33:17] open-ils.reporter
  [INFO:23509:Event.pm:25:1193336846234814] Returning non-success event
  object: REPORTER_OUTPUT_FOLDER_NOT_FOUND
 
  [2007-10-25 14:36:12] open-ils.reporter
  [INFO:23522:Event.pm:25:11933368472348512] Returning non-success event
  object: REPORTER_SCHEDULE_NOT_FOUND
 
  [2007-10-25 14:36:47] open-ils.reporter
  [INFO:23522:Event.pm:25:1193336847234824] Returning non-success event
  object: REPORTER_REPORT_FOLDER_NOT_FOUND
 
  [2007-10-25 14:36:47] open-ils.reporter
  [INFO:23506:Event.pm:25:1193336846234816] Returning non-success event
  object: REPORTER_TEMPLATE_FOLDER_NOT_FOUND
 
 
 
 
 
 


 --
 Dan Scott
 Laurentian University



Re: [OPEN-ILS-DEV] reporter problems

2007-10-25 Thread Bill Erickson

Bill Erickson wrote:



Regarding the NOT_FOUND events, those are not necessarily a bad thing. 
In this case, it may be looking for folders that other users have 
shared, which probably don't exist yet.


Let me rephrase that...  It's searching to see if there are any shared 
folders.  I didn't mean to imply that there existed a shared folder that 
didn't exist :)


-bill


--
Bill Erickson
| VP, Software Development  Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: [EMAIL PROTECTED]
| web: http://esilibrary.com


Re: [OPEN-ILS-DEV] reporter problems

2007-10-25 Thread Bill Ott


One other thing...  The reporter config in opensrf.xml has a setting 
called output_base, which defines where the output files are stored 
on the local machine (mentioned above).  This defaults to 
/openils/var/reporter/output


The reporting interface (in the staff client) expects the output to 
live at http://host/reporter/


Ok, now you guys are just reading my mind... 

I need to go for coffee between emails, because I already looked under 
the hood to find out how to daemonize clark-kent.pl, and just started 
tracking down this issue after seeing the 404 looking for /reporter/1, 
when I had already seen Clark create /reporter/output/1/5/5


As an aside, /openils/var/reporter hadn't been created at install either.
 (or /openils/var/reporter/output as noted in the example output_base )