[OPEN-ILS-DEV] Startup Help

Don McMorris don.mcmorris at gmail.com
Thu Mar 15 20:29:52 EDT 2007


On 3/15/07, Cory Fuchs <cory.fuchs at ronank12.edu> wrote:
> Hello Everyone,
>
> Here is the tail of osrfsys.log
>
> tail osrfsys.log
> opensrf 2007-03-15 13:35:32 [ERR :8406:osrf_system.c:67:] Unable to
> bootstrap
> opensrf 2007-03-15 13:36:15 [INFO:8522:osrf_system.c:195:] Bootstrapping
> system with domain localhost, port 5222, and unixpath (null)
> opensrf 2007-03-15 13:36:15 [WARN:8522:socket_bundle.c:233:]
> tcp_connect(): Cannot connect to server localhost
> opensrf 2007-03-15 13:36:15 [ERR :8522:osrf_system.c:67:] Unable to
> bootstrap
> opensrf 2007-03-15 14:39:02 [INFO:8670:osrf_system.c:195:] Bootstrapping
> system with domain localhost, port 5222, and unixpath (null)
> opensrf 2007-03-15 14:39:02 [WARN:8670:socket_bundle.c:233:]
> tcp_connect(): Cannot connect to server localhost
> opensrf 2007-03-15 14:39:02 [ERR :8670:osrf_system.c:67:] Unable to
> bootstrap
> opensrf 2007-03-15 14:41:06 [INFO:8787:osrf_system.c:195:] Bootstrapping
> system with domain localhost, port 5222, and unixpath (null)
> opensrf 2007-03-15 14:41:06 [WARN:8787:socket_bundle.c:233:]
> tcp_connect(): Cannot connect to server localhost
> opensrf 2007-03-15 14:41:06 [ERR :8787:osrf_system.c:67:] Unable to
> bootstrap
>
>
>
> Here is the tail of router.log
>
> tail router.log
> router 2007-03-15 13:36:10 [INFO:8509:osrf_router_main.c:94:] Router
> adding trusted client: localhost
> router 2007-03-15 13:36:10 [WARN:8509:socket_bundle.c:233:]
> tcp_connect(): Cannot connect to server localhost
> router 2007-03-15 14:38:57 [INFO:8657:osrf_router_main.c:78:] Router
> connecting as: server: localhost port: 5222 user: router resource:
> router
> router 2007-03-15 14:38:57 [INFO:8657:osrf_router_main.c:91:] Router
> adding trusted server: localhost
> router 2007-03-15 14:38:57 [INFO:8657:osrf_router_main.c:94:] Router
> adding trusted client: localhost
> router 2007-03-15 14:38:57 [WARN:8657:socket_bundle.c:233:]
> tcp_connect(): Cannot connect to server localhost
> router 2007-03-15 14:41:01 [INFO:8774:osrf_router_main.c:78:] Router
> connecting as: server: localhost port: 5222 user: mylogin resource:
> router
> router 2007-03-15 14:41:01 [INFO:8774:osrf_router_main.c:91:] Router
> adding trusted server: localhost
> router 2007-03-15 14:41:01 [INFO:8774:osrf_router_main.c:94:] Router
> adding trusted client: localhost
> router 2007-03-15 14:41:01 [WARN:8774:socket_bundle.c:233:]
> tcp_connect(): Cannot connect to server localhost
This is where we're going to need to focus our attention (router.log).
 If you wouldn't mind, could you pastebin or e-mail your bootstrap,
opensrf, and opensrf_core configurations (with passwords censored if
desired)?

Also, what are you using for your jabberd? Are you using ChopChop or
something else like ejabberd?

Lastly, with your configurations, it may be helpful to again paste the
tail of router.log, so that whomever can help won't need to look
between 2 e-mails to help you out.

