Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-07-01 Thread Gary Perez
Wouldn't you know? This morning, I got another AssertionError... this  
time from http://ipaddress:8081/.

I've turned off the EnableHTTP altogether. Thanks for pointing that out.


On Jun 30, 2009, at 2:48, Christoph Zwerschke wrote:

 Gary Perez schrieb:
 Upon closer inspection of the emailed AssertionErrors, it appeared
 that the proxy requests weren't actually hitting any of the
 VirtualHost domains for that box, but they were explicitly connecting
 to http://ipaddress:8080/. So it didn't really matter how I had the
 rewrite rules or virtual hosting configured.

 Ok, thanks for the feedback. Maybe I can improve the behavior when
 WebKit is addressed as a proxy. Btw, you can disable the built-in
 webserver on port 8080 and only listen to the app server port 8086.
 Just set EnableHTTP = False in AppServer.config. Also, in the same
 config file you can restrict the network interfaces at which the
 application server will listen. I recommend setting  
 Host='localhost' to
 only listen to the Apache on the same server.

 -- Christoph

 -- 
 
 ___
 Webware-discuss mailing list
 Webware-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-discuss



Gary Perez
Advanced Simulation Technology inc.
gary.pe...@asti-usa.com
http://www.asti-usa.com/


--
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-30 Thread Gary Perez
Just to followup.

I eventually did upgrade the installation from 0.9.4 to 1.0.2 by  
installing it alongside the original directory  changing the  
webwareDir config. line inside my app working directory's Launch.py.

Unfortunately, this is unrelated to the original problem.

--

Here's what I think was happening.

The server (somehow) made its way onto a list of open proxy web  
servers. At that time, Apache2 was configured to be an open proxy...  
but I didn't know it. So I changed httpd.conf to remove the proxy- 
related functionality. But that didn't fix the AssertionErrors  
problem, it merely stopped the server from acting as a proxy.

In fact, it caused the number of AssertionErrors to skyrocket from a  
few per day to approx. 100 in 2 hours.

I'd originally had Apache configured with rewrite rules to route  
normal URLs through the AppServer... (e.g., requests to  
www.example.com got served through www.example.com/webkit/). Thinking  
that the unwanted proxy requests were hitting these normal URLs, I  
removed the rewrite rules. This had no effect on the errors; they  
kept coming in droves.

Upon closer inspection of the emailed AssertionErrors, it appeared  
that the proxy requests weren't actually hitting any of the  
VirtualHost domains for that box, but they were explicitly connecting  
to http://ipaddress:8080/. So it didn't really matter how I had the  
rewrite rules or virtual hosting configured.

Finally, I changed the port number inside my app working directory/ 
Configs/AppServer.config.

Now (at least theoretically), the server's just kicking back 404s to  
everything connecting to 8080 instead of routing anything through  
WebKit  inducing the AssertionErrors.

It'll work for now. If any of you have any suggestions as to a better  
way to fix the problem, I'd certainly welcome them.

Thanks,
-Gary


On Jun 8, 2009, at 4:27, Christoph Zwerschke wrote:

 Gary Perez schrieb:
 I use MakeAppWorkDir.py after each (new) installation. Is it possible
 to install the new version of Webware  then point the existing
 appworkdir to it in place of the older version?

 Or should it be run again to create a fresh appworkdir, copy context
 directories  reconfigure?

 This is only required if you're updating from a really old version.
 If your're running 0.9.1 or newer, you can simply update Webware  
 itself
 without any changes in the app work dirs.

 I recommend moving the old version to /usr/local/Webware.old and then
 installing the current version as /usr/local/Webware. Then no  
 changes to
 the working dirs will be needed, and if it does not work as expected,
 you can easily revert the update.

 -- Christoph




--
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-30 Thread Christoph Zwerschke
Gary Perez schrieb:
 Upon closer inspection of the emailed AssertionErrors, it appeared  
 that the proxy requests weren't actually hitting any of the  
 VirtualHost domains for that box, but they were explicitly connecting  
 to http://ipaddress:8080/. So it didn't really matter how I had the  
 rewrite rules or virtual hosting configured.

