[OPEN-ILS-DEV] OrgTree.js created with null size

Dan Scott denials at gmail.com
Fri May 11 07:51:35 EDT 2007


Well, another hurdle down, another to jump over.

>From srfsh, can you run:

srfsh# introspect open-ils.cstore

... just to make absolutely sure that cstore is running successfully.

I do see you have the db password set as ######## at one point in your
openils.xml, but in other places it is set to "postgres". Just another
thing worth checking...

One way of getting the configs out of the VMWare image is to start up
the VMWare image, then sftp into it. I can walk you through that
later, if need be.

Dan

On 11/05/07, Hennie Rautenbach <hennie at sabinet.co.za> wrote:
> Hennie Rautenbach wrote:
> > Dan Scott wrote:
> >> Okay, so the problem is that your libdbi-driver is not linked against
> >> libdbi.You should have seen a line like:
> >>
> >>       libdbi.so.0 => /usr/lib/dbd/libdbi.so.0
> >>
> >> It looks like you used an RPM that doesn't link the two together.
> >> You're going to have to uninstall the RPM and build libdbi and
> >> libdbi-drivers from source.
> >>
> >> See http://open-ils.org/dokuwiki/doku.php?id=libdbi for the instructions
> >>
> >> I would recommend trying the configure step for libdbi-drivers without
> >> the --with-pgsql argument first. If that fails, then you'll have to
> >> track down the correct location (probably /usr) to specify for the
> >> argument.
> >>
> >> Dan
> >
> > Okay Dan, I understand. Will do first thing tomorrow.
>
> I have downloaded the source and compiled/installed the libraries...
>
> leo:~# /sbin/ldconfig -p | grep libdbi
>         libdbi.so.0 (libc6) => /usr/lib/libdbi.so.0
>         libdbi.so (libc6) => /usr/lib/libdbi.so
>
> leo:~# ldconfig -p | grep libdbdpgsql.so
>         libdbdpgsql.so (libc6) => /usr/lib/dbd/libdbdpgsql.so
>
> leo:~# ldd /usr/lib/libdbi.so.0
>         linux-gate.so.1 =>  (0xffffe000)
>         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f1a000)
>         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ef4000)
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dc3000)
>         /lib/ld-linux.so.2 (0x80000000)
>
> leo:~# ldd /usr/lib/dbd/libdbdpgsql.so
>         linux-gate.so.1 =>  (0xffffe000)
>         libpq.so.4 => /usr/lib/libpq.so.4 (0xb7ef9000)
> ##> libdbi.so.0 => /usr/lib/libdbi.so.0 (0xb7eec000) <##
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dbb000)
>         libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7d7c000)
>         libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8
> (0xb7c42000)
>         libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7bc6000)
>         libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7bc3000)
>         libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7b94000)
>         libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7b82000)
>         libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7b7e000)
>         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7b59000)
>         /lib/ld-linux.so.2 (0x80000000)
>         libz.so.1 => /usr/lib/libz.so.1 (0xb7b45000)
>         libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb7b1f000)
>         libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7b0c000)
>         libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb7b07000)
>
> I restarted Evergreen. Only anomalies I see:
>
> opensrf at leo:~$ ps -ef | grep defun
> opensrf  23506 23492  7 12:42 pts/0    00:00:01 [perl] <defunct>
> opensrf  23559 23351  0 12:42 pts/0    00:00:00 grep defun
>
> Still no open-ils.storage_unix.log (or sock).
>
> opensrf at leo:~$ ls -alF ../var/log
> total 968
> drwxr-xr-x  2 opensrf opensrf     96 2007-05-11 12:42 ./
> drwxr-xr-x 15 opensrf opensrf   4096 2007-05-07 21:03 ../
> -rw-r--r--  1 opensrf opensrf    261 2007-05-11 12:42
> open-ils.actor_unix.log
> -rw-r--r--  1 opensrf opensrf    259 2007-05-11 12:42 open-ils.cat_unix.log
> -rw-r--r--  1 opensrf opensrf    260 2007-05-11 12:42 open-ils.circ_unix.log
> -rw-r--r--  1 opensrf opensrf    262 2007-05-11 12:42
> open-ils.ingest-unix.log
> -rw-r--r--  1 opensrf opensrf    263 2007-05-11 12:42
> open-ils.penalty_unix.log
> -rw-r--r--  1 opensrf opensrf    262 2007-05-11 12:42
> open-ils.search_unix.log
> -rw-r--r--  1 opensrf opensrf    264 2007-05-11 12:42
> open-ils.supercat_unix.log
> -rw-r--r--  1 opensrf opensrf    266 2007-05-11 12:42
> opensrf.collections_unix.log
> -rw-r--r--  1 opensrf opensrf    263 2007-05-11 12:42
> opensrf.reporter_unix.log
> -rw-r--r--  1 opensrf opensrf    263 2007-05-11 12:42
> opensrf.settings_unix.log
> -rw-r--r--  1 opensrf opensrf 925713 2007-05-11 12:42 osrfsys.log
> -rw-r--r--  1 opensrf opensrf   4861 2007-05-11 12:42 router.log
>
>  From the osrfsys.log file:
>
> <lots of class generation INFO messages trimmed>
> open-ils.reporter-store 2007-05-11 12:42:47
> [INFO:23550:oils_cstore.c:256:] open-ils.reporter-store successfully
> connected to the database
> opensrf 2007-05-11 12:42:47 [INFO:23540:oils_cstore.c:141:] Generating
> class methods for arn
> opensrf 2007-05-11 12:42:47 [INFO:23540:oils_cstore.c:141:] Generating
> class methods for ahn
> opensrf 2007-05-11 12:42:47 [INFO:23540:oils_cstore.c:141:] Generating
> class methods for bren
> opensrf 2007-05-11 12:42:47 [INFO:23540:osrf_application.c:54:]
> Application open-ils.cstore registered successfully
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_application.c:77:]
> registering exit handler for open-ils.cstore
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_prefork.c:26:]
> Loading config in osrf_forker for app open-ils.cstore
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_prefork.c:41:]
> keepalive setting = 6 seconds
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_system.c:195:]
> Bootstrapping system with domain leo.sabinet.co.za, port 5222, and
> unixpath (null)
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_prefork.c:245:]
> Prefork launching child with max_request=400,min_children=1, max_children=15
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23552:osrf_system.c:195:]
> Bootstrapping system with domain leo.sabinet.co.za, port 5222, and
> unixpath (null)
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_prefork.c:101:]
> router name is router and we have 1 routers to connect to
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_prefork.c:108:]
> Registering with router router at leo.sabinet.co.za/router
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23540:osrf_prefork.c:84:]
> Launching osrf_forker for app open-ils.cstore
> open-ils.cstore 2007-05-11 12:42:47 [INFO:23552:oils_cstore.c:234:]
> open-ils.cstore connecting to database.  host=leo.sabinet.co.za,
> port=5432, user=postgres, pw=########, db=evergreen
> open-ils.cstore 2007-05-11 12:42:48 [INFO:23552:oils_cstore.c:256:]
> open-ils.cstore successfully connected to the database
> open-ils.reporter-store 2007-05-11 12:42:48
> [INFO:23550:osrf_application.c:103:] open-ils.reporter-store child init
> succeeded
> open-ils.cstore 2007-05-11 12:42:48 [INFO:23552:osrf_application.c:103:]
> open-ils.cstore child init succeeded
>
>
> The bench works:
>
> srfsh# math_bench 10 2
> |.........|.........|.........|.........|.........|.........|.........|.........|.........|.........
>
> ++++++++++++++++++++++++++++++++++++++++
>       Average round trip time: 0.003739
>
> But ! <the sad part> The OrgTree.js creation still fails:
>
> opensrf at leo:~$ /openils/bin/autogen.sh ../conf/bootstrap.conf
> Updating fieldmapper
> Updating web_fieldmapper
> Updating OrgTree
> removing OrgTree from the cache...
> Can't call method "method_lookup" on an undefined value at
> /openils/lib/perl5/OpenSRF/Application.pm line 103.
> Updating OrgTree HTML
> Can't call method "method_lookup" on an undefined value at
> /openils/lib/perl5/OpenSRF/Application.pm line 103.
> Done
>
> I pulled over the Gentoo VMWare image to try what was tried by another
> subscriber (to use the Gentoo config files). I am unfamiliar with these
> images so don't know how to get the config out. <puzzled ?> That after I
> pulled the 500+ Mb over the Atlantic over a very slow Sat link :-) Sure
> it resulted in a peak on 'someone's' MRTG graph.
>
> So folks, if any of you have any other ideas I'd be most keen to hear them.
>
> Best regards,
>
> Hennie
>
>
> --------------------------------------------------------------------------------
>
> This transmission is for the intended addressee only and is confidential
> information. If you have received this transmission in error, please
> delete it and notify the sender. The contents of this e-mail are the
> opinion of the writer only and are not endorsed by Sabinet Online
> Limited unless expressly stated otherwise.
> --------------------------------------------------------------------------------
>


-- 
Dan Scott
Laurentian University


More information about the Open-ils-dev mailing list