[OPEN-ILS-DEV] Re: Open-ils-dev Digest, Vol 25, Issue 14

Ardeshir Sepahsalar ardeshir at joymonk.com
Wed Apr 9 13:07:34 EDT 2008


Dan,

I reinstalled the rel_1_2_1  branch and removed all IPs from the
opensrf_core.xml (and opensrf.xml) file except for the postgresql set
up.

I used host <localhost>  but I can't connect to Jabber still.
When everything was set to localhost, I did connect fine, but got the same

I get this router logs:

router 2008-04-09 09:20:12 [INFO:7163:osrf_router_main.c:70:] Router
connecting as: server: ubuntu port: 5222 user: router resource: router
router 2008-04-09 09:20:12 [INFO:7163:osrf_router_main.c:83:] Router
adding trusted server: ubuntu
router 2008-04-09 09:20:12 [INFO:7163:osrf_router_main.c:83:] Router
adding trusted server: localhost
router 2008-04-09 09:20:12 [INFO:7163:osrf_router_main.c:86:] Router
adding trusted client: ubuntu
router 2008-04-09 09:20:12 [INFO:7163:osrf_router_main.c:86:] Router
adding trusted client: localhost
router 2008-04-09 09:20:12 [WARN:7163:transport_session.c:386:]
Received <stream:error> message from Jabber server
router 2008-04-09 09:20:12 [WARN:7163:transport_session.c:600:] ERROR
Xml fragment: Disconnected</stream:error></stream:stream>

##############  LOGS ######
############  osrfsys.log
###########################

opensrf 2008-04-09 09:20:15 [ERR :7183:osrf_system.c:67:] Unable to
bootstrap for host ubuntu from configuration file
/openils/conf/opensrf_core.xml
opensrf 2008-04-09 09:20:15 [ERR :7183:opensrf.c:25:] Server Loop
returned an error condition, exiting with -1
[2008-4-9 9:39:2] /usr/sbin/apache2 [INFO:7222:Client.pm:84:] Creating
Client instance: ubuntu:5222, evergreen, client_at_ubuntu
[2008-4-9 9:39:2] /usr/sbin/apache2 [INFO:7222:Client.pm:275:]
timed_read() read 57 bytes of data
[2008-4-9 9:39:2] /usr/sbin/apache2 [ERR :7222:EX.pm:66:]   * ! EXCEPTION ! *
TYPE: OpenSRF::EX::Jabber
Mess: Jabber Exception
Mess:  * evergreen at ubuntu/client_at_ubuntu: Unable to authenticate:
<stream:error>Disconnected</stream:error>
Loc.: 535 OpenSRF::Transport::SlimJabber::Client
Loc.: /openils/lib/perl5/OpenSRF/Transport/SlimJabber/Client.pm
Time: Wed Apr  9 09:39:02 2008

##########  LOGS       ##########
##########  gateway.log    #######
##############################


gateway 2008-04-09 09:39:02 [INFO:7222:osrf_system.c:267:]
Bootstrapping system with domain ubuntu, port 5222, and unixpath
(none)
gateway 2008-04-09 09:39:02 [WARN:7222:transport_session.c:386:]
Received <stream:error> message from Jabber server
gateway 2008-04-09 09:39:02 [WARN:7222:transport_session.c:600:] ERROR
Xml fragment: Disconnected</stream:error></stream:stream>


Also, when comparing your dir tree with my tree -L 2 /openils/ I
noticed that mine was missing  the javascript folder from lib
Is this why none of the search buttons or My Account works?
Also, I tarred the Client and loaded xulrunner for windows, and it
sees the Server okay (yeaaa!!), but gives me the following SSL errors:

[ The Certificate is not trusted because it is self signed
The Certificate is not valid for any server names.  ]

I followed these directions: sudo mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
sudo openssl req -new -x509 -nodes -out server.crt -keyout server.key

How do I get the client to accept the hand shake??
My /openils/   from rel_1_2_1  branch