Ok, thanks for the feedback. Maybe I can improve the behavior when 
WebKit is addressed as a proxy. Btw, you can disable the built-in 
webserver on port 8080 and only listen to the app server port 8086.
Just set EnableHTTP = False in AppServer.config. Also, in the same 
config file you can restrict the network interfaces at which the 
application server will listen. I recommend setting Host='localhost' to 
only listen to the Apache on the same server.

-- Christoph

--
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-08 Thread Gary Perez
What's the best way to upgrade a current installation to the latest  
version?

The latest info regarding this (that I could locate) is from 2006:
http://www.mail-archive.com/webware-discuss@lists.sourceforge.net/ 
msg08235.html

I use MakeAppWorkDir.py after each (new) installation. Is it possible  
to install the new version of Webware  then point the existing  
appworkdir to it in place of the older version?

Or should it be run again to create a fresh appworkdir, copy context  
directories  reconfigure?

Thanks,
-Gary


On Jun 2, 2009, at 4:57, Christoph Zwerschke wrote:

 Gary Perez schrieb:
 Various lines exist in the log files, e.g.:
 ...
 ... GET http://proxyjudge1.proxyfire.net/fastenv HTTP/1.1 ...

 I tried requesting such URLs with telnet, but was not able to  
 reproduce
 the problem.

 Can you update to the latest Webware version and check whether that
 works better? You can download it at

 http://downloads.sourceforge.net/webware/Webware-1.0.2b1.tar.gz

 I'd like to get feedback conerning 1.0.2b1 anwyway, since I want to
 publish 1.0.2 soon.

 -- CHristoph




 -- 
 
 OpenSolaris 2009.06 is a cutting edge operating system for enterprises
 looking to deploy the next generation of Solaris that includes the  
 latest
 innovations from Sun and the OpenSource community. Download a copy and
 enjoy capabilities such as Networking, Storage and Virtualization.
 Go to: http://p.sf.net/sfu/opensolaris-get
 ___
 Webware-discuss mailing list
 Webware-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-discuss



--
Gary Perez :: Interwebs Guy
Advanced Simulation Technology inc.
gary.pe...@asti-usa.com
http://www.asti-usa.com/


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-08 Thread Christoph Zwerschke
Gary Perez schrieb:
 I use MakeAppWorkDir.py after each (new) installation. Is it possible  
 to install the new version of Webware  then point the existing  
 appworkdir to it in place of the older version?
 
 Or should it be run again to create a fresh appworkdir, copy context  
 directories  reconfigure?

This is only required if you're updating from a really old version.
If your're running 0.9.1 or newer, you can simply update Webware itself 
without any changes in the app work dirs.

I recommend moving the old version to /usr/local/Webware.old and then 
installing the current version as /usr/local/Webware. Then no changes to 
the working dirs will be needed, and if it does not work as expected, 
you can easily revert the update.

-- Christoph

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-02 Thread Christoph Zwerschke
Gary Perez schrieb:
 I'm surprised nobody has had this happen before. Googling the  
 specific error turns up zero hits. I must be an edge-case.

You config looks ok. Can you see the corresponding entries in the Apache 
access log?

-- Christoph

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-02 Thread Gary Perez
Various lines exist in the log files, e.g.:

89.188.112.122 - - [01/Jun/2009:17:31:19 -0400] POST http:// 
ixdatahost.ru/proxy5/check.php HTTP/1.1 404 293 http://de58bfe3d3/;  
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

61.139.105.163 - - [27/May/2009:19:43:27 -0400] GET http:// 
www.google.com/intl/zh-CN/ HTTP/1.1 404 289 - Mozilla/4.0  
(compatible; MSIE 6.0; Windows NT 5.1)

61.139.105.163 - - [30/May/2009:06:23:25 -0400] GET http:// 
proxyjudge1.proxyfire.net/fastenv HTTP/1.1 404 296 - Mozilla/4.0  
(compatible; MSIE 6.0; Windows NT 5.1)

88.80.7.248 - - [25/May/2009:07:02:08 -0400] GET http://88.80.7.248/ 
pp/anp.php?a=UV%5CHWQFY%40L%5CUEZb=1155c=88a8 HTTP/1.1 404 285 -  
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)




