[OPEN-ILS-DEV] Debugging OpenSRF installation

Victoria Bush vbush at ilstu.edu
Tue Jun 9 09:38:29 EDT 2009


I'm preparing to install Evergreen and I'm currently making sure that  
OpenSRF is installed correctly. I'm following the instructions on this  
page:

http://www.open-ils.org/dokuwiki/doku.php?id=opensrf:1.0:install

I've tried to follow the instructions exactly and while things work,  
I'm having service issues. I would appreciate some pointers for what  
to look for.

If I run the following set of steps via the private or public domain  
(i.e. via my accounts set up as private or public user), I can start  
OpenSRF but I can't actually access the opensrf.math service:

> publicuser at evergreen:~$ /openils/bin/srfsh
> srfsh# request opensrf.math add 2 2
> Unable to communicate with service opensrf.math

The log /openils/var/log/opensrf.log has the following:

> srfsh 2009-06-09 08:14:03 [INFO:5985:osrf_system.c:415:]  
> Bootstrapping system with domain public.localhost, port 5222, and  
> unixpath (none)
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:282:]  
> opensrf.math session is stateless
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:293:]  
> Building a new client session with id [opensrf.math]  
> [1244553249.333127.12445532495985]
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:500:]  
> AppSession connecting to router at public.localhost/opensrf.math
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:456:] App  
> Session [opensrf.math] [1244553249.333127.12445532495985] resetting
> remote id to router at public.localhost/opensrf.math
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:639:]  
> AppSession in queue_wait with timeout 0
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:456:] App  
> Session [opensrf.math] [1244553249.333127.12445532495985] resetting
> remote id to router at public.localhost/opensrf.math
> srfsh 2009-06-09 08:14:09 [INFO:5985:osrf_app_session.c:608:]  
> [opensrf.math] sent 83 bytes of data to router at public.localhost/ 
> opensrf.math
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:611:] Sent:
>
> [{"__c":"osrfMessage","__p":{"threadTrace":"0","locale":"en- 
> US","type":"CONNECT"}}]
>
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_app_session.c:639:]  
> AppSession in queue_wait with timeout 5
> srfsh 2009-06-09 08:14:09 [INFO:5985:transport_session.c:436:]  
> Received <error> message with type cancel and code 503
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_stack.c:24:] Received  
> message from transport code from router at public.localhost/opensrf.math
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_stack.c:51:] Transport  
> handler received new message
> from router at public.localhost/opensrf.math to  
> opensrf at public.localhost/_evergreen_1244553243.108570_5985 with body
>
> [{"__c":"osrfMessage","__p":{"threadTrace":"0","locale":"en- 
> US","type":"CONNECT"}}]
>
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_stack.c:84:] We received 1  
> messages from router at public.localhost/opensrf.math
> srfsh 2009-06-09 08:14:09 [WARN:5985:osrf_stack.c:95:]  !!! Received  
> Jabber layer error message
> srfsh 2009-06-09 08:14:09 [WARN:5985:osrf_stack.c:105:]  * Jabber  
> Error is for top level remote  id [router at public.localhost/ 
> opensrf.math], no one to send my message to!  Cutting request short...
> srfsh 2009-06-09 08:14:09 [INFO:5985:osrf_stack.c:116:] Message  
> processing duration 0.000082
> srfsh 2009-06-09 08:14:09 [DEBG:5985:osrf_stack.c:119:] after msg  
> delete
> srfsh 2009-06-09 08:14:09 [ERR :5985:osrf_app_session.c:516:] cannot  
> communicate with opensrf.math
> srfsh 2009-06-09 08:14:09 [WARN:5985:srfsh.c:576:] Unable to connect  
> to remote service opensrf.math
>
> srfsh 2009-06-09 08:14:14 [DEBG:5985:socket_bundle.c:394:] removing  
> socket 3

my .opensrfsh.xml has the following:

> <?xml version="1.0"?>
> <!-- This file follows the standard bootstrap config file layout  
> found in opensrf_core.xml -->
> <srfsh>
>   <router_name>router</router_name>
>   <domain>public.localhost</domain>
>   <username>opensrf</username>
>   <passwd>*********</passwd>
>   <port>5222</port>
>   <logfile>/openils/var/log/srfsh.log</logfile>
>   <loglevel>4</loglevel>
> </srfsh>

I thought ejabberd was set up correctly, but perhaps it isn't. What  
should I be looking for?
--
Victoria Bush
Opscan Evaluation Manager
Center for Teaching, Learning & Technology
vbush at ilstu.edu





More information about the Open-ils-dev mailing list