[AOLSERVER] AOL server 4.5.2 w/ virtual servers - SSL not working

2015-08-15 Thread Thorpe Mayes
Hi,

I have AOLserver 4.5.2 running with virtual servers - main.tcl with several sub 
config files. 

Three of the domain names are using SSL. The certificate is a UCC SSL 
Certificate that will accommodate up to 5 domain names. 

If I activate the virtual server for just one of the three domains that are 
using SSL, then everything works fine. When I activate two or more of the sub 
files that need ssl, the server fails to start. Here is the tail end of the log 
file:

[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Notice: nsmain: 
AOLserver/4.5.2 running
[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Notice: nsmain: 
security info: uid=502, euid=502, gid=502\
, egid=502
[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Notice: driver: 
starting: nssock
[15/Aug/2015:18:39:13][3924.18446744073356683008][-sched-] Notice: sched: 
starting
[15/Aug/2015:18:39:13][3924.18446744073356543744][-nssock:driver-] Notice: 
starting
[15/Aug/2015:18:39:13][3924.18446744073356543744][-nssock:driver-] Notice: 
nssock: listening on 23.253.246.52:80
[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Notice: driver: 
starting: nsopenssl
[15/Aug/2015:18:39:13][3924.18446744073356404480][-nsopenssl:driver-] Notice: 
starting
[15/Aug/2015:18:39:13][3924.18446744073356404480][-nsopenssl:driver-] Notice: 
nsopenssl: listening on 23.253.246.52\
:443
[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Notice: driver: 
starting: nsopenssl
[15/Aug/2015:18:39:13][3924.18446744073356265216][-nsopenssl:driver-] Notice: 
starting
[15/Aug/2015:18:39:13][3924.18446744073356265216][-nsopenssl:driver-] Error: 
nsopenssl: failed to listen on 23.253.\
246.52:443: Permission denied
[15/Aug/2015:18:39:13][3924.18446744073356265216][-nsopenssl:driver-] Notice: 
exiting
[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Notice: driver: 
starting: nsopenssl
[15/Aug/2015:18:39:13][3924.18446744073356125952][-nsopenssl:driver-] Notice: 
starting
[15/Aug/2015:18:39:13][3924.18446744073356125952][-nsopenssl:driver-] Error: 
nsopenssl: failed to listen on 23.253.\
246.52:443: Permission denied
[15/Aug/2015:18:39:13][3924.18446744073356125952][-nsopenssl:driver-] Notice: 
exiting
[15/Aug/2015:18:39:13][3924.18446744073356691200][-main-] Fatal: could not 
start drivers


Here is the ssl portion of the main.tcl file:

ns_section ns/server/module/nsopenssl
# ns_param RandomFile /some/file

ns_param SeedBytes  2048;  # was 1024   


Here is what the ssl portion of the sub files (all appear to load successfully 
- see below):

#-  

# OpenSSL and nsopenssl 

# http://openacs.org/forums/message-view?message_id=320064 - for nsd code - 
note: must use port 443 
# http://openacs.org/doc/install-nsopenssl.html - binding port 443 in 
daemontools   
#-  


ns_section ns/server/${ecognizant}/module/nsopenssl/sslcontexts
ns_param ${ecognizant}_users_ctx SSL context used for $ecognizant regular user 
access
# ns_param admins_ctx SSL context used for administrator access   

ns_param ${ecognizant}_client_ctx SSL context used for $ecognizant outgoing 
script socket connections


ns_section ns/server/${ecognizant}/module/nsopenssl/defaults
ns_param server ${ecognizant}_users_ctx
ns_param client ${ecognizant}_client_ctx


ns_section 
ns/server/${ecognizant}/module/nsopenssl/sslcontext/${ecognizant}_users_ctx
ns_param Role server
ns_param ModuleDir $ssldocdir
ns_param CertFile cert.pem
ns_param KeyFile key.pem
ns_param CAFile ca.pem
ns_param Protocols All
ns_param CipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
ns_param PeerVerify false
ns_param PeerVerifyDepth 3
ns_param Trace false


ns_section 
ns/server/${ecognizant}/module/nsopenssl/sslcontext/${ecognizant}_client_ctx
ns_param Role client
ns_param ModuleDir $ssldocdir
ns_param CertFile cert.pem
ns_param KeyFile key.pem
ns_param CAFile ca.pem
ns_param Protocols All
ns_param CipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
ns_param PeerVerify false
ns_param PeerVerifyDepth 3
ns_param Trace false


ns_section ns/server/${ecognizant}/module/nsopenssl/ssldrivers
ns_param ${ecognizant}_users_drv Driver for regular $ecognizant user access


ns_section 
ns/server/${ecognizant}/module/nsopenssl/ssldriver/${ecognizant}_users_drv
ns_param sslcontext ${ecognizant}_users_ctx
ns_param port $httpsport
ns_param hostname $hostname
ns_param address $address
ns_param maxinput [expr {1024 * 1000 * 10}] ;# 10 MB upload limit   




Re: [AOLSERVER] Aolserver - Postgresql - not recognizing columns added to tables

2015-08-10 Thread Thorpe Mayes
Hi,

Here is where postgres is located on the server:

ps auxw |  grep postgres | grep -- -D
postgres  1740  0.0  0.0 160284  7616 ?S02:49   0:00 
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data


Here is how I installed nspostgres-4.1:

make install AOLSERVER=/usr/local/aolserver  POSTGRES=/usr/local/pgsql

Thorpe


 On Aug 10, 2015, at 7:05 AM, Tony Bennett (Brown Paper Tickets) 
 t...@brownpapertickets.com wrote:
 
 The same select should work in tcl for the added column.  Try updating a 
 record in postgresql and selecting the same record from tcl. If there's a 
 mismatch then they're not connecting to the same place.
 
 -Tony
 
 On 8/9/15 5:44 PM, Peter Sadlon wrote:
 Just to better understand your problem, this was the order of events?
 
 old server: create table
 old server: alter table add column
 old server: select any/all columns work
 
 copy to new server
 
 new server: select from original columns work with postgresdql 
 new server: select from an added column works with postgresdql 
 new server: select from original columns work with tcl 
 new server: select from an added column FAILS with tcl 
 
 My first guess would be to make sure your config script is connecting to the 
 correct database/server now that you have multiple db servers.  Same thing 
 for postgresdql.  
 
 Are you connecting with the same username via postgresdql and tcl?
 
 Next check your pg_dump file, do a grep for the new column name, make sure 
 that it is included in the dump.
 
 
 From: tma...@ecognizant.com mailto:tma...@ecognizant.com
 Date: Sun, 9 Aug 2015 14:03:28 -0500
 To: aolserver-talk@lists.sourceforge.net 
 mailto:aolserver-talk@lists.sourceforge.net
 Subject: [AOLSERVER] Aolserver - Postgresql - not recognizing columns added 
 to tables
 
 Hi,
 
 I have moved postgresql databases from one server to another. This was done 
 by dumping the database, moving the resulting file to the new server, and 
 then restoring the dumped file on the new server.
 
 When I directly select rows via postgresdql (on the new server) from a table 
 that had a column added after the table was created and before the table was 
 moved to the new server there are not any problems.
 
 However, when I try to do the same select from within a tcl script an error 
 is thrown - the column does not exist. When I run the sql statement without 
 the offending column, there is not a problem. 
 
 So, it appears to me that the problem is with columns that have been added 
 to tables via alter table…
 
 Can anyone shed some light on this problem?
 
 Thank you,
 
 Thorpe
 
 Thorpe Mayes
 eCognizant LLC
 2313 Lockhill-Selma Road, Ste 164
 San Antonio, TX 78230
 Phone: (405) 445-7877
 Cell: (405) 514-9753
 
 
 
 
 
 
 
 --
 ___ aolserver-talk mailing list 
 aolserver-talk@lists.sourceforge.net 
 mailto:aolserver-talk@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/aolserver-talk
  https://lists.sourceforge.net/lists/listinfo/aolserver-talk
 
 --
 
 
 ___
 aolserver-talk mailing list
 aolserver-talk@lists.sourceforge.net 
 mailto:aolserver-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk 
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk
 
 --
 ___
 aolserver-talk mailing list
 aolserver-talk@lists.sourceforge.net 
 mailto:aolserver-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk 
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Thank you,

Thorpe

Thorpe Mayes
eCognizant LLC
2313 Lockhill-Selma Road, Ste 164
San Antonio, TX 78230
Phone: (405) 445-7877
Cell: (405) 514-9753






--
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


[AOLSERVER] Aolserver - Postgresql - not recognizing columns added to tables

2015-08-09 Thread Thorpe Mayes
Hi,

I have moved postgresql databases from one server to another. This was done by 
dumping the database, moving the resulting file to the new server, and then 
restoring the dumped file on the new server.

When I directly select rows via postgresdql (on the new server) from a table 
that had a column added after the table was created and before the table was 
moved to the new server there are not any problems.

However, when I try to do the same select from within a tcl script an error is 
thrown - the column does not exist. When I run the sql statement without the 
offending column, there is not a problem. 

So, it appears to me that the problem is with columns that have been added to 
tables via alter table…

Can anyone shed some light on this problem?

Thank you,

Thorpe

Thorpe Mayes
eCognizant LLC
2313 Lockhill-Selma Road, Ste 164
San Antonio, TX 78230
Phone: (405) 445-7877
Cell: (405) 514-9753






--
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


Re: [AOLSERVER] Question re CPU usage

2014-02-17 Thread Thorpe Mayes
Hi Ayan, 

Thanks for the reply.

No, this version has been running about two years. There are several web sites 
and applications running. 

The problem started about 10 days ago, so I am looking at changes I made around 
that time.

Seems like a script that has gone wild. Just not quite sure what to look for.

Thorpe

On Feb 16, 2014, at 4:59 PM, Ayan George a...@ayan.net wrote:

 On 02/16/2014 05:33 PM, Thorpe Mayes wrote:
 Hi.
 
 What would cause the following:
 
 
 Normally the CPU percent is in the low single digits.
 
 Now it gets as high as 333%.
 
 I am looking at recent changes, but I am not sure what to look
 for.
 
 
 Do you have any custom .adp pages, URL handers, or other TCL scripts
 running within AOLserver?  Or is this just a bone stock install
 without any requests?
 
 My hunch is that there is a particular page or script causing this.
 
 -ayan
 
 --
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.
 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
 ___
 aolserver-talk mailing list
 aolserver-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk
 


--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


Re: [AOLSERVER] Using ns_httpspost for FedEx API

2013-04-24 Thread Thorpe Mayes
Hi,

Thanks for the reply..

This is what I am getting back. 
!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title413 Request Entity Too Large/title
/headbody
h1Request Entity Too Large/h1
The requested resourcebr //xmlbr /
does not allow request data with POST requests, or the amount of data provided 
in the request exceeds the capacity limit.
/body/html

I wonder if it is the request headers I am using:

rqset [ns_set new rqset]
ns_set put $rqset Referrer Eatology
ns_set put $rqset Host wsbeta.fedex.com:443
ns_set put $rqset Port 443
ns_set put $rqset Accept image/gif, image/jpeg, text/plain, text/html, */*
ns_set put $rqset Content-type text/xml
ns_set put $rqset Content-length $content_length

content length is only 1583

Thanks,

Thorpe

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


[AOLSERVER] Server is generating errors spontaneously.

2012-07-26 Thread Thorpe Mayes
Hi,

When the server is running (4.5.1), my log file is filled with the following:

[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3
[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3
[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3
[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3
[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3
[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3
[26/Jul/2012:15:06:32][8151.18446744072342664960][-default:0-] Error: return: 
failed to redirect 'GET /redirects/servererror.tcl': exceeded recursion limit 
of 3

The log file is huge after a few minutes. 

What is causing this? 

Thanks,

Thorpe



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


[AOLSERVER] Question re ns_register_filter trace

2012-06-04 Thread Thorpe Mayes
Hi,

I have a simple (minded) question re ns_register_filter:

How do I disable this?

Remove the file and restart the server? 

Here is my code:

proc active_user_filter {why} {
...
return filter_ok
}

if {![info exists active_user_filter_p]} {
set x [ns_register_filter trace GET * active_user_filter]
nsv_set . active_user_filter_p 1
}

Thanks,

Thorpe

Thorpe Mayes
tma...@ecognizant.com
405.514.9753




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


Re: [AOLSERVER] AOLserver - PHP reinstall issue

2012-03-16 Thread Thorpe Mayes
Hi,

Thanks for the reply.

How did you solve the problem. I have had to remove php from the nsd file. 

Thanks,

Thorpe

On Mar 16, 2012, at 1:28 PM, wkliang wrote:

 Hello,
 
 the same issue had been encountered by me.
 guess that was caused by php+mysql while doing some clean up stuff.
 
 regards,
 wkliang @ taipei.
 
 On Thu, Mar 15, 2012 at 10:12 PM, Thorpe Mayes tma...@ecognizant.net wrote:
 
 Hi,
 
 I reinstalled php5 (I did not remove anything before reinstalling) with the 
 curl extension enabled.
 
 After doing so, I got this message upon shutting down the server:
 
 [15/Mar/2012:08:29:55][13455.3083933376][-main-] Notice: driver: stopped: 
 nssock
 *** glibc detected *** /usr/local/aolserver/bin/nsd: corrupted double-linked 
 list: 0x09e5ec38 ***
 === Backtrace: =
 /lib/libc.so.6[0xb7d76894]
 /lib/libc.so.6(__libc_free+0x78)[0xb7d79f6f]
 /usr/local/aolserver/bin/libphp5.so(tsrm_shutdown+0x9f)[0xb6e90a9f]
 /usr/local/aolserver/bin/libphp5.so[0xb6f5b92c]
 /usr/local/aolserver/lib/libnsd.so[0xb7f542b9]
 /usr/local/aolserver/lib/libnsd.so[0xb7f54410]
 /usr/local/aolserver/lib/libnsthread.so(NsThreadMain+0x2f)[0xb7f3707f]
 /usr/local/aolserver/lib/libnsthread.so[0xb7f38384]
 /lib/libpthread.so.0[0xb7e7c433]
 /lib/libc.so.6(__clone+0x5e)[0xb7ddba1e]
 === Memory map: 
 08048000-08049000 r-xp  08:02 4178137/usr/local/aolserver/bin/nsd
 08049000-0804a000 rwxp  08:02 4178137/usr/local/aolserver/bin/nsd
 ...
 
 
 I disabled php in the nsd.tcl file and the problem disappeared, so it 
 appears to be related to the reinstall of php.
 
 It looks like I need to reinstall php, but not the way I did it yesterday.
 
 I will appreciate any suggestions.
 
 Thanks,
 
 Thorpe
 
 
 
 
 
 
 
 --
 This SF email is sponsosred by:
 Try Windows Azure free for 90 days Click Here
 http://p.sf.net/sfu/sfd2d-msazure
 ___
 aolserver-talk mailing list
 aolserver-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk
 
 --
 This SF email is sponsosred by:
 Try Windows Azure free for 90 days Click Here 
 http://p.sf.net/sfu/sfd2d-msazure
 ___
 aolserver-talk mailing list
 aolserver-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/aolserver-talk
 


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk