Re: [naviserver-devel] git clone missing recent naviserver commits?

2020-04-12 Thread Iuri Sampaio
Hi Andrew, Habr you tried the other repositories: https://downloads.sourceforge.net/sourceforge/naviserver/naviserver-${version_ns}.tar.gz https://github.com/nm-wu fi They are all used in the installation scripts written by Gustaf. https://github.com/gustafn/i

Re: [naviserver-devel] Naviserver 4.99.19

2020-01-08 Thread Iuri Sampaio
One can always kill a process and leave the desired one. Then, it must confirm that nsd isn't set to start on boot, as user nsadmin, at /etc/init.d/, neither systemctl is enabled. systemctl oacs-5.9.1.service disable systemctl daemon-reload Visit Automate NaviServer Startup at: http://www.project-

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
ver (url https://api.sandbox.paypal.com/v1/oauth2/token) Do you still get successful results ? https://iurix.com/paypal-get-token <https://iurix.com/paypal-get-token> > On Nov 17, 2019, at 13:53, Iuri Sampaio wrote: > > As indicated in the log, I’ve edited /etc/host

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
6a4f62b700][-conn:iurix:0:44-] Debug(ns:driver): RequestFree does not call Ns_ResetRequest on 0x7f6a3c0036c8 [17/Nov/2019:13:49:55][634.7f6a4e629700][-driver:nsssl_v4:0-] Debug(ns:driver): === PollWait returned 1, trigger[0] 1 > On Nov 17, 2019, at 13:47, Iuri Sampaio wrote: > > NS

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
bug: ssl connect on sock 28 [17/ > On Nov 17, 2019, at 13:16, Gustaf Neumann wrote: > > On 17.11.19 17:04, Iuri Sampaio wrote: >> NaviServer/4.99.17 >> >> Should I upgrade it? > yes. There are fixes for partly configured IPv6 setups in the 4.99.18 release >

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-17 Thread Iuri Sampaio
.7f8659e5b700][-main-] ^[[0m^[[0;39mNotice: Using ns_cache based on NX 2.2.0^[[0m ^[[0;32m[17/Nov/2019:12:43:03][20368.7f8659e5b700][-main-] ^[[0m^[[0;34mDebug: nsd/init.tcl: loading /usr/local/ns/tcl/cache.tcl^[[0m ^[[0;32m[17/Nov/2019:12:43:03][20368.7f8659e5b700][-main-] ^[[0m^[[0;34mDebug: nsd/init

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
wEw3uM4llmAoRwLc9Wkh4wpkVHTQ4-ehe_F-bdgW3Z5EinJgbrmK3Eu4ffds-YPWQ", "token_type": "Bearer", "app_id": "APP-W28fGERGERGERGERGREGE3T", "expires_in": 31623, "nonce": "2019-11-16T22:13:00Zb0kTBXRvIaKfKQ0AM3T6Q4e4RU

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
k8rnGB4InaKkTbh-nvewEw3uM4llmAoRwLc9Wkh4wpkVHTQ4-ehe_F-bdgW3Z5EinJgbrmK3Eu4ffds-YPWQ","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":29668,"nonce":"2019-11-16T22:13:00Zb0kTBXRvIaKfKQ0AM3T6Q4e

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
ization "Basic [ns_base64encode guest:guest]" > % ns_http run -headers $h https://jigsaw.w3.org/HTTP/Basic/ > <https://jigsaw.w3.org/HTTP/Basic/> > status 200 time 0:485802 headers d8 body { HTML//EN"> > > > ... > > Now we see the status code

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-16 Thread Iuri Sampaio
a87fff700][-conn:evex:124:46273-] Notice: RETURN URL /paypal-checkout *** > On Nov 16, 2019, at 15:47, Iuri Sampaio wrote: > > Dear Gustaf, > It did help me to remind and review my own code to assure that it was > properly written. I grabbed the code from > https://n

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-15 Thread Iuri Sampaio
s/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21Ajrtihjrujhirjhiojheioji5wt83qyt78y3785y7845FEWRGFERHGIEGEWGzpuO0xg_I75pmqFAoSIuArLnfQIoBPdJLdyKSgig",&q

Re: [naviserver-devel] Converting a CURL call to a ns_http call

2019-11-15 Thread Iuri Sampaio
losed by server (url https://api.sandbox.paypal.com/v1/oauth2/token) [15/Nov/2019:13:19:55][450.7f7a65ffb700][-conn:evex:88:31735-] Notice: status code 0 [15/Nov/2019:13:19:55][450.7f7a65ffb700][-conn:evex:88:31735-] Notice: reply [ > On Nov 15, 2019, at 12:21, Iuri Sampaio wrote: > &g

[naviserver-devel] Converting a CURL call to a ns_http call

2019-11-15 Thread Iuri Sampaio
What would be the argument/switch to convert the option -u, from CURL command, to ns_http command? curl -v https://myhost.com/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "client_id:secret" \ -d "grant_type=client_cr

Re: [naviserver-devel] Question re nsdbi

2019-09-17 Thread Iuri Sampaio
I have no clue about the reason.Perhaps a memory licking that went away after reboot . ...Or you get "lucky" again and the error appears once more. rsrs My first guess would be if task’s using free(); or what else. how does memory get released? > On Sep 17, 2019, at 15:57, THORPE MAYES vi

[naviserver-devel] NS_ModuleInit Error - Installation Script

2019-03-11 Thread Iuri Sampaio
Hi there, Has anyone tried to run NS 4.99.18, using the installation script available at https://github.com/gustafn/install-ns.git , in a KVM Debian 9 machine? I had ran "install-ns.sh build”, and it completed successfully. Then tried to boot up NS a

Re: [naviserver-devel] Installing NS 4.99.17 on Debian 7 Wheezy

2018-11-20 Thread Iuri Sampaio
b07457846bd66 > > <https://bitbucket.org/naviserver/naviserver/commits/49c314f2b1e9410de0f61935c0bb07457846bd66> > [2] https://wiki.debian.org/LTS/ <https://wiki.debian.org/LTS/> > > > On 20.11.18 04:16, Iuri Sampaio wrote: >> Hi there, >> >> Has any

[naviserver-devel] Installing NS 4.99.17 on Debian 7 Wheezy

2018-11-19 Thread Iuri Sampaio
Hi there, Has anyone got a similar error related to tclcrypto library? Right now, I’m search for the package, which could contain the source for the reference EC_curve_nist2nid, but Debian 7 is an old distro… I’m already using openssl latest version for Debian 7 Next attempt will be upgrading

Re: [naviserver-devel] Install Error via install-ns.sh

2018-09-23 Thread Iuri Sampaio
Are you using Debian/Ubuntu? If so, you might run apt-get install gcc and related packages. Then you can run install-ns.sh again, > On Sep 22, 2018, at 13:19, THORPE MAYES via naviserver-devel > wrote: > > Hi, > > I am trying to install Naviserver using this script: > > install-ns.sh > >

Re: [naviserver-devel] ns_column derivative

2018-07-06 Thread Iuri Sampaio
ist select_name { SELECT name FROM ec_custom_product_field_values } ] $i] } } Too ugly! Would there be a beautiful code? Best wishes, I > On Jul 6, 2018, at 21:07, Iuri Sampaio wrote: > > Hi there, > > What would be a derivative proc, which substitutes ns

[naviserver-devel] ns_column derivative

2018-07-06 Thread Iuri Sampaio
Hi there, What would be a derivative proc, which substitutes ns_column ? The piece of context is right bellow. Best wishes, I db_with_handle db { set trigger_column_list [list] for {set i 0} {$i < [ns_column count $db ec_custom_product_field_values]} {incr i} {

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-16 Thread Iuri Sampaio
Neumann wrote: > > i am probably not the best person to ask, since we do not use here ldap. > > however, my guess is that you have most likely a configuration problem: > under "host" you specify "ldap://"; , when i look into the > source i see: >

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-14 Thread Iuri Sampaio
sldap: could not open connection to server ldap://ldap.litli.net on port 389: No such file or directory > On May 13, 2018, at 16:42, Gustaf Neumann wrote: > > On 13.05.18 18:36, Iuri Sampaio wrote: >> Btw, >> Is there any reason to .o and .so be missing on bitbuck

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-13 Thread Iuri Sampaio
ort of scenarios (without source forge repository), I was wondering a way out to compile nsldap.c, generating .o and .so myself. My apologies for asking. I’ll try to quiet myself. Best wishes, I > On May 13, 2018, at 06:29, Gustaf Neumann wrote: > > On 12.05.18 18:14, Iuri Sampai

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-13 Thread Iuri Sampaio
Btw, Is there any reason to .o and .so be missing on bitbucket repository (i.e. https://bitbucket.org/naviserver/nsldap/src/default/ <https://bitbucket.org/naviserver/nsldap/src/default/> ) ? If not, do upload them there, please! Best wishes, I > On May 13, 2018, at 13:30, Iur

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-12 Thread Iuri Sampaio
libldap2-dev libssl-dev Best wishes, Iuri > On May 12, 2018, at 06:16, Gustaf Neumann wrote: > > On 10.05.18 04:01, Iuri Sampaio wrote: >> Hi there, >> >> In attempt to to install and setup nsldap, I have changed install-ns.sh >> script to look to HEAD

Re: [naviserver-devel] nsldap: Installation and setup

2018-05-12 Thread Iuri Sampaio
Btw, how would I generate .o and .so from .c? May I use gcc? What are the necessary parameters ? (if needed) i.e. gcc -g -O -c hello.c -fPIC -DPIC -o .libs/hello.o Best wishes, Iuri > On May 12, 2018, at 13:05, Iuri Sampaio wrote: > > Thanks Gustaf, > > Yes, it helped

[naviserver-devel] nsldap: Installation and setup

2018-05-09 Thread Iuri Sampaio
Hi there, In attempt to to install and setup nsldap, I have changed install-ns.sh script to look to HEAD repos but When running install-ns build it returns Downloading sources abort: no repository found in '/usr/local/src/modules/nsdbbdb' (.

Re: [naviserver-devel] Install NS on Debian

2018-04-02 Thread Iuri Sampaio
ishes, Iuri > On Apr 2, 2018, at 04:51, Gustaf Neumann wrote: > > On 4/2/18 4:43 AM, Iuri Sampaio wrote: >> In attempt to upgrade Naviserver to v.4.99.16 I’ve got the following error, >> running the current installation script install-ns.sh, available at GIT >&

Re: [naviserver-devel] Install NS on Debian

2018-04-01 Thread Iuri Sampaio
tml> Best wishes, Iuri > On Apr 1, 2018, at 23:43, Iuri Sampaio wrote: > > Hi there, > > > In attempt to upgrade Naviserver to v.4.99.16 I’ve got the following error, > running the current installation script install-ns.sh, available at GIT > repository ht

[naviserver-devel] Install NS on Debian

2018-04-01 Thread Iuri Sampaio
Hi there, In attempt to upgrade Naviserver to v.4.99.16 I’ve got the following error, running the current installation script install-ns.sh, available at GIT repository https://github.com/gustafn/install-ns.git Operating System: Debian 7 (wheezy) Da

[naviserver-devel] ns_http request results HTTP0

2017-04-01 Thread Iuri Sampaio
Hi there, I wonder what HTTP0 means as a result of ns_http. How do I open it? Is it a TDOM object? Should I pass the result variable in the method call? the following chunk of code returns page with HTTP0 assigned: / set url [export_vars -base "https://graph.facebook.com/oauth/access_token";

Re: [naviserver-devel] Substitute for ns_htmlencode

2017-04-01 Thread Iuri Sampaio
HTML link to the documentation for the proc. @author Lars Pind (l...@pinds.com) @creation-date 14 July 2000 } { --return "$proc" ++return "$proc" } Best wishes, Iuri On 01-04-2017 09:03, Gustaf Neumann wrote: > Am 01.04.17 um 04:56 schrieb Iuri

[naviserver-devel] Substitute for ns_htmlencode

2017-03-31 Thread Iuri Sampaio
Hi there, Evaluating XMLRPC package on OpenACS, I found an error of invalid command name, related to the old proc htmlencode, from AOLServer. The error happens deep in the source code of OACS core. I was able to "grep" references of htmlecode in the source code, in acs-api-documentation-procs.

Re: [naviserver-devel] NaviServer is not listening on port 8080

2017-03-11 Thread Iuri Sampaio
tly open file descriptors, you > should refrain from using the select() system call (which means for an > application programmer: abstain from Tcl I/O). For most applications, > this is no problem. The OS setting allows 4096 open FDs for the process, > therefore there is a warnin

[naviserver-devel] NaviServer is not listening on port 8080

2017-03-10 Thread Iuri Sampaio
After upgrading NS to 4.99.15 Nginx is unable to access OACS rootdir because NS doesn't stay listening on port 8080. After booting up NS, it doens't keep listening on port 8080. For that reason NGINX unable to complete requests, its attempt to conect gets refused. /usr/local/ns/bin/nsd -u evex

Re: [naviserver-devel] Logpartialtimes seemingly giving runtime of *previous* request

2016-11-02 Thread Iuri Sampaio
Yes! Unless, you're somehow stuck on 4.99.11, try NS 4.99.12. If the issue still remains, then post here. Best wishes Iuri On 02-11-2016 13:49, David Osborne wrote: Hi, I've spotted an issue that seems to have been introduced at some point between 4.99.10 & 4.99.11 (and still present in ti

Re: [naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-14 Thread Iuri Sampaio
-ns/blob/master/install-oacs.sh#L342 Am 12.10.16 um 19:00 schrieb Iuri Sampaio: Thanks Cyan, Good that you mentioned it, but I tried after I've sent the email. Both have the same behavior. sleep 4 exec /usr/local/ns/bin/nsd -it /usr/local/ns/iurix.tcl -u iurix -g web -b 192.

Re: [naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-12 Thread Iuri Sampaio
13:52, Cyan Ogilvie wrote: Maybe add -i Cyan On Wed, Oct 12, 2016 at 5:59 PM, Iuri Sampaio <mailto:i...@iurix.com>> wrote: Hi there, In order to get NS to start automatically, I installed daemontools (i.e. debian server - apt-get install). However, when I start the

[naviserver-devel] Boot up NS with Daemontools supervisor

2016-10-12 Thread Iuri Sampaio
Hi there, In order to get NS to start automatically, I installed daemontools (i.e. debian server - apt-get install). However, when I start the supervisor, it starts to boot up hundreds of NS instances until that it eats up all the memory and crashes the whole server. My intuition tells that the