Re: New installation fail?

2020-09-01 Thread Paul Yu via Webobjects-dev
For Whatever its worth, we on the treasure boat side have switched to 
Mod-proxy.  We have updated TBMonitor and TBTaskd. I just recently built a 
CentOS7 server from scratch and it works great.

Paul

> On Sep 1, 2020, at 8:34 PM, Paul Hoadley via Webobjects-dev 
>  wrote:
> 
> Hey Jesse,
> 
> On 2 Sep 2020, at 01:15, Jesse Tayler via Webobjects-dev 
> mailto:webobjects-dev@lists.apple.com>> 
> wrote:
> 
>> I'm launching a new EC2 Instance and just installing from scratch and I 
>> found my way to this page
>> 
>> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
>>  
>> 
>> 
>> These WO installs all have bad links or dead services?
> 
> Seems like there's a lot of bit rot going on.
> 
> Rest assured that it's still quite possible (and fairly easy) to set up a 
> fresh WebObjects appserver from scratch on EC2. We use Amazon Linux 2—I can't 
> vouch for CentOS or RedHat, though there shouldn't be anything that prevents 
> it if you're wedded to one of those.
> 
> What we use is a heavily customised version of the script posted by Simon 
> McLean, possibly as long ago as 2010. I'm digging around in my local list 
> archive: I can't see whether the script itself was ever posted, or whether it 
> was just a link to an S3 bucket that seems to no longer exist 
> (http://webobjects.s3.amazonaws.com/wo-install.sh 
> ).
> 
> I might be able to find the original somewhere, perhaps I can dig around in 
> our repo. Meanwhile, the basic outline is very straightforward:
> 
> 1. Download JavaMonitor and wotaskd as GZIP bundles from somewhere, e.g. 
> wocommunity.org .
> 2. Download mod_WebObjects.so from somewhere—it's very easy to build your own 
> binary on an EC2 instance and then you can just stash that somewhere.
> 3. Install Apache with yum.
> 4. Make the usual Apache config modifications for WebObjects.
> 5. Start Apache.
> 6. Unpack the GZIP bundles you downloaded at 1.
> 7. Start JavaMonitor and wotaskd.
> 
> Obviously there's a lot of hand-waving going on there. But the takeaway is 
> that you don't need to rely on ancient package versions of JavaMonitor and 
> wotaskd—you can just pull them from the WOCommunity Jenkins. The rest of it 
> is just scripting up the stuff you'd normally do to get them running on any 
> Unix.
> 
> Let me know if you need more help.
> 
> 
> -- 
> 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/pyu%40mac.com
> 
> This email sent to p...@mac.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


Re: New installation fail?

2020-09-01 Thread Paul Hoadley via Webobjects-dev
Hey Jesse,

On 2 Sep 2020, at 01:15, Jesse Tayler via Webobjects-dev 
 wrote:

> I'm launching a new EC2 Instance and just installing from scratch and I found 
> my way to this page
> 
> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
> 
> These WO installs all have bad links or dead services?

Seems like there's a lot of bit rot going on.

Rest assured that it's still quite possible (and fairly easy) to set up a fresh 
WebObjects appserver from scratch on EC2. We use Amazon Linux 2—I can't vouch 
for CentOS or RedHat, though there shouldn't be anything that prevents it if 
you're wedded to one of those.

What we use is a heavily customised version of the script posted by Simon 
McLean, possibly as long ago as 2010. I'm digging around in my local list 
archive: I can't see whether the script itself was ever posted, or whether it 
was just a link to an S3 bucket that seems to no longer exist 
(http://webobjects.s3.amazonaws.com/wo-install.sh 
).

I might be able to find the original somewhere, perhaps I can dig around in our 
repo. Meanwhile, the basic outline is very straightforward:

1. Download JavaMonitor and wotaskd as GZIP bundles from somewhere, e.g. 
wocommunity.org .
2. Download mod_WebObjects.so from somewhere—it's very easy to build your own 
binary on an EC2 instance and then you can just stash that somewhere.
3. Install Apache with yum.
4. Make the usual Apache config modifications for WebObjects.
5. Start Apache.
6. Unpack the GZIP bundles you downloaded at 1.
7. Start JavaMonitor and wotaskd.

Obviously there's a lot of hand-waving going on there. But the takeaway is that 
you don't need to rely on ancient package versions of JavaMonitor and 
wotaskd—you can just pull them from the WOCommunity Jenkins. The rest of it is 
just scripting up the stuff you'd normally do to get them running on any Unix.

