AOLserver Chat Logs

2005/06/24

IRC [00:27] *** raz joined the chat.
IRC [00:27] <raz> Hi!
IRC [00:27] <raz> is anyone alive? :D
IRC [00:31] <raz> anyway, here is my problem: I just compiled+installed an AOLserver and I have problems with adp files
IRC [00:32] <raz> even I have the proper mapping for adp the server sends me the raw file instead of interpreting it...
IRC [00:33] <raz> so my question is: how can I find out what's wrong?
IRC [00:33] <tekbasse> sounds like a setting in the config.tcl file about how tcl is (not)configured... did you compile with tcl?
IRC [00:34] <raz> I think I did compile it with support for TCL...
IRC [00:34] <raz> how can I check this? :D
IRC [00:36] <raz> ./configure --prefix=/home/raz/local/aolserver --with-tcl=/home/raz/local/aolserver/lib
IRC [00:36] <raz> this was the configure line for aolserver...
IRC [00:36] <raz> the /home/raz/local/aolserver was the --prefix when I compiled the TCL 8.4...
IRC [00:37] <tekbasse> it's probably there then
IRC [00:37] <raz> any ideas?
IRC [00:37] <raz> so what can be wrong?
IRC [00:37] <tekbasse> I had a problem not too different from that a few weeks ago... (thinking)
IRC [00:38] <raz> ... and what was the solution? :-)
IRC [00:38] <tekbasse> (thinking ... albeit slowly)
IRC [00:38] <raz> (I'm using a aolserver 4.0.10 and a tcl 8.4.9)
IRC [00:39] <tekbasse> what does the ns_section in the config.tcl look like for ns/server/${server}/tcl ?
IRC [00:39] <raz> 2 sec...
IRC [00:40] <tekbasse> hmm... maybe also check th ns/server/${server}/adp/parsers section
IRC [00:40] <raz> I don't have ns/server/${server}/tcl in my config file.. :|
IRC [00:41] <tekbasse> oh hmm... that may still be okay, I'm using a specialized config.tcl file =/
IRC [00:41] <raz> ns/server/${server}/adp/parsers is also missing...
IRC [00:41] <tekbasse> where did you get the config.tcl file from?
IRC [00:41] <raz> I used the sample-config.tcl as a starting point...
IRC [00:42] <tekbasse> ok. (looking at it)
IRC [00:42] <raz> it's from the aolserver 4.0.10 source tarball...
IRC [00:42] <raz> ack... I'm standing by for any advice :-)
IRC [00:49] <tekbasse> okay, looking here: http://www.aolserver.com/docs/admin/sample-config.tcl.txt
IRC [00:49] <tekbasse> and comparing to my working config.tcl
IRC [00:50] <raz> I'm listening... :-)
IRC [00:50] <raz> (this is not the file from the 4.0.10 tarball)
IRC [00:51] <tekbasse> in the interim, you might try googling for a solution =)
IRC [00:51] <raz> .. I tried... with no luck. :|
IRC [00:51] <raz> (that's why I landed here ;-))
IRC [00:53] <tekbasse> ok
IRC [00:54] <tekbasse> you might check permissions for the file, make sure it's executable by the group that is running aolserver
IRC [00:54] <raz> http://cvs.sourceforge.net/viewcvs.py/aolserver/aolserver/sample-config.tcl?rev=1.14&only_with_tag=HEAD&view=markup
IRC [00:54] <raz> this one looks like the one from the 4.0.10 tarball...
IRC [00:54] <raz> it need executable flag???
IRC [00:55] <tekbasse> I don't think so... the permissions for aolserver are different than for apache.. just try to see if that works..
IRC [00:55] <tekbasse> also might try setting "enabletclpages" in the config.tcl to true
IRC [00:56] <tekbasse> too bad Dossy isn't here right now...
IRC [00:56] <raz> I make the file executable and I still get the raw file... :|
IRC [00:56] <tekbasse> ok
IRC [00:57] <raz> I tried before the enabletclpages but it didn't work...
IRC [00:58] <raz> can I make nsd to write more details about how he process the requests?
IRC [00:58] <tekbasse> in my case it happened when the file dir table became corrupt... From what I remember, I reverted to a backup, so that's not going to help here
IRC [00:59] <tekbasse> sure, set $debug to true
IRC [00:59] <raz> let me try this...
IRC [00:59] <tekbasse> under Global server params
IRC [01:00] <raz> "set debug true" at the begining of the config file is enough?
IRC [01:00] <tekbasse> well, in the sample-config.tcl there's already a ns_param debug false so you'll want to change that
IRC [01:01] <raz> let me search for that...
IRC [01:01] <raz> done...
IRC [01:01] <raz> ... but it doesn't print more info in this case. :|
IRC [01:06] <raz> I also added:
IRC [01:06] <raz> ns_section "ns/server/${servername}/adp/parsers"
IRC [01:06] <raz> ns_param adp ".adp" ;# adp is the default parser.
IRC [01:06] <raz> ns_section "ns/server/${servername}/adp/parsers"
IRC [01:06] <raz> ns_param adp ".adp" ;# adp is the default parser.
IRC [01:06] <raz> ns_section "ns/server/${servername}/adp/parsers"
AIM [01:06] <OnlineHost> You have been removed from the room for scrolling.
IRC [01:06] <raz> ns_param adp ".adp" ;# adp is the default parser.
IRC [01:06] <raz> ... but there's no effect.
IRC [01:07] <tekbasse> ok
IRC [01:07] <raz> do you have any other ideas? :-)
IRC [01:07] * tekbasse googles
IRC [01:10] <tekbasse> do .tcl files get interpreted?
IRC [01:11] <raz> ... 2 sec to try again.
IRC [01:13] <raz> with enabletclpages on false they are not interpreted...
IRC [01:14] <tekbasse> oh right... you're just wanting to have .adp interepreted..
IRC [01:15] <raz> if I put enabletclpages on true then they are interpreted... my test.tcl file only has a puts "test" and the "test" was output in the server console...
IRC [01:15] <tekbasse> okay, then that suggests the problem is related to the adp setup in the config.tcl file
IRC [01:16] <raz> if I do a ns_adp_puts then I get this error:
IRC [01:16] <raz> [24/Jun/2005:11:18:17][11803.65541][-conn:noi.dnsalias.org::0] Error: This function cannot be used outside of an ADP
IRC [01:16] <raz> This function cannot be used outside of an ADP
IRC [01:16] <raz> while executing
IRC [01:16] <raz> "ns_adp_puts "test""
IRC [01:16] <raz> (file "/mnt/hdc1/home/raz/aolserver/servers/noi.dnsalias.org/pages/test.tcl" line 1)
IRC [01:16] <raz> invoked from within
IRC [01:16] <raz> "source $file"
IRC [01:16] <raz> invoked from within
IRC [01:16] <raz> "ns_sourceproc cns1 {}"
IRC [01:16] <raz> I don't know what is wrong in my config file... :|
IRC [01:16] <tekbasse> the section 'ns_section "ns/server/${servername}/adp"' is there, right?
IRC [01:17] <raz> yup...
IRC [01:17] <raz> #
IRC [01:17] <raz> # ADP (AOLserver Dynamic Page) configuration
IRC [01:17] <raz> #
IRC [01:17] <raz> ns_section "ns/server/${servername}/adp"
IRC [01:17] <raz> ns_param map "/*.adp" ;# Extensions to parse as ADP's.
IRC [01:17] <raz> # I18N Note: will need to define I18N specifying mappings of ADP's here as well.
IRC [01:17] <raz> ns_param map "/*.u_adp"
IRC [01:17] <raz> ns_param map "/*.gb_adp"
IRC [01:17] <raz> ns_param map "/*.sjis_adp"
IRC [01:17] <raz> #ns_param map "/*.html" ;# Any extension can be mapped.
IRC [01:17] <raz> ns_param enableexpire false ;# Set "Expires: now" on all ADP's.
IRC [01:17] <raz> ns_param enabledebug false ;# Allow Tclpro debugging with "?debug".
IRC [01:17] <raz> # ADP special pages
IRC [01:17] <raz> #ns_param errorpage ${pageroot}/errorpage.adp ;# ADP error page.
IRC [01:17] <raz> ns_section "ns/server/${servername}/adp/parsers"
IRC [01:17] <raz> ns_param adp ".adp" ;# adp is the default parser.
IRC [01:17] <raz> this is the adp related part from my config file...
IRC [01:18] <raz> the parsers section was not in the original config from the source tarball...
IRC [01:21] <tekbasse> try changing the line following ns_section ns/server/${servername}/adp/parsers to read:
IRC [01:21] <tekbasse> ns_param fancy ".adp"
IRC [01:21] <raz> ack...
IRC [01:22] <raz> ... no effect... :|
IRC [01:24] <tekbasse> and under ns/server/${servername}/adp create a line:
IRC [01:24] <tekbasse> ns_param defaultparser fancy
IRC [01:25] <raz> ok... let me try...
IRC [01:26] <raz> still doesn't work... :(
IRC [01:27] <tekbasse> =( I'm running out of ideas. The best thing to do is check back in when Dossy is active, or post in the aolserver mailing list
IRC [01:28] <tekbasse> http://aolserver.com/lists.php
IRC [01:29] <raz> thank you for your time...
IRC [01:29] <raz> I'll try to post on the mailing list...
IRC [01:29] <tekbasse> good luck, cheers, (bbl)
IRC [01:29] <raz> 10x... same to you! :P
IRC [01:53] <tekbasse> raz|away looks like you need to make a change in the build param --with-tcl, see http://openacs.org/doc/current/aolserver4 for an example
IRC [03:35] *** frankie joined the chat.
IRC [04:53] *** holycow joined the chat.
IRC [07:02] *** holycow parted the chat.
IRC [07:15] <raz> tekbasse: because I use in both cases (AOLserver and TCL) the --prefix my compilation should be correct...
IRC [07:16] <raz> I run the tests in tclsh from the begining of the howto and the TCL compilation/instalation should be fine:
IRC [07:16] <raz> $ ./tclsh8.4
IRC [07:16] <raz> % info exists tcl_platform(threaded)
IRC [07:16] <raz> 1
IRC [07:16] <raz> % info patchlevel
IRC [07:16] <raz> 8.4.9
IRC [07:16] <raz> %
IRC [09:48] <Dossy> Guess I missed all the fun.
IRC [12:11] *** frankie parted the chat.
IRC [12:28] *** raz|away parted the chat.
IRC [12:38] *** bartt joined the chat.
IRC [14:26] *** frankie joined the chat.
IRC [15:49] *** holycow joined the chat.
IRC [16:08] *** frankie parted the chat.
IRC [17:44] *** raz joined the chat.
IRC [17:44] <raz> Hi!
IRC [17:45] <raz> is anyone alive? :-)
IRC [18:08] <raz> I also tried TCL 8.4.9 + AOLserver 4.0.10 and I got the same error... :|
IRC [18:09] <raz> this time I tried on a 3rd system... a MacOS Tiger.
IRC [18:10] *** holycow parted the chat.
IRC [18:14] *** holycow joined the chat.
IRC [18:27] *** holycow parted the chat.
IRC [18:33] *** holycow joined the chat.
IRC [18:40] <raz> problem solved: I use <? ?> instead of <% %> :|
IRC [19:04] *** holycow parted the chat.
IRC [19:11] *** holycow joined the chat.
IRC [19:25] *** holycow parted the chat.
IRC [20:37] *** holycow joined the chat.
IRC [20:56] *** bartt parted the chat.
IRC [21:53] *** holycow parted the chat.
IRC [22:10] *** raz parted the chat.
IRC [22:54] *** raz joined the chat.
IRC [22:56] *** SekaZaSeku joined the chat.
IRC [22:56] *** SekaZaSeku parted the chat.