You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Daniel Watford (Jira)" <ji...@apache.org> on 2023/03/06 10:43:00 UTC

[jira] [Commented] (OFBIZ-10287) gradlew --no-daemon "ofbiz --shutdown" does not work

    [ https://issues.apache.org/jira/browse/OFBIZ-10287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696855#comment-17696855 ] 

Daniel Watford commented on OFBIZ-10287:
----------------------------------------

I have been trying to reproduce this issue on ofbiz-vm1.apache.org. without success.

I had wondered if the cause of "ofbiz --shutdown" failing could somehow be related to running from cron - essentially outside of a regular shell session, but attempts to run the check-svn-update.sh, using "ofbiz-shutdown" rather than the teminate approach, have been successful each time I tried.

Since the terminateOfbiz gradle task has now been shown to be unreliable in cases where OFBiz instances are run by different users, I have (temporily) reverted the trunk.sh script back to using "ofbiz --shutdown" rather than terminateOfbiz.  I have also added "set -x" and "set -e" to the script so that we get each step logged to console and, if any step fails, prevent execution of subsequent steps.  My hope is that by exiting this script in case of failure, we might get some useful information included in the runtime/logs/console.log file, whereas this file is normally removed by the subsequent cleanAll task.

I'll check on the state of demo-trunk over the next few days.

> gradlew --no-daemon "ofbiz --shutdown"  does not work
> -----------------------------------------------------
>
>                 Key: OFBIZ-10287
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10287
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Jacques Le Roux
>            Priority: Major
>
> When in production, if you use several OFBiz instances on your server, to stop them safely you need to use {{./gradlew --no-daemon terminateOfbiz}} which actually kills all OFBiz instances using "kill -9"
> {{./gradlew --no-daemon "ofbiz --shutdown"}} does not work, at least on demos VM where there is 3 instances. So if you use it you get an unstable situation and have to use "kill -9" manually.
> You always can use "terminateOfbiz", but it means that you have to restart all OFBiz instances. So it's easier to do that with {{all-manual-nicely.sh}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)