Let me know if you need more help.


-- 
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/archive%40mail-archive.com

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


Re: Install broken due to missing updated wocommunity repo resources

2020-09-01 Thread Theodore Petrosky via Webobjects-dev
I can still log in and edit pages,. I think I was the last to update it to 
CenOS7.

Ted

> On Sep 1, 2020, at 1:28 PM, Robert Hanviriyapunt via Webobjects-dev 
>  wrote:
> 
> Hi, just wanting to let everyone know that the instructions I found at:
> 
> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
>  
> 
> 
> Fails due to the wocommunity repo only having resources up to CenOS7 (my 
> install attempt today was looking for CenOS8).
> 
> Not sure how to get someone to update it.
> 
> I bypassed my initial issue by forcing it to look only at the CenOS7 path.  
> Not sure if this will end up working or not.  Just wanted to let people know 
> and either have someone update it or post new updated instructions.
> 
> Cheers.
> 
> = Robert =
> ___
> 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/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.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


Install broken due to missing updated wocommunity repo resources

2020-09-01 Thread Robert Hanviriyapunt via Webobjects-dev
Hi, just wanting to let everyone know that the instructions I found at:

https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
 


Fails due to the wocommunity repo only having resources up to CenOS7 (my 
install attempt today was looking for CenOS8).

Not sure how to get someone to update it.

I bypassed my initial issue by forcing it to look only at the CenOS7 path.  Not 
sure if this will end up working or not.  Just wanted to let people know and 
either have someone update it or post new updated instructions.

Cheers.

= Robert = ___
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


Re: New installation fail?

2020-09-01 Thread Jesse Tayler via Webobjects-dev
Same

I hack a bit further and might get through but I still hope some’s got working 
scripts still…

If not, we’ll make one!



> On Sep 1, 2020, at 1:18 PM, Theodore Petrosky  wrote:
> 
> i feel i should zip up my installer folder and send it. there were so many 
> experiments. i was looking to create a script that would install everything 
> and compile on the target EC box what was needed.
> 
> I got most of the way there. it still required some hand tweaking at the end.
> 
> the real issue is that it was so long ago in a solar system that doesn’t 
> exist anymore
> 
> Ted
> 
>> On Sep 1, 2020, at 1:04 PM, Jesse Tayler  wrote:
>> 
>> 
>> Well, it seems I was able to find some decade old scripts that had a LOT of 
>> important things in them all working at one time.
>> 
>> This fails in several ways like not finding this public S3 bucket or 
>> dependencies and I figure other folks must rely on EC2/S3
>> 
>> I can make sure I script out whatever I eventually get working for it but me 
>> thinks other folks are using something else or maintaining their instances 
>> another way?
>> 
>> 
>> 
>> 
>>> On Sep 1, 2020, at 1:00 PM, Theodore Petrosky  wrote:
>>> 
>>> All of my experiments revolved around compiling everything on the target 
>>> machine.
>>> 
>>> I will look around for the link, but there is a section that has an 
>>> installer script that is quite awesome.
>>> 
>>> Give me a little to look around.
>>> 
>>> Ted
>>> 
 On Sep 1, 2020, at 11:45 AM, Jesse Tayler  wrote:
 
 
 I'm launching a new EC2 Instance and just installing from scratch and I 
 found my way to this page
 
 https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
 
 These WO installs all have bad links or dead services?
 
 sudo yum install wotaskd
 sudo yum install womonitor
 sudo yum install woadaptor
 
 
 I notice there’s stuff here
 
 https://packages.wocommunity.org/CentOS/latest/i386/
 
 I'm not even certain I recall what CentOS is, I’m apparently on Amazon 
 Linux 2
 
 Ok, so what’s the latest working method for updating an EC2 instance?
 
 
>>> 
>> 
> 

 ___
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


Re: New installation fail?

2020-09-01 Thread Theodore Petrosky via Webobjects-dev
i feel i should zip up my installer folder and send it. there were so many 
experiments. i was looking to create a script that would install everything and 
compile on the target EC box what was needed.

I got most of the way there. it still required some hand tweaking at the end.

the real issue is that it was so long ago in a solar system that doesn’t exist 
anymore

Ted

