AOLserver Chat Logs

2005/04/14

IRC [00:03] *** holycow joined the chat.
IRC [01:22] *** holycow parted the chat.
IRC [01:31] *** tekbasse joined the chat.
IRC [02:45] *** Nad joined the chat.
IRC [02:49] *** Nad parted the chat.
IRC [02:49] *** Nad joined the chat.
IRC [02:55] *** Nad parted the chat.
IRC [04:56] *** frankie joined the chat.
IRC [06:20] *** frankie parted the chat.
IRC [06:21] *** frankie joined the chat.
IRC [06:43] *** holycow joined the chat.
IRC [08:27] *** holycow parted the chat.
IRC [09:49] *** dek joined the chat.
IRC [09:52] <dek> Hi is there a way to do this, ask for authentication then if it pass do a directory listing in aolserver?
IRC [09:53] <dek> ala .htaccess in apache
IRC [09:55] <martinh> ns_perm would be what you need to look into.
IRC [09:56] <dek> thanks i'm reading about it right now
IRC [09:56] <dek> does aolserver support directory listing ?
IRC [09:57] <dek> sorry google is not really helping me right now
IRC [10:40] <Dossy> what's up?
IRC [10:40] <Dossy> dek: yes.
IRC [10:40] <Dossy> look at the sample-config.tcl that comes with AOLserver
IRC [10:41] <Dossy> you'd use nsperm to do the access permissions, and look for the "directorylisting" ns_param in the sample-config.tcl to enable directory listings.
IRC [10:49] <dek> thanks :)
IRC [10:56] <dek> can i do directory listing on certain directories only? Thanks again im reading the sample- config right now
IRC [11:04] <Dossy> you kinda can. it's not "simple" though.
IRC [11:49] <dek> i added ns_param directoryproc ns_dirlist ;
IRC [11:49] <dek> ns_param directorylisting simple and restarted aolserver
IRC [11:50] <dek> tried going to the url but still says requested url not found
IRC [11:50] <dek> sorry first time using aolserver tried looking at google first but no luck before asking :)
IRC [12:02] <dek> there ya go :) now it's working
IRC [12:15] *** frankie parted the chat.
IRC [12:38] <dek> thanks Dossy nsperm worked like i expected :
IRC [12:38] <dek> :)
IRC [13:33] <Dossy> cool.
IRC [15:03] *** tekbasse parted the chat.
IRC [15:07] *** tektubby joined the chat.
IRC [15:07] *** tektubby parted the chat.
IRC [15:15] *** tekbasse joined the chat.
IRC [15:37] *** bentbrian joined the chat.
IRC [15:53] *** cbowman joined the chat.
IRC [17:24] *** freenet joined the chat.
IRC [17:28] <clynne> When we last left our valiant heroines, they'd managed to get aolserver to compile and run with the nsha1 and nscache modules, and had decided not to bother with nsxml. As we join them, their final battle is still in progress: the nsoracle module.
IRC [17:31] <clynne> Yesterday, we weren't able to get nsoracle 2.7 even to compile. We tried a couple different Makefile changes, but no dice.
IRC [17:31] <clynne> Today, we tried the makefile changes suggested here:
IRC [17:31] <clynne> http://openacs.org/forums/message-view?message_id=282605
IRC [17:32] <clynne> and those allowed nsoracle 2.7 to compile, albeit with a ton of errors.
IRC [17:32] <clynne> Er. NOT with errors. With warnings.
IRC [17:34] <clynne> Hoping to eliminate some of the warnings, we DLed the most recent revision of nsoracle, 2.8, and compiled again. Still a ton of warnings, but no errors, so we decided to continue on and see if the errors mattered.
IRC [17:34] <clynne> Unfortunately, it appears the errors do matter:
IRC [17:34] <clynne> (from our startup logs...)
IRC [17:35] <clynne> [14/Apr/2005:02:06:05][2992.3086952672][-main-] Warning: modload: could not find Ns_ModuleInit in /software/stow/ao
IRC [17:35] <clynne> lserver/bin/nsoracle.so
IRC [17:35] <clynne> [14/Apr/2005:02:06:05][2992.3086952672][-main-] Fatal: modload: failed to load module '/software/stow/aolserver/bin
IRC [17:35] <clynne> Er, lemme try a prettier c&p:
IRC [17:36] <clynne> [14/Apr/2005:02:06:05][2992.3086952672][-main-] Warning: modload: could not find Ns_ModuleInit in /software/stow/aolserver/bin/nsoracle.so
IRC [17:37] <clynne> [14/Apr/2005:02:06:05][2992.3086952672][-main-] Fatal: modload: failed to load module '/software/stow/aolserver/bin/nsoracle.so
IRC [17:37] <clynne> Anyone got any suggestions?
IRC [17:41] *** bentbrian parted the chat.
IRC [17:42] <cbowman> the 2.7 code does cause a large number of warnings when compiled, but it does work.
IRC [17:42] <cbowman> I don't have any experience with the 2.8 release.
IRC [17:44] <cbowman> FYI - when you start aolserver you need to make sure that the environment vars for ORACLE_BASE and ORACLE_HOME are set to their proper values for your install of the oracle client.
IRC [17:46] <cbowman> if you do an ldd on the nsoracle.so that you built, are there any libraries that it cannot find?
IRC [17:49] <cbowman> I should mention that I'm using oracle 9i instead of 10g (which I gather your installation is for).
IRC [17:50] *** bentbrian joined the chat.
IRC [17:53] <clynne> yeah, we set ORACLE_BASE and ORACLE_HOME correctly.
IRC [17:53] <clynne> Yes, we are using 10g.
IRC [17:54] <clynne> Wow, yeah, ldd says there's a ton of libraries that it can't find:
IRC [17:55] <clynne> libclntsh.so.10.1 => not found
IRC [17:55] <clynne> libnsdb.so => not found
IRC [17:55] <clynne> libnsthread.so => not found
IRC [17:55] <clynne> libnsd.so => not found
IRC [17:56] <cbowman> are you using linux?
IRC [17:56] <cbowman> not that it really matters much.
IRC [17:56] <clynne> RHEL 4.0
IRC [17:56] <clynne> (ie, yes)
IRC [17:57] <cbowman> ok. you are missing runtime paths for the libraries.
IRC [17:57] <cbowman> I think that explains your issues.
IRC [17:59] <clynne> I now reveal my cluelessness: how would I go about determining what these paths should be and setting them?
IRC [17:59] <cbowman> at least in linux, this is easy to "fix" by setting the paths to those libraries in /etc/ld.so.conf and run ldconfig but I usually pass the runtime paths to the libraries when I build them since that's what I'm used to on Solaris.
IRC [17:59] *** holycow joined the chat.
IRC [17:59] <clynne> Just find for the libraries in the system to determine the paths?
IRC [18:00] <cbowman> the libns paths should be <path to aolerver install>/lib and the libclntsh is in your oracle lib directory ($ORACLE_HOME/lib I think...)
IRC [18:00] <clynne> Great, thankyou! I'll try that out!
IRC [18:02] <cbowman> k. alternatively, when compiling set the MODLIBS line in the nsoracle Makefile to include '-R/usr/local/aolserver/lib' and another one for the path to the oracle lib
IRC [18:03] <cbowman> you might also have to update the LDFLAGS section to have those values as well.
IRC [18:04] <clynne> That might be a better long-term solution, like to include in the disaster recovery notes.. Thanks, again.
IRC [18:05] <cbowman> welcome.
IRC [18:18] *** cbowman parted the chat.
IRC [18:52] *** cnk joined the chat.
IRC [18:55] <cnk> just for the record, the 'ldd nsoracle.so' output from clynne, is not what is happening with our AOLserver installation. We have a wrapper script that sets ORACLE_HOME and adds the oracle libraries to LD_LIBRARY_PATH. So when that environment is set, we don't have any missing Oracle libraries - but ldd doesn't know where to find the AOLserver stuff
IRC [18:55] <cnk> export ORACLE_BASE=/u01/app/oracle
IRC [18:55] <cnk> export ORACLE_HOME=$ORACLE_BASE/product/10.1.0/Db_1
IRC [18:55] <cnk> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
IRC [18:56] <cnk> ldd nsoracle.so
IRC [18:56] <cnk> libclntsh.so.10.1 => /u01/app/oracle/product/10.1.0/Db_1/lib/libclntsh.so.10.1 (0x00355000)
IRC [18:56] <cnk> libnsdb.so => not found
IRC [18:56] <cnk> libnsthread.so => not found
IRC [18:56] <cnk> libnsd.so => not found
IRC [18:56] <cnk> libtcl8.4.so => /usr/lib/libtcl8.4.so (0x00111000)
IRC [18:56] <cnk> libdl.so.2 => /lib/libdl.so.2 (0x001b9000)
IRC [18:56] <cnk> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x001bd000)
IRC [18:56] <cnk> libm.so.6 => /lib/tls/libm.so.6 (0x001cf000)
IRC [18:56] <cnk> libz.so.1 => /usr/lib/libz.so.1 (0x001f2000)
IRC [18:56] <cnk> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x002c9000)
IRC [18:56] <cnk> libc.so.6 => /lib/tls/libc.so.6 (0x00ee3000)
IRC [18:56] <cnk> libnnz10.so => /u01/app/oracle/product/10.1.0/Db_1/lib/libnnz10.so (0x01483000)
IRC [18:56] <cnk> libnsl.so.1 => /lib/libnsl.so.1 (0x00202000)
IRC [18:56] <cnk> /lib/ld-linux.so.2 (0x0033e000)
IRC [18:57] <cnk> for giggles, I did ldd on nsd, and that set paths for libnsd.so and libnsthread.so, but it doesn't try to load libnsdb.so. So we just have to assume that exists?
IRC [19:53] *** cbowman joined the chat.
IRC [19:59] <cbowman> In case nobody else answered your question: In aolserver 4, you have to explicitly load nsdb in your init.tcl
IRC [20:02] <cbowman> or nsd.tcl
IRC [20:03] <cbowman> I think that's the common name for it.
IRC [20:05] <cbowman> also, you don't load the nsoracle module in the modules section of the nsd.tcl. You need to load the nsdb module there and then create another section called ns/db/drivers, you set a param to load the nsoracle driver.
IRC [20:05] <cbowman> I believe that the nsoracle module comes with basic directions on how to change the nsd.tcl so that the oracle driver loads properly.
IRC [20:06] <cbowman> I think that's all correct and hopefully it makes enough sense, if not let us know...
IRC [20:45] <Dossy> any luck?
IRC [20:56] *** Dossy parted the chat.
IRC [20:56] *** Dossy joined the chat.
IRC [20:58] <Dossy> ugh
IRC [21:10] *** holycow parted the chat.
IRC [21:33] *** clynne parted the chat.
IRC [23:10] *** bentbrian parted the chat.