Re: Amazon Linux 2023 and Graviton
Re: Amazon Linux 2023 and Graviton
- Subject: Re: Amazon Linux 2023 and Graviton
- From: John Pollard via Webobjects-dev <email@hidden>
- Date: Wed, 23 Oct 2024 17:29:46 +0100
- Ui-outboundreport: notjunk:1;M01:P0:7I5hWsaIhRE=;mVIDa2j35FRiBmDLQZN31HWOtnT 79tXq1ZvQfXEtkFWWCzCQGUVFW60hlCybiHEyKWpbJOD7RodHe7ZLGTTZta2X0Bmu5dElD1Pz uDS1aCPKaz+x8rWXPKKtMKvBZ3KtlsgKaRcKb7wieBd9R2CFkamB1ht3PRvYDOWA2ei3lP3Bu Qh2yX1zsnoVVZda5uXPIh0NqNmLwZKUHjNIt1JWqpJXJJpU87x1fkHyjHLV/2M/HBXee0sV9o SwH+G3yuFlPeGjq8VX58G9ODU4PsQOjEEmGrC4UYuv/WHjMnstUtY5wX8m3HbKOkpF292YAKG h7pJ6+O4bDcqz8NDaMNmNx61GqVoT0tZWMnI9aavQwfmdSXKo2vF3ffQBMJCSZ0AcjXfEvGog L9V2c2imYHaNgGt8leyo198ZX0YzSzKUN4XFbL83QsAhS0y+KSyj9o0wd/TAEv6eGAMOAJV77 HLcTtdV7oWLsU98s107NL88jaTO/oGr/jqQ0K21DVVH3zQkZDLndUs+6pQNYfYEcVZyqC8uHg ijH9lLVMtAd1J5GHSPkzHSKS02U0fal1l4rWd3zMTBk4NPZB+fYZyw7ZsTNDUp5n4rTOtt5hm DYf8BMGB16peFB4aLjxSemi9DWSTqhYTeok6gIdpTRhvEXiUh7TKqCdmqu/H2F3qXOukXhDse mJ4zagfYSDgguoBSj4o5uFcUduqRoxfg8Du+8MEcDt1/Xf602VAQ1+bm0DlqWNKAffaFo/sPD ZW8QYfp8jG4FkTgB77VhdBfu6FkF7TuMQ==
This was resolved be editing: /etc/httpd/conf.modules.d/00-mpm.conf
and loading mod_mpm_prefork.so instead of mod_mpm_event.so
This has come up in this mailing list in the past but I failed to find it for a
while!
So Gravition deployment ok again.
> On 22 Oct 2024, at 19:27, John Pollard via Webobjects-dev
> <email@hidden> wrote:
>
> 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
>> <email@hidden> 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 <email@hidden> 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
>>>> <email@hidden> 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 the HTTP adaptor on Linux/
>>>> 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
>>>>> <email@hidden> wrote:
>>>>>
>>>>> Hi John,
>>>>>
>>>>> On 21 Jun 2024, at 17:33, John Pollard <email@hidden> 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 (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden