So actually I can’t get https requests from the browser to my WO app to get 
through on AL2023 and Graviton…..yet.

If I use curl to fetch an https page, it works fine and I see the HTML of my 
page returned:

curl --insecure 
https://test.glovesonhand.co.uk/wa/1/43/4431-All-Ladies-Fashion.html

But if I put that same URL into Chrome or Firefox, the WOAdaptor log shows a 
fail:

Info: Sending request to instance number 1, port 2001
Info: Trying to contact MPMall:1 on (2001)
Info: attempting to connect to localhost on port 2001
Info: MPMall:1 on (2001) connected [pooled: No]
Error: sendBuffers(): send error: Invalid argument
Error: error sending request
Error: Failed to send request
Info: Marking instance 1 dead

This results in a No Instance Available

Something about https (but only from a browser, not from curl) is causing the 
WO Adaptor to not be able to communicate with the app instance. The logging 
doesn’t give much clue to the actual problem. I guess my best bet is to try to 
narrow the gap between what curl is doing and what the browsers are doing.

I can also connect fine using https from Java Client utilising wotaskd, so 
something from the browser is tripping it up.

Finally I can also connect with https in a browser to a running app 
(JavaMonitor in my test) if I bypass wotaskd using:

ProxyPreserveHost On
ProxyPass /cgi-bin/WebObjects/JavaMonitor.woa 
http://localhost:56789/cgi-bin/WebObjects/JavaMonitor.woa
ProxyPassReverse /cgi-bin/WebObjects/JavaMonitor.woa 
http://localhost:56789/cgi-bin/WebObjects/JavaMonitor.woa

Wow, that is a lot that works but still can’t nail the standard browser https 
request problem. Not giving up yet.

John

> On 3 Oct 2024, at 14:37, John Pollard via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> Just to confirm, deploying to Graviton AWS server all smooth and should help 
> lower costs.
> I have a built mod_WebObjects.so <http://mod_webobjects.so/> if anyone wants 
> a copy.
> The biggest issue I came across was having to upgrade one of my attached 
> volumes from ext3 to xps file system as the latest mysql 8.4 was not happy 
> with the former.
> For java, corretto Java 8 was fine and supports web start.
> 
>> On 19 Sep 2024, at 11:24, John Pollard <j...@pollardweb.com> wrote:
>> 
>> I do appear to have built mod_WebObjects.so
>> 
>> Some things I did on a new Amazon Linux 2023 Graviton instance
>> sudo yum groupinstall "Development Tools”
>> sudo yum install httpd-devel
>> 
>> Downloaded the wonder tarball as per the instructions linked below and 
>> extracted it
>> cd into Utilities/Adaptors
>> Edit make.config
>> Set:
>> ADAPTOR_OS = LINUX
>> RC_ARCHS=armv8-a
>> ADAPTORS = CGI Apache2.4  (this in the OTHER LINUX section)
>> 
>> make
>> 
>> A lot of output and warnings, but it created:
>> Adaptors/Apache2.4/mod_WebObjects.so
>> and
>> Adaptors/CGI/WebObjects
>> 
>> I will not be able to test it for a while, but promising.
>> 
>> Any feedback welcome.
>> 
>> Thanks
>> John
>> 
>>> On 18 Sep 2024, at 10:23, John Pollard via Webobjects-dev 
>>> <webobjects-dev@lists.apple.com> wrote:
>>> 
>>> Paul mentions that the WO Adaptor is easy to build from source; has anyone 
>>> done it on Amazon Graviton hardware?
>>> Would the best instructions be here?: 
>>> https://wiki.wocommunity.org/xwiki/bin/view/documentation/Home/Deployment/Compiling%20the%20HTTP%20adaptor%20on%20Linux/
>>> Though I note that hasn’t been updated since 2013.
>>> If anyone knows of prolems running WO app servers on Graviton, please say 
>>> now and stick to Amazon T3 instances or similar.
>>> Thanks
>>> John
>>> 
>>>> On 21 Jun 2024, at 23:58, Paul Hoadley via Webobjects-dev 
>>>> <webobjects-dev@lists.apple.com> wrote:
>>>> 
>>>> Hi John,
>>>> 
>>>> On 21 Jun 2024, at 17:33, John Pollard <j...@pollardweb.com> wrote:
>>>> 
>>>>> Also Paul, what instance type are you using; Amazon offer their own 
>>>>> Graviton instance types more cheaply and with higher performance, but I 
>>>>> am on t3.xlarge currently. Should I be looking at graviton versions? Is 
>>>>> there a WO adaptor built for them that can be grabbed? Any other 
>>>>> considerations in deploying to Graviton?
>>>> 
>>>> We use really only the T3 family—haven't looked into using Graviton. 
>>>> Building the WO adaptor from source is very straightforward, though.
>>>> 
>>>> 
>>>> -- 
>>>> Paul Hoadley
>>>> https://logicsquad.net/
>>>> https://www.linkedin.com/company/logic-squad/
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com
>>> 
>>> This email sent to j...@pollardweb.com
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com
> 
> This email sent to j...@pollardweb.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to