> On Sep 1, 2020, at 1:04 PM, Jesse Tayler  wrote:
> 
> 
> Well, it seems I was able to find some decade old scripts that had a LOT of 
> important things in them all working at one time.
> 
> This fails in several ways like not finding this public S3 bucket or 
> dependencies and I figure other folks must rely on EC2/S3
> 
> I can make sure I script out whatever I eventually get working for it but me 
> thinks other folks are using something else or maintaining their instances 
> another way?
> 
> 
> 
> 
>> On Sep 1, 2020, at 1:00 PM, Theodore Petrosky  wrote:
>> 
>> All of my experiments revolved around compiling everything on the target 
>> machine.
>> 
>> I will look around for the link, but there is a section that has an 
>> installer script that is quite awesome.
>> 
>> Give me a little to look around.
>> 
>> Ted
>> 
>>> On Sep 1, 2020, at 11:45 AM, Jesse Tayler  wrote:
>>> 
>>> 
>>> I'm launching a new EC2 Instance and just installing from scratch and I 
>>> found my way to this page
>>> 
>>> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
>>> 
>>> These WO installs all have bad links or dead services?
>>> 
>>> sudo yum install wotaskd
>>> sudo yum install womonitor
>>> sudo yum install woadaptor
>>> 
>>> 
>>> I notice there’s stuff here
>>> 
>>> https://packages.wocommunity.org/CentOS/latest/i386/
>>> 
>>> I'm not even certain I recall what CentOS is, I’m apparently on Amazon 
>>> Linux 2
>>> 
>>> Ok, so what’s the latest working method for updating an EC2 instance?
>>> 
>>> 
>> 
> 

 ___
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


Re: New installation fail?

2020-09-01 Thread Jesse Tayler via Webobjects-dev

Well, it seems I was able to find some decade old scripts that had a LOT of 
important things in them all working at one time.

This fails in several ways like not finding this public S3 bucket or 
dependencies and I figure other folks must rely on EC2/S3

I can make sure I script out whatever I eventually get working for it but me 
thinks other folks are using something else or maintaining their instances 
another way?


#!/bin/bash

### All userdata scripts should include this section ###

### ---8<-- ###

yum -y install make

# Install WebObjects deployment environment
echo "Installing the WebObjects deployment environment"
wget http://webobjects.s3.amazonaws.com/wo-install.sh -O /wo-install.sh
chmod 775 /wo-install.sh
/wo-install.sh

# Next we install s3 command line tools (http://timkay.com/aws/). 
# We need these to enable us to fetch stuff from private s3 buckets.
echo "s3get is not installed so installing it now"
# Fetch the aws cli tool
curl -L github.com/timkay/aws/raw/master/aws -o aws
# Install the aws cli tool
perl aws --install

# Create an .awssecret file
touch /root/.awssecret
cat >> /root/.awssecret << END
ITWASANOLDCODEANYWAY
THISISNOTTHEREALCODEBUTTHEREISANS3KEY/wsYB544 
END

### ---8<-- ###

# Add a helloworld user. The default user is appserver, which might suffice for 
your needs. We
# run each cluster of servers as a specific named user as we load properties 
(using ERXProperties)
# on a per-cluster basis.
echo "Adding a helloworld user to the appserveradm group"
useradd -g appserveradm helloworld

# Change the user in the WebObjects init.d script
echo "Changing the user who runs WebObjects services to helloworld"
cd /etc/init.d/
sed --in-place=.backup 's/USER=appserver/USER=helloworld/g' webobjects

# Fix the permissions
echo "Fixing permissions"
chmod 755 /etc/init.d/webobjects

# Fix user and group
echo "Fixing users and groups"
chown -R helloworld:appserveradm /opt/WOApplications
chown -R helloworld:appserveradm /opt/WOWebServerResources
chown -R helloworld:appserveradm /opt/WODeployment

# Wait for 10 seconds to ensure that the user and group changes have propogated
echo "Wait for 10 seconds to ensure that the user and group changes have 
propogated"
sleep 10

# Restart WO services
echo "Starting WebObjects services"
/etc/init.d/webobjects start

# Wait for 30 seconds to ensure that WebObjects services have booted before 
continuing
echo "Wait for 30 seconds to ensure that WebObjects services have booted before 
continuing"
sleep 30

# Add a host
echo "Adding a host"
curl -X POST -d "{id: '127.0.0.1',type: 'MHost', osType: 'UNIX',address: 
'127.0.0.1', name: '127.0.0.1'}" 
http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mHosts.json

# Configure the WOAdaptorURL
echo "Configuring the WOAdaptorURL in Java Monitor"
curl -X PUT -d "{woAdaptor:'http://prod.clicktravel.com/apps/WebObjects'}" 
http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json

