Sorry, actually I don't know about OpenACS, because Im just running NS with
custom made app, so I assume it may be an OpenACS question. So I suggest
you to ask on OpenACS forum.

On Sun, May 24, 2020 at 9:00 PM Iuri de Araujo Sampaio <[email protected]>
wrote:

> Hello there!
> Thanks Maksym, it’s always good to double check fundamentals.
>
> I’ve followed standard’s installation, using install-ns.sh script,
> available on GitHub. https://github.com/gustafn/install-ns/
>
> Plus,  http-handlers-init.tcl loads properly when NS starts. (logs are
> below)
>
> My box runs NS and OpenACS on top of it. Nevertheless, I don’t think that
> would be a problem.
>
> You may be right, though. I don’t know.
>
> Please, see logs bellow.
>
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loading
> packages/iurix-mail/tcl/iurix-mail-init.tcl...
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loaded
> packages/iurix-mail/tcl/iurix-mail-init.tcl.
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loading
> packages/ix-currency/tcl/ix-currency-init.tcl...
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loaded
> packages/ix-currency/tcl/ix-currency-init.tcl.
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loading
> packages/ix-restapi/tcl/httphandlers-init.tcl...
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loaded
> packages/ix-restapi/tcl/httphandlers-init.tcl.
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loading
> packages/xml-rpc/tcl/system-init.tcl...
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loaded
> packages/xml-rpc/tcl/system-init.tcl.
> [24/May/2020:18:30:10][30098.7efbff6ea700][-main-] Notice: Loading
> packages/xml-rpc/tcl/validator-init.tcl...
> [
>
>
>
>
>
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsmain:
> NaviServer/4.99.18 (tar-4.99.18) starting
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsmain:
> security info: uid=1002, euid=1002, gid=1002, egid=1002
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsmain: Tcl
> version: 8.6.9
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsmain: max
> files: soft limit 524288, hard limit 524288
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] *Warning: nsmain:
> rl_cur (524288) > FD_SETSIZE (1024), select() calls should not be used*
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: pool default:
> queueLength 90 low water 9 high water 90
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice:
> nsd/init.tcl[iurix]: booting virtual server:  Tcl system encoding: "utf-8"
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module nslog from file /usr/local/ns/bin/nslog.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nslog: opened
> '/var/www/iurix/log//access.log'
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module nsdb from file /usr/local/ns/bin/nsdb.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module ns/db/driver/postgres from file /usr/local/ns/bin/nsdbpg.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsdbpg:
> version 2.3 loaded, based on PostgreSQL 9.6.15 and libbpq 90617
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: dbinit: set
> LogMinDuration for pool pool1 over 0.01 to 0.010000
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: dbinit: set
> LogMinDuration for pool pool2 over 0.01 to 0.010000
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module nsproxy from file /usr/local/ns/bin/nsproxy.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module nssock_v4 from file /usr/local/ns/bin/nssock.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nssock_v4:0:
> enable 0 spooler thread(s)
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nssock_v4:0:
> enable 2 writer thread(s) for downloads >= 1024 bytes, bufsize=8192 bytes,
> HTML streaming 0
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module nsssl_v4 from file /usr/local/ns/bin/nsssl.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsssl_v4:0:
> enable 0 spooler thread(s)
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsssl_v4:0:
> enable 2 writer thread(s) for downloads >= 1024 bytes, bufsize=16384 bytes,
> HTML streaming 0
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: OpenSSL
> OpenSSL 1.1.0l  10 Sep 2019 initialized
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsssl:
> disabling SSLv2
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nsssl: version
> 2.1 loaded, based on OpenSSL 1.1.0l  10 Sep 2019
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: modload:
> loading module libthread from file /usr/local/ns/lib/thread2.8.2/
> libthread2.8.2.so
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: nx::serializer
> version 2.3
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: XOTcl 2.3
> loaded featuring: memcount 0 profile 0 memtrace 0 assertions 1 dtrace 0
> development 0
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: Using ns_cache
> based on NX 2.3
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: adp[iurix]:
> mapped {GET HEAD POST} /*.adp
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: Loading
> OpenACS, rooted at /var/www/iurix
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: Sourcing
> /var/www/iurix/packages/acs-bootstrap-installer/bootstrap.tcl
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: bootstrap
> begin encoding utf-8
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: Bootstrap:
> sourcing
> /var/www/iurix/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl
> [24/May/2020:18:30:06][30098.7efbff6ea700][-main-] Notice: Bootstrap:
> sourcing
> /var/www/iurix/packages/acs-bootstrap-installer/tcl/10-utilities-procs.tcl
> [24/
>
>
>
> On May 24, 2020, at 14:23, Maksym Zinchenko <[email protected]> wrote:
>
> Hello, Ive tested ns_register_tcl with my installation and its working
> fine:
> In my index.adp:
> ns_register_tcl PUT /REST/ test/test.tcl
>
> My test.tcl:
> ns_log Notice "Running TCL script users/edit"
>
> In log:
>
>  
> [0;32m[24/May/2020:16:16:47][26138.7f62510c4700][-conn:***********:default:0:12-]
>   [0m [0;39mNotice: Running TCL script users/edit [0m
>
> Check your logs if naviserver reads /tcl/http-handlers-init.tcl. Your path to 
> scripts etc. Its something with your installation
> Cmpts.: Maksym Zinchenko
>
>
> On Sat, May 23, 2020 at 7:22 PM <[email protected]> wrote:
>
>> Hi there,
>> In attempt to register PUT in my NS instalation  ( ie. HTTP PUT method),
>> I added the following line, within  /tcl/http-handlers-init.tcl library :
>>
>> ns_register_tcl -options {stream stricterror} -- PUT /REST/*.tcl
>>
>> I also try the simplest call:  ns_register_tcl PUT /REST/*.tcl
>>
>> Then, within /REST/ directory, there's a TCL script edit.tclm and the
>> first line is a simple log call, for testing purposes.
>>
>> ns_log Notice "Running TCL script users/edit"
>>
>> However, it still returns "Method not allowed:
>>
>> Reference:
>> https://naviserver.sourceforge.io/n/naviserver/files/ns_register.html
>>
>>
>> Furthermore, I've tested another variation of ns_register, which works
>> just fine
>>
>> ns_register_proc PUT /REST/* ::my_proc
>>
>> What am I missing ?
>>
>>
>> Best wishes,
>> I
>> _______________________________________________
>> naviserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
>>
> _______________________________________________
> naviserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
>
>
> _______________________________________________
> naviserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
>
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to