AOLserver Chat Logs

2007/05/31

IRC [00:01] *** cacrus parted the chat.
IRC [00:12] *** cacrus joined the chat.
IRC [00:18] *** cacrus parted the chat.
IRC [00:43] *** cacrus joined the chat.
IRC [00:47] *** cacrus parted the chat.
IRC [00:47] *** cacrus joined the chat.
IRC [00:52] *** cacrus parted the chat.
IRC [00:53] *** cacrus joined the chat.
IRC [08:39] *** partymola joined the chat.
IRC [08:40] <partymola> hi
IRC [08:40] <partymola> Houston, I have a problem.
IRC [08:41] <frankie> who not
IRC [08:41] <partymola> If I redirect 404 errors to a page, to give fancy errors via "ns/server/servername/redirects" , ns_param 404 $url ... it works perfect, and the user is given a good error page... but then, looking at logs, i see a 200 error, and i'd like to see a 404... ;(
IRC [08:43] <frankie> a successful redirect is not a NOT FOUND
IRC [08:45] <frankie> i think that's expected
IRC [08:47] <Dossy> yeah, partymola--that's a bug
IRC [08:48] <Dossy> frankie--that would make the most sense, but typically it seems folks expect the 404 status regardless.
IRC [08:48] <Dossy> really, waht we need is an ns_adp_ctl directive to set the HTTP status code
IRC [08:48] <Dossy> so, by default it'll remain a 404, but if the programmer /wants/ a 200, they can set it
IRC [08:49] <frankie> anyone know what *cough* that other web server *cough* logs?
IRC [08:49] <partymola> where can it be changed? i need it! i need it!!! :O
IRC [08:50] <partymola> when*
IRC [08:52] <partymola> well, as a temporary measure, i'll take down the 403 and 404 fancy error redirects
IRC [09:29] <Dossy> frankie, pretty sure it's 404, which is why this is seen as "a bug" :)
IRC [09:31] <partymola> yes, a 404 should be expected
IRC [09:32] <partymola> so what's going to be done on that?
IRC [09:32] <partymola> i mean... what's the supposed methodology to fix "bugs" ?
IRC [09:33] <partymola> someone solves it and sends a patch?
IRC [09:34] <partymola> what's the solution in this case? returning the http code like if the error hadn't been redirected? creating a new command that lets you change the response code in the page you redirected to?
IRC [09:48] <Dossy> Sure.
IRC [09:49] <Dossy> yes, preserving the initial HTTP status code.
IRC [09:49] <Dossy> and/or introducing the ns_adp_ctl status ?code?
IRC [09:49] <Dossy> or whatnot
IRC [09:56] <partymola> probably ns_adp_ctl is the "cleanest" way, since that won't broke legacy
IRC [09:56] <partymola> break*
IRC [09:57] <partymola> but, well, if everyone considers current behaviour is not correct at all, then preserving HTTP status code is the better
IRC [09:57] <partymola> that depends on YOU, Dossy
IRC [09:58] <partymola> you're the one who must choose what to do xD
IRC [10:18] <Dossy> :) I do think the status code should be preserved, but I think you should be able to change it through application code.
IRC [10:23] <partymola> ok, so change default behaviour to preserve status, AND add the extra command to change it explictly
IRC [10:28] <Dossy> Yes, that's what I think is the right way to go.
IRC [10:29] <Dossy> My gut says that most users want the status preserved. However, in select situations, being able to respond with a different status code is important.
IRC [10:29] <partymola> ok, i agree with you
IRC [10:29] <partymola> that's the best solution
IRC [10:29] <partymola> but who knows if some ppl will complain because of the change of behaviour...
IRC [10:34] <Dossy> We'll deal with that when it happens. :-)
IRC [10:38] <partymola> okey, i've sent a mail to our mailing list
IRC [10:38] <partymola> asking for someone to fix it
IRC [10:38] <partymola> i am too busy to handle it, but maybe nodie can take a look at it
IRC [10:38] <Dossy> Cool.
IRC [10:40] <partymola> I am working on an stats system to draw graphs of visits to pages & such kind of stats, and when i was going to generate a list of requests that returned 404... i was surprised that there were 0 of them... so that's why I am interested in changing this thing
IRC [10:40] <Dossy> Ooh. "Review Board" looks cool--should set one up for AOLserver.
IRC [10:40] <partymola> i collect data from AOLServer logs, and put it into a PostgreSQL database
IRC [10:40] <Dossy> yup.
IRC [10:40] <Dossy> Like what Splunk does now?
IRC [10:41] <partymola> splunk? never heard of it
IRC [10:41] <Dossy> http://www.splunk.com/
IRC [10:42] <Dossy> Heh, there's even a free Splunk license now, nice.
IRC [11:04] *** daguz joined the chat.
IRC [12:16] <partymola> i perfer having my own system :)
IRC [12:16] <partymola> prefer*
IRC [12:17] <partymola> i can do whatever query i want using SQL, and later show it with graphics, tables, or whatever
IRC [12:41] <Dossy> sure, although Splunk is pretty thorough
IRC [13:31] *** partymola parted the chat.
IRC [14:58] *** shedi joined the chat.
IRC [15:03] <shedi> knock knock!
IRC [15:08] <shedi> hi dossy
IRC [15:28] <Dossy> hi, shedi.
IRC [15:28] <shedi> hey dossy, glad to get in touch with you again.
IRC [15:28] <shedi> finally managed to setup the development environment.
IRC [15:28] <Dossy> How's it going?
IRC [15:28] <Dossy> Great!
IRC [15:29] <shedi> good, been busy with lots of beaurocracy here in trukey.
IRC [15:29] <Dossy> aww :-(
IRC [15:29] <shedi> how about yourself?
IRC [15:29] <Dossy> Keeping very busy--always too much to do, not enough time.
IRC [15:30] <shedi> yes the time.
IRC [15:31] <shedi> i managed to compile the 4.5 on win but when trying to run i'm getting this msvcr8.dll error.
IRC [15:31] <shedi> any ides.
IRC [15:31] <shedi> my dev environment is windows server 2003 sp2
IRC [15:31] <Dossy> Do you have msvcrt8.dll in your PATH somewhere?
IRC [15:32] <shedi> visual c++ 2005 express edition
IRC [15:32] <shedi> let me check the path
IRC [15:33] <shedi> its not under system32, but i tried coping it to the aol bin folder, no luck.
IRC [15:35] <Dossy> yesh.
IRC [15:35] <Dossy> put a copy in system32
IRC [15:35] <shedi> when compiling tcl for aolserver do you have any preference for the options.
IRC [15:35] <Dossy> threaded ...
IRC [15:36] <Dossy> that's pretty much the only real requirement, I think
IRC [15:36] <shedi> i'm using this: nmake -f makefile.vc release INSTALLDIR=c:\aolserver OPTS=threads,thrdalloc
IRC [15:36] <Dossy> Yup, that looks good
IRC [15:36] <shedi> let me have another go and turn back to you.
IRC [15:57] <Dossy> Did that work, putting MSVCRT80.DLL in your SYSTEM32 dir?
IRC [16:05] <shedi> after copying to system32 i'm getting a different error.
IRC [16:05] <shedi> Microsoft Visual c++ runtime library.
IRC [16:05] <shedi> runtime error
IRC [16:05] <shedi> program: c:\aolserver\nsd.exe
IRC [16:06] <shedi> R6034
IRC [16:06] <shedi> an application has made an attempt to load the c runtime library incorrectly.
IRC [16:06] <shedi> any clues. not sure what i'm doing wrong.
IRC [16:08] <Dossy> did you see Patrick O'Leary's response to your eemail
IRC [16:09] <Dossy> Apparently, the MSVC++ Express Edition needs a .manifest file?
IRC [16:09] * Dossy shrugs--first time I'd seen that
IRC [16:09] <shedi> yes, i notice after compiling nsd.exe under src/nsd directory there's a manifest file.
IRC [16:10] <shedi> i copied it to bin but that again got the runtime error.
IRC [16:10] <Dossy> oh?
IRC [16:10] <Dossy> named nsd.exe.manifest?
IRC [16:10] <shedi> yes.
IRC [16:11] <Dossy> you read http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=94312&SiteID=1
IRC [16:11] <shedi> infact under each src module directory there's manifest file for that module.
IRC [16:11] <shedi> let have a look at this url.
IRC [16:13] <Dossy> for which module?
IRC [16:13] <Dossy> yes--you need to copy all the manifests over
IRC [16:13] <Dossy> I don't think the current Makefile's do that.
IRC [16:13] <Dossy> frankly, needing an external manifest is annoying.
IRC [16:37] <shedi> after copying all the manifest files to aol\bin, and when i run it
IRC [16:37] <shedi> bin\nsd.exe -ft sample-config.tcl
IRC [16:38] <shedi> NsTclInitObjs: sizeof(obj.internalRep) < sizeof(Ns_Time)
IRC [16:38] <shedi> This application has requested the Runtime to terminate it in an unusual way.
IRC [16:38] <shedi> Please contact the application's support team for more information.
IRC [16:38] <shedi> i'm doing following steps to compile aolserver
IRC [16:39] <shedi> 1. from command prompt: "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
IRC [16:39] <shedi> 2. "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd" /SRV32 /RETAIL
IRC [16:39] <shedi> c:\aolserver\srcdir> c:\aolserver\bin\tclsh84t.exe nsconfig.tcl
IRC [16:40] <shedi> last step. c:\aolserver\srcdir> c:\aolserver\bin\tclsh84t.exe nsconfig.tcl
IRC [16:40] <shedi> opps. last step is nmake install
IRC [16:40] <shedi> i'm not so sure about the 2 step...
IRC [17:04] <Dossy> are you on x64?
IRC [17:04] <Dossy> That error you got means AOLserver compiled--it's just failing some other check now.
IRC [17:05] <shedi> no 32bit
IRC [17:05] <Dossy> nsd/tclobj.c:
IRC [17:05] <Dossy> if (sizeof(obj.internalRep) < sizeof(Ns_Time)) {
IRC [17:05] <Dossy> Tcl_Panic("NsTclInitObjs: sizeof(obj.internalRep) < sizeof(Ns_Time)");
IRC [17:05] <Dossy> }
IRC [17:06] <Dossy> Interesting ... did you compile 64-bit?
IRC [17:06] *** daveb joined the chat.
IRC [17:06] <shedi> nop. have not tried it yet.
IRC [17:06] <daveb> can I load two copies of nsopenssl like nssock?
IRC [17:07] <daveb> nevermind i found the section to set the ip address :)
IRC [17:08] <shedi> what setup you have got running?
IRC [17:11] <daveb> well i need to serve two different domains
IRC [17:11] <daveb> so I'd like to load nssock twice and have two different certificates
IRC [17:11] <daveb> trying that now
IRC [17:15] <Dossy> daveb: i actually don't think you can load nsopenssl multiple times.
IRC [17:15] <daveb> darn!
IRC [17:15] <daveb> hmmm.
IRC [17:15] <Dossy> daveb: but, you can configure multiple contexts.
IRC [17:15] <daveb> ok.
IRC [17:15] <daveb> yeah
IRC [17:15] <daveb> that is what i need to do.
IRC [17:15] <Dossy> each context listening on a ip/port.
IRC [17:18] <shedi> sandman's coming. dossy i'll search and try to figure it out.
IRC [17:20] <daveb> Dossy: yeah that's it. thanks!
IRC [17:20] <daveb> i realized that reading the config file.
IRC [17:21] <Dossy> ok, shedi -- check back in another time if you want to try again
IRC [17:23] <shedi> dossy, how to build on win32 page talks about build.tcl . how i can get the latest HEAD
IRC [17:31] *** shedi parted the chat.
IRC [17:38] <daveb> woohoo it works!
IRC [17:44] <Dossy> oh?
IRC [17:44] <Dossy> shedi: in CVS, most likely ... but that's old news now
IRC [19:25] *** superskrull joined the chat.
IRC [19:25] <superskrull> hello
IRC [19:25] <superskrull> anyone home
IRC [19:26] <superskrull> I compiled tcl, then installed aolserver 4.5 on redhat linux
IRC [19:26] <superskrull> the path of tclsh /usr/local/bin/tclsh8.4 was specified when I launched the aolserver install
IRC [19:26] <superskrull> now when I start aolserver
IRC [19:26] <superskrull> it compains it can't find libtcl8.4.so
IRC [19:27] <superskrull> but that exists on the filesystem, /usr/local/lib/libtcl8.4.so
IRC [19:27] <superskrull> I must have missed some path switch during install
IRC [19:27] <superskrull> .....
IRC [19:29] <superskrull> tcl has threads enabled
IRC [19:29] <superskrull> hm
IRC [19:39] <Dossy> check your LD_LIBRARY_PATH, and make sure /usr/local/lib is in it.
IRC [19:47] <superskrull> ok
IRC [19:48] <superskrull> I made a symlink from /usr/local/lib/libtcl8.4 to /usr/lib and it worked
IRC [19:48] <superskrull> hm
IRC [19:48] <superskrull> let me look
IRC [19:49] <superskrull> shouldnt the install fix this by itself........aggh
IRC [19:49] <superskrull> ok checking
IRC [19:50] <superskrull> where is that set?
IRC [20:14] <superskrull> hm
IRC [20:14] <superskrull> well its up with my symlink
IRC [20:14] <superskrull> but not sure where to set that libpath
IRC [20:15] <superskrull> crap appears to be firewalled
IRC [20:15] <superskrull> is aolserver set to not serve pages
IRC [20:15] <superskrull> to remote boxes by default
IRC [20:15] <superskrull> friiggin hell
IRC [20:16] <Dossy> ?
IRC [20:16] <Dossy> How do you have it configured? I'm guessing you skipped the prebind step. Check your server log for errors.
IRC [20:26] <superskrull> prebind?
IRC [20:26] <superskrull> ok
IRC [20:27] <superskrull> I compiled tcl with thread support, I then ran tclsh ./nsconfig.tcl -install /opt/gavin/a;make;make install
IRC [20:27] <Dossy> What command line are you starting nsd with?
IRC [20:28] <superskrull> I then in /opt/gavin/a copied base.tcl to nsd.tcl, then ran bin/nsd -ft nsd.tcl
IRC [20:28] <superskrull> It complained about a user
IRC [20:28] <superskrull> so I ran bin/nsd -ft nsd.tcl -u gavin
IRC [20:29] <superskrull> after changing everything in /opt/gavin to be owned by gavin
IRC [20:29] <superskrull> it started but had trouble with the .so
IRC [20:29] <superskrull> so I symlinked it into /usr/lib (it appears to have been put in /usr/local/lib by the tcl 8.4 compile)
IRC [20:29] <Dossy> Check the server log for errors.
IRC [20:29] <Dossy> Or, if you're starting with -f, scroll up. :)
IRC [20:30] <superskrull> nslog directory?
IRC [20:30] <superskrull> ok
IRC [20:31] <Dossy> If you just want the answer, I'll give it to you, but it's also useful to learn how to troubleshoot these kind of things.
IRC [20:33] <superskrull> http://pastebin.ca/526865
IRC [20:33] <superskrull> ok i can see the log
IRC [20:35] <superskrull> how does one set the LD_LIBRARY_PATH?
IRC [20:35] <superskrull> maybe some other module it needs isnt there
IRC [20:35] <superskrull> ..
IRC [20:35] <daveb> i use a nsd startup script
IRC [20:35] <daveb> so it has someting like
IRC [20:35] <daveb> export LD_LIBRARY_PATH= blah...
IRC [20:35] <daveb> exec /usr/local/aolserver/bin/nsd ...
IRC [20:37] <superskrull> hm
IRC [20:37] <superskrull> ok
IRC [20:37] <Dossy> Look at line 20 of your pastebin. Then, go and configure the config .tcl ...
IRC [20:41] <superskrull> nsd.tcl?
IRC [20:41] <superskrull> I added an export line and she barfed
IRC [20:41] <superskrull> hm
IRC [20:43] <daveb> no i have a startup-nsd.sh shell script
IRC [20:46] <superskrull> ok
IRC [20:46] <superskrull> why isn't the ld path setup by the install?
IRC [20:47] <superskrull> on archlinux this all works fine
IRC [20:47] <superskrull> hre on redhat at work its hell
IRC [20:47] <superskrull> buggery
IRC [20:49] <superskrull> I just compiled apache to come up on the same box
IRC [20:49] <superskrull> works fine on 80
IRC [20:49] <superskrull> weird as hell
IRC [20:50] <daveb> so what exactly is your question?
IRC [20:51] <daveb> the pastebin doesn't show any errors
IRC [20:52] <superskrull> well
IRC [20:52] <superskrull> I cant hit the page!
IRC [20:52] <daveb> it listening on localhost
IRC [20:52] <daveb> if you type
IRC [20:52] <daveb> 127.0.0.1:8000 into a browser
IRC [20:52] <daveb> does it work
IRC [20:52] <daveb> of course the browser has to be on the same box.
IRC [20:52] <superskrull> IM not local to the box
IRC [20:52] <daveb> then you need to configure with an external IP address
IRC [20:52] <superskrull> ok
IRC [20:52] <daveb> or 0.0.0.0
IRC [20:53] <daveb> brb
IRC [20:54] <superskrull> ok bam
IRC [20:54] <superskrull> its working
IRC [20:54] <superskrull> when I set ns_param_addresse to the ip of the box
IRC [21:17] *** superskrull parted the chat.
IRC [21:27] *** daveb parted the chat.
IRC [23:06] *** cacrus parted the chat.
IRC [23:10] *** cacrus joined the chat.