[OPEN-ILS-DEV] Problems writting python services

Vicent Mas uvemas at gmail.com
Sun Dec 4 16:41:52 EST 2011


2011/12/1 Bill Erickson <erickson at esilibrary.com>:
> On Wed, Nov 30, 2011 at 02:04:29PM +0100, Vicent Mas wrote:
>> Hi,
>>
>> in my Evergreen virtual image (OpenSRF and Evergreen trunk as of
>> 2011-03-19 on Debian Squeeze) I'm trying to write and setup a demo
>> OSRF service using Python but I'm having some troubles. As I've found
>> no specific documentation for doing it I'm following the Dan's paper
>> found at http://journal.code4lib.org/articles/3284 and a thread I got
>> using google (https://gist.github.com/654730). This is what I've done
>> until now:
>
> Hi Vicent,
>
> [...]
>
>> We received 1 messages from router at private.localhost/opensrf.test
>> srfsh 2011-11-30 06:35:38 [WARN:3338:osrf_stack.c:134:132265292233380]
>>  !!! Received Jabber layer error message
>> srfsh 2011-11-30 06:35:38 [WARN:3338:osrf_stack.c:144:132265292233380]
>>  * Jabber Error is for top level remote  id
>> [router at private.localhost/opensrf.test], no one to send my message to!
>>  Cutting request short...
>
> This suggests the Python service did not start up correctly.  I'd
> recommend checking the opensrf logs (found by default in
> /openils/var/log/osrfsys.log) for warnings/errors.  If the python
> service failed to start, there should be some indication as to why in
> there.
>
> -b
>

Hi Bill,

thanks a lot for your answer. Unfortunately I can't see any error
regarding this python service in osrfsys.log. I've launched the
command `tail -f /openils/var/log/osrfsys.log` in one terminal tab and
in a different tab I've run `osrf_ctl_sh -l -a start_all`. After that
I've run `srfsh` and launched the command `introspect opensrf.test`. I
got the answer "No data received from server" as usual. I expected to
see something in the output of the tail command but it wasn't updated.
Only the srfsh.log was updated (with the info I reported in my
previous mail).

I've tried several values for the <implementation> element in the
opensrf.xml file (module name, file name, file path) but nothing
works. I think I'll give up. Currently I've other Evergreen problems
with higher priority.

Thanks again for your help,

Vicent
>
> --
> Bill Erickson
> | Senior Software Developer
> | Equinox Software, Inc. / Your Library's Guide to Open Source
> | phone: 877-OPEN-ILS (673-6457)
> | email: erickson at esilibrary.com
> | web: http://esilibrary.com



-- 
Share what you know, learn what you don't.


More information about the Open-ils-dev mailing list