> tree -L 2 /openils/
/openils/
|-- bin
|   |-- autogen.sh
|   |-- chopchop
|   |-- fieldmapper.pl
|   |-- offline-blocked-list.pl
|   |-- oils_ctl.sh
|   |-- oils_dataloader
|   |-- oils_requestor
|   |-- opensrf-c
|   |-- opensrf_router
|   |-- org_tree_html_options.pl
|   |-- org_tree_js.pl
|   |-- osrf_ctl.sh
|   `-- srfsh
|-- conf
|   |-- fm_IDL.xml
|   |-- lib_ips.txt
|   |-- lib_ips.txt.example
|   |-- live-db-setup.pl
|   |-- offline-config.pl
|   |-- oils_sip.xml.example
|   |-- opensrf.xml
|   |-- opensrf.xml.example
|   |-- opensrf_core.xml
|   |-- opensrf_core.xml.example
|   `-- srfsh.xml.example
|-- erl_crash.dump
|-- include
|   |-- objson
|   |-- openils
|   `-- opensrf
|-- lib
|   |-- libobjson.so
|   |-- liboils_idl.so
|   |-- liboils_utils.so
|   |-- libopensrf.so
|   |-- oils_auth.so
|   |-- oils_cstore.so
|   |-- oils_rstore.so
|   |-- osrf_dbmath.so
|   |-- osrf_math.so
|   |-- osrf_version.so
|   `-- perl5
`-- var
    |-- admin
    |-- catalog
    |-- cgi-bin
    |-- circ
    |-- data
    |-- log
    |-- penalty
    |-- pid
    |-- reporter
    |-- sock
    |-- templates
    |-- web
    `-- xsl

22 directories, 35 files
-------------- next part --------------
<?xml version="1.0"?>
<config>

  <!-- bootstrap config for OpenSRF apps -->
  <opensrf>

    <!-- The OpenSRF Routers's name on the network -->
    <!-- You should never need to change thischange this -->
    <router_name>router</router_name>

    <routers>

      <!-- List of router domains we should register with. 
        We must at least have our default jabber domain in here -->
      <router>localhost</router>

    </routers>
    <domains>

      <!-- Our jabber domain, currently only one domain is supported -->
      <domain>localhost</domain>

    </domains>
    <username>evergreen</username>
    <passwd>getaj0bn0w</passwd>
    <port>5222</port>

    <!-- log to a local file -->
    <logfile>/openils/var/log/osrfsys.log</logfile>

    <!-- Log to syslog. You can use this same layout for 
        defining the logging of all services in this file -->
<!--
    <logfile>syslog</logfile>
    <syslog>local2</syslog>
    <actlog>local1</actlog>
-->

    <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug, 5 Internal (Nasty) -->
    <loglevel>3</loglevel>

    <!-- config file for the services -->
    <settings_config>/openils/conf/opensrf.xml</settings_config>

  </opensrf>

  <!-- Update this if you use ChopChop -->
  <chopchop>

    <!-- Our jabber server -->
    <domain>localhost</domain>
    <port>5222</port>

    <!-- used when multiple servers need to communicate -->
    <s2sport>5269</s2sport>
    <secret>secret</secret>
    <listen_address>10.3.3.201</listen_address>
    <loglevel>3</loglevel>
    <logfile>/openils/var/log/osrfsys.log</logfile>
  </chopchop>

  <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
  <gateway>

    <!-- we consider ourselves to be the "originating" client for requests,
            which means we define the log XID string for log traces -->
    <client>true</client>

    <!--  the routers's name on the network -->
    <router_name>router</router_name>

    <!-- jabber domains to connect to (domain1, domain2, ...) -->
    <domains>
      <domain>localhost</domain>
    </domains>

<!-- These are the services that the gateway will serve. 
	Any other requests will receive an HTTP_NOT_FOUND (404) 
	DO NOT put any services here that you don't want the internet to have access to
-->
    <services>
      <service>opensrf.math</service>
      <service>open-ils.cat</service>
      <service>open-ils.search</service>
      <service>open-ils.circ</service>
      <service>open-ils.actor</service>
      <service>open-ils.auth</service>
    </services>

    <!-- jabber login info -->
    <username>evergreen</username>
    <passwd>getaj0bn0w</passwd>
    <port>5222</port>
    <logfile>/openils/var/log/gateway.log</logfile>
    <loglevel>3</loglevel>

  </gateway>

  <!-- ======================================================================================== -->

  <router>

    <!-- do not change -->
    <component>0</component>

    <trusted_domains>

      <!-- Trusted servers are allowed to register apps with the router -->
      <server>ubuntu</server>
      <server>localhost</server>
      <!-- Trusted clients are allowed to send packets through the router -->
      <client>ubuntu</client>
      <client>localhost</client>


    </trusted_domains>

    <transport>

      <!-- jabber server are we connecting to -->
      <server>localhost</server>
      <port>5222</port>

      <!-- if this is changed, all "router_name" settings 
                will need to be updated to match this setting -->
      <username>router</username>
      <password>getaj0bn0w</password>

      <!-- router's jabber resource -->
      <!-- do not change this -->
      <resource>router</resource>
      <connect_timeout>10</connect_timeout>
      <max_reconnect_attempts>5</max_reconnect_attempts>

    </transport>
    <logfile>/openils/var/log/router.log</logfile>
    <loglevel>3</loglevel>

  </router>

  <!-- ======================================================================================== -->

</config>


More information about the Open-ils-dev mailing list