[OPEN-ILS-DEV] startup problems

Rene Paquin rpaquin at wlu.ca
Wed Apr 11 15:36:31 EDT 2007


Thanks for the reply.  This project certainly is a learning experience
for me.   After doing what you have suggested and doing more work with
the config files I am now getting different errors.

Here is what i get now.  




Starting OpenSRF Router
I/O warning : failed to load external entity
"/openils/conf/opensrf_core.xml"
Log file needed

*** the odd thing is that the all the config files point to the
/openils/var/log/ directory yet nothing gets logged*****

Starting OpenSRF Perl
        (in cleanup) Dying 16965 at
/openils/lib/perl5/OpenSRF/UnixServer.pm line 21
       
OpenSRF::UnixServer::DESTROY('OpenSRF::UnixServer=HASH(0x8b06fb8)')
called at /openils/lib/perl5/OpenSRF/System.pm line 317
        eval {...} called at /openils/lib/perl5/OpenSRF/System.pm line
317
       
OpenSRF::System::launch_settings('OpenSRF::System=HASH(0x814ec28)')
called at /openils/lib/perl5/OpenSRF/System.pm line 159
        OpenSRF::System::bootstrap('OpenSRF::System') called at -e line
1

  * ! EXCEPTION ! *
TYPE: OpenSRF::EX::Jabber
Mess: Jabber Exception
Mess:  * ejabberd at localhost/system_client_drone_at_tamarak.wlu.ca:
Unable to authenticate: <iq type='error' id='123'>

*****************however I can connect via telnet and the ejabberds logs
indicate this:  
=INFO REPORT==== 2007-04-11 13:14:14 ===
I(<0.4691.0>:ejabberd_listener:90): (#Port<0.6488>) Accepted connection
{{127,0,0,1},34514} -> {{127,0,0,1},5222}

=INFO REPORT==== 2007-04-11 13:14:14 ===
I(<0.10172.0>:ejabberd_c2s:417): (#Port<0.6488>) Failed legacy
authentication for
ejabberd at localhost/opensrf.settings_listener_at_tamarak.wlu.ca_2536 
**************************************************


Mess: <query xmlns='jabber:iq:auth'>
Mess: <username>*******</username>
Mess: <password>*******</password>
Mess: <resource>system_client_drone_at_tamarak.wlu.ca_16962</resource>
Mess: </query>
Mess: <error code='401' type='auth'><not-authorized
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
Loc.: 535 OpenSRF::Transport::SlimJabber::Client
Loc.: /openils/lib/perl5/OpenSRF/Transport/SlimJabber/Client.pm
Time: Wed Apr 11 06:36:42 2007
Starting OpenSRF C (host=tamarak.wlu.ca)
Loading OpenSRF host tamarak.wlu.ca with bootstrap config
/openils/conf/opensrf_core.xml and config context opensrf
I/O warning : failed to load external entity
"/openils/conf/opensrf_core.xml"
./osrf_ctl.sh: line 139: 16971 Segmentation fault      opensrf-c $host
$OPT_C_CONFIG opensrf
tamarak:/openils/bin$

************* I also get segmentaion errors in the apache error logs
when I load 
    OSRFGatewayConfig /openils/conf/opensrf_core.xml       in the
eg_vhost.conf.  When it is remarked out the segmented errors go
away.******************************



**************************************************************************************************************************
***************************************************************************************************************************************************************************
>>> denials at gmail.com 04/10/07 3:40 PM >>>
On 10/04/07, Rene Paquin <rpaquin at wlu.ca> wrote:
> I seem to have hit a wall.  I am at the point of trying to start the
> system and I am running into some difficulties.
>
> Here is what i get.
>
> tamarak:/openils/bin$ ./osrf_ctl.sh -d /tmp/ -p
> /openils/conf/bootstrap.conf -c /openils/conf/opensrf_core.xml -a
> start_all
> Starting OpenSRF Router
> ./osrf_ctl.sh: line 113: opensrf_router: command not found

Try setting your PATH environment variable to include /openils/bin, a
la:

export PATH=/openils/bin:$PATH

> Starting OpenSRF Perl
> Can't locate OpenSRF/System.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
> /usr/local/lib/site_perl .).
> BEGIN failed--compilation aborted.

Here you need to set your PERL5LIB environment variable to include
/openils/lib/perl5:

export PERL5LIB=/openils/lib/perl5:$PERL5LIB

> Starting OpenSRF C (host=tamarak.wlu.ca)
> ./osrf_ctl.sh: line 142: opensrf-c: command not found

This is the same PATH problem as above.

These instructions are part of the Gentoo install instructions, but a
quick search on "PERL5LIB" in the wiki suggests that they might not be
part of the instructions for other distributions -- the generic
instructions at
http://open-ils.org/dokuwiki/doku.php?id=building_and_installing_the_source
probably aren't explicit enough for the preferred way each
distribution handles environment variables. I volunteered about a week
ago to try to restructure the install documents so that they are more
like the Gentoo install instructions, with a template for new
distributions / operating systems to follow that will hopefully
include each and every step in excruciating detail :)

Dan Scott



More information about the Open-ils-dev mailing list