[OPEN-ILS-DEV] Request for installation help - OpenSRF worked initially but now fails

John H gadgetfan.john at googlemail.com
Tue May 10 14:39:54 EDT 2011


I'm having a major struggle attempting to install Evergreen 2.06 on
OpenSRF 1.6.3. I'm an experienced CP/M (!), MS-DOS and Windows user
but a relative novice with Unix in all its forms. I must have spent
more than 15 hours installing Ubuntu 10.04 and attempting to install
OpenSRF and Evergreen. I got some good help initially on the general
mailing list when I got stuck at the point of creating the database
schema - it seemed that I had to use prescribed values for the
Evergreen administrator's admin user name and password and the dbname
and I didn't know what these were. After getting over this hurdle, and
finishing the Evergreen installation (apparently successfully), I
found I couldn't log on with the staff client.

I then discovered that my OpenSRF installation - which had worked
initially, had broken. I had typed

/openils/bin/srfsh
srfsh% request opensrf.math add 2 2

and got the expected output, "Received data" etc. However, when I
retried this, it seemed the setup had somehow been broken during the
Evergreen installation. Attempts to log on gave "Received no data from
server" and, now, so did the test above.

Trying to repeat some of the OpenSRF installation instructions, I was
getting errors at "ejabberctl register", so I completely removed and
reinstalled ejabberd, which removed these errors and told me that the
users had been registered successfully.

However, after working through the remainder of the instructions and
seeing no errors, I still got "Received no data" when typing "request
opensrf.math add 2 2". I tried the troubleshooting document suggested,
but this didn't reveal any obvious problems. Increasing the logging
level and checking osrfsys.log showed some errors (in the appended
text).

I'm not surprised at "Unable to retrieve settings for host localhost"
because the instructions don't say I need to configure that exact
name, only private.localhost and public.localhost. Have I missed
something important here? After being helped a lot on the general
list, we seem to have come to a dead end, hence this appeal here for
further help...

root at RenforthU:~# pg /openils/var/log/osrfsys.log
opensrf 2011-05-09 20:10:29 [INFO:6357:osrf_system.c:628:]
Bootstrapping system with domain private.localhost, port 5222, and
unixpath (none)
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:486:]
opensrf.settings session is stateless
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:497:]
Building a new client session with id [opensrf.settings]
[1304968229.138798.13049682296357]
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:1044:]
AppSession in queue_wait with timeout 0
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:759:] App
Session [opensrf.settings] [1304968229.138798.13049682296357]
resetting remote id to router at private.localhost/opensrf.settings
opensrf 2011-05-09 20:10:29 [INFO:6357:osrf_app_session.c:991:]
[opensrf.settings] sent 189 bytes of data to router at
private.localhost/opensrf.settings
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:994:] Sent:
[{"__c":"osrfMessage","__p":{"threadTrace":"1","locale":"en-US","type":"REQUEST","payload":{"__c":"osrfMethod","__p":{"method":"opensrf.settings.host_config.get","params":["localhost"]}}}}]
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:714:]
Pushing [1] onto request queue for session [opensrf.settings]
[1304968229.138798.13049682296357]
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:275:] In
app_request receive with remaining time [60]
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:1044:]
AppSession in queue_wait with timeout 0
opensrf 2011-05-09 20:10:29 [INFO:6357:transport_session.c:667:]
Received <error> message with type cancel and code 503
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_stack.c:44:] Received
message from transport code from router at
private.localhost/opensrf.settings
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_stack.c:87:] Transport
handler received new message from router at
private.localhost/opensrf.settings to opensrf at
private.localhost/settings_grabber_RenforthU_1304968229.134682_6357
with body
[{"__c":"osrfMessage","__p":{"threadTrace":"1","locale":"en-US","type":"REQUEST","payload":{"__c":"osrfMethod","__p":{"method":"opensrf.settings.host_config.get","params":["localhost"]}}}}]
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_json_object.c:307:]
Objects malloc()'d: 162, Reusable objects captured: 2000, Objects
reused: 1941, Current List Length: 59
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_stack.c:123:] We received
1 messages from router at private.localhost/opensrf.settings
opensrf 2011-05-09 20:10:29 [WARN:6357:osrf_stack.c:134:]  !!!
Received Jabber layer error message
opensrf 2011-05-09 20:10:29 [WARN:6357:osrf_stack.c:144:]  * Jabber
Error is for top level remote  id [router at
private.localhost/opensrf.settings], no one to send my message to!
Cutting request short...
opensrf 2011-05-09 20:10:29 [INFO:6357:osrf_stack.c:159:] Message
processing duration 0.000078
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_stack.c:162:] after msg delete
opensrf 2011-05-09 20:10:29 [ERR :6357:osrf_app_session.c:281:]
Transport error in recv()
opensrf 2011-05-09 20:10:29 [ERR :6357:osrf_settings.c:117:] No
osrfMessage received from host localhost (timeout?)
opensrf 2011-05-09 20:10:29 [DEBG:6357:osrf_app_session.c:1063:]
AppSession [opensrf.settings] [1304968229.138798.13049682296357]
destroying self and deleting requests
opensrf 2011-05-09 20:10:29 [ERR :6357:osrf_settings.c:136:] Unable to
load config for host localhost
opensrf 2011-05-09 20:10:29 [DEBG:6357:socket_bundle.c:475:] removing socket 3
opensrf 2011-05-09 20:10:29 [ERR :6357:osrf_system.c:240:] Unable to
retrieve settings for host localhost from configuration file
/openils/conf/opensrf_core.xml
opensrf 2011-05-09 20:10:29 [ERR :6357:opensrf.c:38:] Server Loop
returned an error condition, exiting with -1

Thanks for your time.

--
John H
gadgetfan.john at gmail.com


More information about the Open-ils-dev mailing list