>
>
> Note the difference on user at 14:38:57 and 14:41:01.  In my
> opensrf_core.xml the under the "transport" section there is the two
> lines that say:
>
>                                 <!-- do not change this -->
>                         <username>router</username>
>
> The username for ChopChop is not router it is mylogin.  I was trying it
> both ways.
>
>
>
> Here is the ls -l /var/lib/openils/sock
>
> ls -al /var/lib/openils/sock/
> total 8
> drwxr-xr-x  2 opensrf opensrf 4096 Feb 15 16:26 .
> drwxr-xr-x 11 opensrf    root    4096 Feb 15 16:26 ..
> -rw-r--r--  1 opensrf    root       0 Feb 20 11:21
> .keep_app-misc_evergreen-0
>
>
>
> Thank you again everyone,
>
> Cory Fuchs
> Ronan School District #30
>
--Don

>
>
>
>
> -----Original Message-----
> From: open-ils-dev-bounces at list.georgialibraries.org
> [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Don
> McMorris
> Sent: Thursday, March 15, 2007 3:27 PM
> To: open-ils-dev at list.georgialibraries.org
> Subject: Re: [OPEN-ILS-DEV] Startup Help
>
> Could you post the tail of some of your logs (by default, stored in
> /openils/var/log) and a list of your OpenILS socks (an "ls -l
> /openils/var/sock" for example).  This should give us an indication of
> what is(n't) working right.
>
> Chances are (I would guess) is the router (jabber username: "router")
> isn't registering right with Jabber, and the reason why is likely in
> /openils/var/log/router.log (unless you have a different location).
>
> --Don
>
>
> On 3/15/07, Cory Fuchs <cory.fuchs at ronank12.edu> wrote:
> > It was a problem in my bootstrap.conf I had an extra space on the
> > username line.  Thank You Bill.
> >
> > Now I am getting this error.
> >
> >
> ------------------------------------------------------------------------
> > --
> > /etc/init.d/opensrf start
> >  * Starting OpenSRF ...
> > su: Authentication service cannot retrieve authentication info.
> > (Ignored)
> > Starting OpenSRF Router
> > !!!! Unable to connect router to jabber server localhost...
> > exitingStarting OpenSRF Perl
> > Starting OpenSRF C
> > Loading OpenSRF host libsrv with bootstrap config
> > /etc/openils/opensrf_core.xml and config context opensrf
> > [ ok ]
> > libsrv ~ #      (in cleanup) Dying 8518 at
> > /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/UnixServer.pm line 21
> >
> > OpenSRF::UnixServer::DESTROY('OpenSRF::UnixServer=HASH(0x89c9d10)')
> > called at /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/System.pm line 317
> >         eval {...} called at
> > /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/System.pm line 317
> >
> > OpenSRF::System::launch_settings('OpenSRF::System=HASH(0x81421c8)')
> > called at /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/System.pm line 159
> >         OpenSRF::System::bootstrap('OpenSRF::System') called at -e
> line
> > 1
> >
> >   * ! EXCEPTION ! *
> > TYPE: OpenSRF::EX::Jabber
> > Mess: Jabber Exception
> > Mess:  Could not connect to Jabber server: Invalid argument
> > Loc.: 495 OpenSRF::Transport::SlimJabber::Client
> > Loc.:
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > Time: Thu Mar 15 13:36:27 2007
> >
> ------------------------------------------------------------------------
> > ----
> >
> > I am reading that I still have something wrong with the config.  Do
> you
> > have a favorite jabber client I can test the config?  I can telnet
> into
> > port 5222 so I know it is listening.  Any other way of testing my
> > config?
> >
> >
> > Cory Fuchs
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: open-ils-dev-bounces at list.georgialibraries.org
> > [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of
> Don
> > McMorris
> > Sent: Thursday, March 15, 2007 2:48 PM
> > To: open-ils-dev at list.georgialibraries.org
> > Subject: Re: [OPEN-ILS-DEV] Startup Help
> >
> > As a diagnostic measure, you may also want to consider connecting to
> > your jabber server with a jabber client, just to ensure everything's
> > working right at the jabberd.
> >
> > I don't know how many times I've tried to fix issues like this when
> > all along it was simply an error in the server (such as... I forgot to
> > start it! ;)).
> >
> > Good Luck!
> > --Don McMorris
> >
> > On 3/15/07, Bill Erickson <billserickson at gmail.com> wrote:
> > >
> > >
> > >
> > > On 3/15/07, Cory Fuchs <cory.fuchs at ronank12.edu> wrote:
> > > >
> > > >
> > > >
> > > >
> > > > Hello Everyone,
> > > >
> > > >
> > > >
> > > > I have gotten further in my installation.  I trying to start
> opensrf
> > and I
> > > am getting the following errors.
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------
> >
> ------------------------------------------------------------------------
> > ------------------------------------
> > > >
> > > >
> > > >
> > > > /etc/init.d/opensrf start
> > > >
> > > >  * Starting OpenSRF ...
> > > >
> > > > su: Authentication service cannot retrieve authentication info.
> > > >
> > > > (Ignored)
> > > >
> > > > Starting OpenSRF Router
> > > >
> > > > !!!! Unable to connect router to jabber server localhost...
> > > exitingStarting OpenSRF Perl
> > > >
> > > >         (in cleanup) Dying 7698 at
> > > /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/UnixServer.pm line
> > > 21
> > > >
> > > >
> > > OpenSRF::UnixServer::DESTROY('OpenSRF::UnixServer=HASH(0x89c9d18)')
> > > called at
> > > /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/System.pm line 317
> > > >
> > > >         eval {...} called at
> > > /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/System.pm line 317
> > > >
> > > >
> > > OpenSRF::System::launch_settings('OpenSRF::System=HASH(0x81421c8)')
> > > called at
> > > /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/System.pm line 159
> > > >
> > > >         OpenSRF::System::bootstrap('OpenSRF::System')
> > > called at -e line 1
> > > >
> > > >
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Inbound.pm
> > > line 52.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Inbound.pm
> > > line 52.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 455.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 465.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 465.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 465.
> > > >
> > > > Use of uninitialized value in pattern match (m//) at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 478.
> > > >
> > > >   * ! EXCEPTION ! *
> > > >
> > > > TYPE: OpenSRF::EX::Config
> > > >
> > > > Mess: Config Exception
> > > >
> > > > Mess: JPeer could not load all necesarry values from config
> > > >
> > > > Loc.: 71 OpenSRF::Transport::SlimJabber::PeerConnection
> > > >
> > > > Loc.:
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/PeerConnec
> > tion.pm
> > > >
> > > > Time: Thu Mar 15 11:21:54 2007
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 489.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 489.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 489.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 491.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 491.
> > > >
> > > > Use of uninitialized value in concatenation (.) or string at
> > >
> >
> /usr/lib/perl5/vendor_perl/5.8.8/OpenSRF/Transport/SlimJabber/Client.pm
> > > line 491.
> > >
> > > From the looks of the error (Mess: JPeer could not load all
> necessary
> > values
> > > from config), it appears that jabber username, password, host,
> and/or
> > port
> > > is not correctly defined in bootstrap.conf.  Bootstrap.conf has
> > settings
> > > like the following:
> > >
> > > list:domains  = localhost
> > > username = jabber_user
> > > passwd = jabber_password
> > > port = 5222
> > >
> > > Apart from making sure the values are set (and are sane), make sure
> > there
> > > are no trailing spaces after any of the settings, because spaces can
> > become
> > > part of the value in some case.
> > >
> > > Hope this helps,
> > >
> > > -bill
> > >
> > >
> > >
> > >
> > > --
> > > Bill Erickson
> > > PINES Systems Developer
> > > Georgia Public Library Service
> > > billserickson at gmail.com
> > > http://open-ils.org
> >
>


More information about the Open-ils-dev mailing list