# Fetch and run our install dependencies script. We fetch this from the public 
webobjects s3 bucket.
echo "Fetch and run the helloworld server installation dependencies script"
touch /helloworld-deps-install.sh
s3get webobjects/helloworld-deps-install.sh /helloworld-deps-install.sh
chmod 775 /helloworld-deps-install.sh
/helloworld-deps-install.sh

# Fetch and run our apps install script. We fetch this from the public 
webobjects s3 bucket.
echo "Fetch and run our helloworld server application install script"
touch /helloworld-install.sh
s3get webobjects/helloworld-install.sh /helloworld-install.sh
chmod 775 /helloworld-install.sh
/helloworld-install.sh

# Configure the WOAdaptorURL and password
echo "Configuring the password in Java Monitor"
curl -X PUT -d "{password:'wonderful'}" 
http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json

sudo ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime

echo "Job done!"


> On Sep 1, 2020, at 1:00 PM, Theodore Petrosky  wrote:
> 
> All of my experiments revolved around compiling everything on the target 
> machine.
> 
> I will look around for the link, but there is a section that has an installer 
> script that is quite awesome.
> 
> Give me a little to look around.
> 
> Ted
> 
>> On Sep 1, 2020, at 11:45 AM, Jesse Tayler  wrote:
>> 
>> 
>> I'm launching a new EC2 Instance and just installing from scratch and I 
>> found my way to this page
>> 
>> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
>> 
>> These WO installs all have bad links or dead services?
>> 
>> sudo yum install wotaskd
>> sudo yum install womonitor
>> sudo yum install woadaptor
>> 
>> 
>> I notice there’s stuff here
>> 
>> https://packages.wocommunity.org/CentOS/latest/i386/
>> 
>> I'm not even certain I recall what CentOS is, I’m apparently on Amazon Linux 
>> 2
>> 
>> Ok, so what’s the latest working method for updating an EC2 instance?
>> 
>> 
> 

 

Re: New installation fail?

2020-09-01 Thread Theodore Petrosky via Webobjects-dev
All of my experiments revolved around compiling everything on the target 
machine.

I will look around for the link, but there is a section that has an installer 
script that is quite awesome.

Give me a little to look around.

Ted

> On Sep 1, 2020, at 11:45 AM, Jesse Tayler  wrote:
> 
> 
> I'm launching a new EC2 Instance and just installing from scratch and I found 
> my way to this page
> 
> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
> 
> These WO installs all have bad links or dead services?
> 
> sudo yum install wotaskd
> sudo yum install womonitor
> sudo yum install woadaptor
> 
> 
> I notice there’s stuff here
> 
> https://packages.wocommunity.org/CentOS/latest/i386/
> 
> I'm not even certain I recall what CentOS is, I’m apparently on Amazon Linux 2
> 
> Ok, so what’s the latest working method for updating an EC2 instance?
> 
> 

 ___
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


RE: New installation fail?

2020-09-01 Thread GILQUIN Pierre via Webobjects-dev
On CentOS 7, it was impossible to use yum for installing the http adaptor.

I had to compile it the from the source following the "Compiling Apache 2.4 
WebObjects Adaptor" section of your link.

May be you have to the do the same on your Amazon linux...

Pierre



-Message d'origine-
De : Jesse Tayler via Webobjects-dev [mailto:webobjects-dev@lists.apple.com] 
Envoyé : mardi 1 septembre 2020 17:46
À : Webobjects-dev
Cc : Robert Hanviriyapunt
Objet : New installation fail?


I'm launching a new EC2 Instance and just installing from scratch and I found 
my way to this page

https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux

These WO installs all have bad links or dead services?

sudo yum install wotaskd
sudo yum install womonitor
sudo yum install woadaptor


I notice there’s stuff here

https://packages.wocommunity.org/CentOS/latest/i386/

I'm not even certain I recall what CentOS is, I’m apparently on Amazon Linux 2

Ok, so what’s the latest working method for updating an EC2 instance?


 ___
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/pierre.gilquin%40hcuge.ch

This email sent to pierre.gilq...@hcuge.ch
 ___
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


New installation fail?

2020-09-01 Thread Jesse Tayler via Webobjects-dev

I'm launching a new EC2 Instance and just installing from scratch and I found 
my way to this page

https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux

These WO installs all have bad links or dead services?

sudo yum install wotaskd
sudo yum install womonitor
sudo yum install woadaptor


I notice there’s stuff here

https://packages.wocommunity.org/CentOS/latest/i386/

I'm not even certain I recall what CentOS is, I’m apparently on Amazon Linux 2

Ok, so what’s the latest working method for updating an EC2 instance?


 ___
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