On Jun 2, 2009, at 2:15, Christoph Zwerschke wrote:

 Gary Perez schrieb:
 I'm surprised nobody has had this happen before. Googling the
 specific error turns up zero hits. I must be an edge-case.

 You config looks ok. Can you see the corresponding entries in the  
 Apache
 access log?

 -- Christoph

 -- 
 
 OpenSolaris 2009.06 is a cutting edge operating system for enterprises
 looking to deploy the next generation of Solaris that includes the  
 latest
 innovations from Sun and the OpenSource community. Download a copy and
 enjoy capabilities such as Networking, Storage and Virtualization.
 Go to: http://p.sf.net/sfu/opensolaris-get
 ___
 Webware-discuss mailing list
 Webware-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-discuss



--
Gary Perez :: Interwebs Guy
Advanced Simulation Technology inc.
gary.pe...@asti-usa.com
http://www.asti-usa.com/


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-02 Thread Christoph Zwerschke
Gary Perez schrieb:
 Various lines exist in the log files, e.g.:
 ...
 ... GET http://proxyjudge1.proxyfire.net/fastenv HTTP/1.1 ...

I tried requesting such URLs with telnet, but was not able to reproduce 
the problem.

Can you update to the latest Webware version and check whether that 
works better? You can download it at

http://downloads.sourceforge.net/webware/Webware-1.0.2b1.tar.gz

I'd like to get feedback conerning 1.0.2b1 anwyway, since I want to 
publish 1.0.2 soon.

-- CHristoph




--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-01 Thread Christoph Zwerschke
Gary Perez schrieb:
 I looked up this proxy5/check.php thing in Google  it indicates  
 (?) some type of proxy abuse (led me to: http://wiki.apache.org/httpd/ 
 ProxyAbuse). So I changed the config. in httpd.conf, but that only  
 seemed to generate more errors  emails.

Hi Gary,

I did not come across these errors so far. They do not appear in the log 
of our Webware server at w4py.org either.

What did you change in the config? Did you set the ServerName? I think 
that should solve the issue.

-- Christoph



--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Recurring AssertionErrors from URLParser.py

2009-06-01 Thread Gary Perez
Hi Christoph,

For each of the domains hosted under this installation, I have:

NameVirtualHost [ipaddr]:80

VirtualHost [ipaddr]:80
ServerName [domain].com
ServerAlias [domain].com *.[domain].com
DocumentRoot /var/www/[domain]
/VirtualHost

But I also employ a number of rewrite rules (within the VirtualHost  
directive) for those which primarily use the webkit application  
server (the wk part of the URL):

RewriteEngine On
RewriteRule ^/wk/(.*) /$1 [R]
RewriteRule ^/js/(.*) /js/$1 [PT]
RewriteRule ^/gfx/(.*) /gfx/$1 [PT]
RewriteRule ^/logos/(.*) /logos/$1 [PT]
RewriteRule ^/screens/(.*) /screens/$1 [L,PT]
RewriteRule ^/(.*) /wk/$1 [L,PT]

I killed the application server earlier today to halt the increasing  
# of emailed tracebacks/errors.

I'm surprised nobody has had this happen before. Googling the  
specific error turns up zero hits. I must be an edge-case.

Thanks,
-Gary



On Jun 1, 2009, at 5:30, Christoph Zwerschke wrote:

 Gary Perez schrieb:
 I looked up this proxy5/check.php thing in Google  it indicates
 (?) some type of proxy abuse (led me to: http://wiki.apache.org/ 
 httpd/
 ProxyAbuse). So I changed the config. in httpd.conf, but that only
 seemed to generate more errors  emails.

 Hi Gary,

 I did not come across these errors so far. They do not appear in  
 the log
 of our Webware server at w4py.org either.

 What did you change in the config? Did you set the ServerName? I think
 that should solve the issue.

 -- Christoph



 -- 
 
 OpenSolaris 2009.06 is a cutting edge operating system for enterprises
 looking to deploy the next generation of Solaris that includes the  
 latest
 innovations from Sun and the OpenSource community. Download a copy and
 enjoy capabilities such as Networking, Storage and Virtualization.
 Go to: http://p.sf.net/sfu/opensolaris-get
 ___
 Webware-discuss mailing list
 Webware-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-discuss



--
Gary Perez :: Interwebs Guy
Advanced Simulation Technology inc.
gary.pe...@asti-usa.com
http://www.asti-usa.com/


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss