X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) From: "Valerio Luccio" Received: from [148.163.150.240] (HELO mx0b-00256a01.pphosted.com) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.7) with ESMTPS id 26733945 for webobjects-dev@wocommunity.org; Wed, 03 Nov 2021 18:52:47 +0100 Received-SPF: softfail receiver=post.selbstdenker.com; client-ip=148.163.150.240; envelope-from=valerio.luccio@nyu.edu Received: from pps.filterd (m0142700.ppops.net [127.0.0.1]) by mx0b-00256a01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1A3Hf4vT029840 for ; Wed, 3 Nov 2021 13:52:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nyu.edu; h=content-type : message-id : date : mime-version : subject : to : references : from : in-reply-to; s=20180315; bh=48qYJc8aPlD1PEEe4t3y+6C5WWdWal1/HZYeSmDlJE0=; b=P/8Yg1usPv17atIYD4+27FhESfHsOzV/R/CefJ8grYDzro5Rk+oM3ddlNcIB0T6ZXAOY 1Bo90SCMPoKI+TMZXsOWe5RL/LeY9KISEuXiAm1lCaVGVOODPb76paRkz2vUU61zIyiH G3qwM6fZraXeai7PhwR2yNQD18ovf142ujjFOYzrwUDdLolAVWfdSA298HYlzz2VAEeU B1COFtcKRudJ4gTWB5eWB8xx+eqEau8XULlijkaZCAVETknXaz15ofeVjJGStQoGiO6W HYvruLV0/NwAuYCq2JvR+ItXCuTjoliVPI8mv/glUqWb3h744xN3TqQs6dR3V1oMpPVn Mg== Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0b-00256a01.pphosted.com (PPS) with ESMTPS id 3c3dbjgfdw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 03 Nov 2021 13:52:22 -0400 Received: by mail-qv1-f72.google.com with SMTP id o15-20020a0cc38f000000b0038455e36f89so3445371qvi.6 for ; Wed, 03 Nov 2021 10:52:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=48qYJc8aPlD1PEEe4t3y+6C5WWdWal1/HZYeSmDlJE0=; b=eTlLXzYRzf5vnSxjInQjBM4XJaI1X6qb6gI4PO6yFZGJ98L9J0e3I/+l9FRwRTYcmZ 1xk/slsLD7PzGqQrUu6t43s0hRrYYrzvfVAMnirPWNQ1Epz/XrwrMAvcjOSWtn0ZLtF6 aAPRCOoyzoLx1JIg1vOkgJq8E07J6i52S2JTG/N+SP5OZOR1C5qnhtB2ZIQqk+IjFeuB 6zRDzL2YxouHIFe+kWSRv9BlOmFPiGiihEBl6YfhbtXC5jSQnyTa3kMvocQ11GvUIdWK mZNf1pPoD1VaeNhAlr8DfgDM/xF+km77VhtYT5KapyRRD8BW9LPz6/g8RpNC5a3sidSk 21Aw== X-Gm-Message-State: AOAM531f4fNLURvnOhCdDuRQNYLhbKV8/9lP0HPC7vyiuS4oFTmYoGXe 3Fg08NlKkZxinfVpj4hRGYoUUYfndWVQKegbxC83ABmfoloUVMWFkXvr0eXBMmUd9Ds66LPYoUc xJ3Ba5Zr/L4YkZSLq0tfeBW/76A== X-Received: by 2002:a05:6214:da9:: with SMTP id h9mr17993915qvh.2.1635961941353; Wed, 03 Nov 2021 10:52:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx7ZqBup/Pl9zWS9MQwQgknUOwgLG4UoZ7OvIqpnUTUZHbegu3gxpZNzmMxj5s6K95ffk9DA== X-Received: by 2002:a05:6214:da9:: with SMTP id h9mr17993878qvh.2.1635961940969; Wed, 03 Nov 2021 10:52:20 -0700 (PDT) Received: from [192.168.1.93] (4133da4e.cst.lightpath.net. [65.51.218.78]) by smtp.gmail.com with ESMTPSA id q20sm1973591qkl.53.2021.11.03.10.52.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Nov 2021 10:52:20 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------IEZXSz0yOfReRsoG0CGmjPdq" Message-ID: Date: Wed, 3 Nov 2021 13:52:19 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [WO-DEV] Re: WOMonitor on CentOS Content-Language: en-US To: WebObjects & WOnder Development References: In-Reply-To: X-Proofpoint-ORIG-GUID: fI_9wUr4WkKDp6OMj8HJ0VVpR5pZKDMK X-Proofpoint-GUID: fI_9wUr4WkKDp6OMj8HJ0VVpR5pZKDMK X-Orig-IP: 209.85.219.72 X-Proofpoint-Spam-Details: rule=outbound_bp_notspam policy=outbound_bp score=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 spamscore=0 mlxscore=0 bulkscore=0 adultscore=0 clxscore=1015 phishscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111030095 This is a multi-part message in MIME format. --------------IEZXSz0yOfReRsoG0CGmjPdq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hugi, not sure I'm following this. Which Application dispatchRequest am I supposed to monitor ? The application I wrote ? wotaskd ? WOMonitor ? I don't use any /etc/WebObjects/Properties file. How is this supposed to be configured ? How do I have the system use it ? Thanks, On 10/29/21 10:32 AM, Hugi Thordarson wrote: > Hmm, ok… You might try logging request in your Application's dispatchRequest() to see if the requests are getting through? The admin requests (including "stop") will go through there, like any other request, so that way you'll at least see if they're getting through. > > If your application is not receiving the admin requests, it's possible it's not listening to local requests. Local IPs can be added using the property "er.extensions.WOHostUtilities.localhostips". I've got a global Properties file on my system at /etc/WebObjects/Properties containing just: "er.extensions.WOHostUtilities.localhostips=(80.85.84.145)" (excluding quotes. And you'd of course substitute with your own server's IPs). > > - hugi > > > >> On 29 Oct 2021, at 12:14, Valerio Luccio wrote: >> >> Hi Hugi, >> >> as you suspected it didn't help. >> >> I doubt it's any system software blocking it explicitly since I don't see any messages in the log files. >> >> On 10/27/21 3:44 PM, Hugi wrote: >> >>> Try running “setenforce 0”. It will (temporarily) disable selinux, making it easy enough to find out if that’s your problem. Having set up a few CentOS servers, I doubt it is though. Report back and we’ll get you up and running :) >>> >>> >>>> On 27 Oct 2021, at 18:13, Valerio Luccio wrote: >>>> >>>>  >>>> At the bottom ofhttps://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.wocommunity.org_display_documentation_Deploying-2Bon-2BLinux&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zZK0dca4HNf-XwnAN9ais1C3ncS0n2x39pF7yr-muHY&m=7maqHYtwVmJLFrj8T6IkNUuylGvufsH41QC77LrCf5Y&s=a1rUeQVKdCPLmJheDsgkFECTpQfc_m52NguhujVfN7E&e= there is a section on SELinux. It points to a blog post written in 2013 by Steven Klassen, unfortunately that blog post is no longer available, does anyone have the original ? I've emailed Steven to see if he can send it to me. >>>> >>>> I've tried to add 1085 as an allowed http port using semanage, but I'm not sure I'm taking the right steps. >>>> >>>> On 10/27/21 1:22 PM, Valerio Luccio wrote: >>>> >>>>> I'm home and was able to test. It's not the firewall (I turned it off for a couple of minutes and tried, without success). I'm not sure what policies to look at. As far as I know wotaskd does not keep a log, correct ? >>>>> >>>>> On 10/23/21 6:18 AM, Valerio Luccio wrote: >>>>> >>>>>> Hi Samuel, >>>>>> that is a very good insight. I'm currently travelling, but when I'm back I'll play with policies/firewall and let you know what I found out. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> On Fri, Oct 22, 2021 at 3:28 PM Samuel Pelletier wrote: >>>>>> Hi Valerio, >>>>>> >>>>>> I experience the same problem on a Cent OS instance (I think this is a VMWare distribution) but it works on others... >>>>>> >>>>>> There is a major difference between starting the instance and other function like stop and refuse new session. Start is done by wotaskd that launc the process, others are http call to the instance by wotaskd, to some direct actions (womp handler I think). >>>>>> >>>>>> I suspect that the communication between wotaskd and instance is blocked by the firewall or system policy but I do not have a definitive proof of this. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Samuel >>>>>> >>>>>>> Le 21 oct. 2021 à 13:29, Valerio Luccio a écrit : >>>>>>> >>>>>>> Thanks Lon, >>>>>>> I didn't see your answer until now because gmail (which I hate every day more) had hidden it. >>>>>>> >>>>>>> I'll see what I can find in the logs, although "start" works fine, why would "stop" be different ? >>>>>>> >>>>>>> >>>>>>> On Tue, Oct 5, 2021 at 11:10 PM Lon Varscsak wrote: >>>>>>> Look in your application log, do you see messages about not being able to communicate with monitor? I found this problem happens if I don't have JavaXML as part of my project (or classpath defined to whatever the xml jars are). >>>>>>> >>>>>>> -Lon >>>>>>> >>>>>>> On Tue, Oct 5, 2021 at 1:43 PM Valerio Luccio wrote: >>>>>>> I recently ported my WebObjects app from an old OS X server to a CentOS 8 server. >>>>>>> >>>>>>> The WOMonitor on CentOS allows me to configure the app and start it, but it will not stop it (I end up doing with pkill from command line) and the Auto-Recover does not work. I also tried from command line using curl to communicate to WOMonitor, it does the info and start correctly, but it will not stop the app. >>>>>>> >>>>>>> I've looked at the log file for the WOMonitor, but there was nothing useful. >>>>>>> >>>>>>> Any ideas ? >>>>>>> >>>>>>> Thanks in advance, >>>>>>> >>>>>>> -- >>>>>>> Valerio Luccio >>>>>>> High Performance Computing >>>>>>> New York University New York, NY 10003 >>>>>>> >>>>>>> "In an open world, who needs windows or gates ?" >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Valerio Luccio >>>>>>> High Performance Computing 10 Astor Place, Room 415 >>>>>>> New York University New York, NY 10003 >>>>>>> >>>>>>> "In an open world, who needs windows or gates ?" >>>>>> >>>>>> >>>>>> -- >>>>>> Valerio Luccio >>>>>> High Performance Computing 10 Astor Place, Room 415 >>>>>> New York University New York, NY 10003 >>>>>> >>>>>> "In an open world, who needs windows or gates ?" >>>>> >>>>> -- >>>>> Valerio Luccio >>>>> High Performance Computing >>>>> New York University New York, NY 10003 >>>>> >>>>> "In an open world, who needs windows or gates ?" >>>> >>>> -- >>>> Valerio Luccio >>>> High Performance Computing >>>> New York University New York, NY 10003 >>>> >>>> "In an open world, who needs windows or gates ?" >> >> >> Valerio Luccio >> High Performance Computing >> New York University New York, NY 10003 >> >> "In an open world, who needs windows or gates ?" > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list. > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > To switch to the INDEX mode, E-mail to > Send administrative queries to > -- Valerio Luccio High Performance Computing 10 Astor Place, Room 415 New York University New York, NY 10003 "In an open world, who needs windows or gates ?" --------------IEZXSz0yOfReRsoG0CGmjPdq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hugi,

not sure I'm following this.

Which Application dispatchRequest am I supposed to monitor ? The application I wrote ? wotaskd ? WOMonitor ?

I don't use any /etc/WebObjects/Properties file. How is this supposed to be configured ? How do I have the system use it ?

Thanks,

On 10/29/21 10:32 AM, Hugi Thordarson wrote:

Hmm, ok… You might try logging request in your Application's dispatchRequest() to see if the requests are getting through? The admin requests (including "stop") will go through there, like any other request, so that way you'll at least see if they're getting through.

If your application is not receiving the admin requests, it's possible it's not listening to local requests. Local IPs can be added using the property "er.extensions.WOHostUtilities.localhostips". I've got a global Properties file on my system at /etc/WebObjects/Properties containing just: "er.extensions.WOHostUtilities.localhostips=(80.85.84.145)" (excluding quotes. And you'd of course substitute with your own server's IPs).

- hugi



On 29 Oct 2021, at 12:14, Valerio Luccio <webobjects-dev@wocommunity.org> wrote:

Hi Hugi,

as you suspected it didn't help. 

I doubt it's any system software blocking it explicitly since I don't see any messages in the log files.

On 10/27/21 3:44 PM, Hugi wrote:

Try running “setenforce 0”. It will (temporarily) disable selinux, making it easy enough to find out if that’s your problem. Having set up a few CentOS servers, I doubt it is though. Report back and we’ll get you up and running :)


On 27 Oct 2021, at 18:13, Valerio Luccio <webobjects-dev@wocommunity.org> wrote:


At the bottom of https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.wocommunity.org_display_documentation_Deploying-2Bon-2BLinux&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zZK0dca4HNf-XwnAN9ais1C3ncS0n2x39pF7yr-muHY&m=7maqHYtwVmJLFrj8T6IkNUuylGvufsH41QC77LrCf5Y&s=a1rUeQVKdCPLmJheDsgkFECTpQfc_m52NguhujVfN7E&e=  there is a section on SELinux. It points to a blog post written in 2013 by Steven Klassen, unfortunately that blog post is no longer available, does anyone have the original ?  I've emailed Steven to see if he can send it to me.

I've tried to add 1085 as an allowed http port using semanage, but I'm not sure I'm taking the right steps.

On 10/27/21 1:22 PM, Valerio Luccio wrote:

I'm home and was able to test. It's not the firewall (I turned it off for a couple of minutes and tried, without success). I'm not sure what policies to look at. As far as I know wotaskd does not keep a log, correct ?

On 10/23/21 6:18 AM, Valerio Luccio wrote:

Hi Samuel,
that is a very good insight. I'm currently travelling, but when I'm back I'll play with policies/firewall and let you know what I found out.

Thanks,

On Fri, Oct 22, 2021 at 3:28 PM Samuel Pelletier <webobjects-dev@wocommunity.org> wrote:
Hi Valerio,

I experience the same problem on a Cent OS instance (I think this is a VMWare distribution) but it works on others...

There is a major difference between starting the instance and other function like stop and refuse new session. Start is done by wotaskd that launc the process, others are http call to the instance by wotaskd, to some direct actions (womp handler I think).

I suspect that the communication between wotaskd and instance is blocked by the firewall or system policy but I do not have a definitive proof of this.

Regards,

Samuel

Le 21 oct. 2021 à 13:29, Valerio Luccio <webobjects-dev@wocommunity.org> a écrit :

Thanks Lon,
I didn't see your answer until now because gmail (which I hate every day more) had hidden it.

I'll see what I can find in the logs, although "start" works fine, why would "stop" be different ?


On Tue, Oct 5, 2021 at 11:10 PM Lon Varscsak <webobjects-dev@wocommunity.org> wrote:
Look in your application log, do you see messages about not being able to communicate with monitor?  I found this problem happens if I don't have JavaXML as part of my project (or classpath defined to whatever the xml jars are).

-Lon

On Tue, Oct 5, 2021 at 1:43 PM Valerio Luccio <webobjects-dev@wocommunity.org> wrote:
I recently ported my WebObjects app from an old OS X server to a CentOS 8 server.

The WOMonitor on CentOS allows me to configure the app and start it, but it will not stop it (I end up doing with pkill from command line) and the Auto-Recover does not work. I also tried from command line using curl to communicate to WOMonitor, it does the info and start correctly, but it will not stop the app.

I've looked at the log file for the WOMonitor, but there was nothing useful.

Any ideas ?

Thanks in advance,

-- 
Valerio Luccio	   	
High Performance Computing	   	
New York University	   	New York, NY 10003

"In an open world, who needs windows or gates ?"


-- 
Valerio Luccio	   	
High Performance Computing	   	10 Astor Place, Room 415
New York University	   	New York, NY 10003

"In an open world, who needs windows or gates ?"


-- 
Valerio Luccio	   	
High Performance Computing	   	10 Astor Place, Room 415
New York University	   	New York, NY 10003

"In an open world, who needs windows or gates ?"

-- 
Valerio Luccio	   	
High Performance Computing	   	
New York University	   	New York, NY 10003

"In an open world, who needs windows or gates ?"

-- 
Valerio Luccio	   	
High Performance Computing	   	
New York University	   	New York, NY 10003

"In an open world, who needs windows or gates ?"


Valerio Luccio	   	
High Performance Computing	   	
New York University	   	New York, NY 10003

"In an open world, who needs windows or gates ?"

#############################################################
This message is sent to you because you are subscribed to
  the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>


--
Valerio Luccio    
High Performance Computing     10 Astor Place, Room 415
New York University     New York, NY 10003

"In an open world, who needs windows or gates ?"
--------------IEZXSz0yOfReRsoG0CGmjPdq--