[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421227#comment-15421227 ] Pierre Smits commented on OFBIZ-7796: - I surmise that Taher is projecting how he would like things to be in production environments of adopters. In a production environment one doesn't use repositories (of any kind), just executable ready solutions to minimise risks. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Minor > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420769#comment-15420769 ] Jacques Le Roux commented on OFBIZ-7796: Beware, on trunk demo I had to use "gradlew terminateOfbiz" to completly shutdown OFBiz in all cases... > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Minor > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420762#comment-15420762 ] Jacques Le Roux commented on OFBIZ-7796: Actually as Taher suggested, in production you can change the repository and not use jcenter but your own, this to avoid possible issues on jcenter. You though need to prodive a well formated repository. Accordind to https://docs.gradle.org/current/userguide/artifact_dependencies_tutorial.html#N10660 bq. A repository is really just a collection of files, organized by group, name and version. Gradle understands several different repository formats, such as Maven and Ivy, and several different ways of accessing the repository, such as using the local file system or HTTP. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Minor > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410557#comment-15410557 ] Jacques Le Roux commented on OFBIZ-7796: bq. It also removes: the 'kill' reference as there is no function to trigger it terminateOfbiz ? > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Minor > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410556#comment-15410556 ] Jacques Le Roux commented on OFBIZ-7796: Hi Pierre, After http://markmail.org/message/uirwfrdzg2lhyi6i I believe you are right, this would be a wrong advice to advocate Gradle in production! > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Minor > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15408195#comment-15408195 ] Jacques Le Roux commented on OFBIZ-7796: I was clear bq. for those who prefer to use Gradle in production. I can't presume why, but I can't also deny their right to do so. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407892#comment-15407892 ] Pierre Smits commented on OFBIZ-7796: - adding commented out code is like not having the code in... I am confused here. Why do you insist on having this 'gradlew ofbiz' in the codebase for a rc script that is intended for production servers? Rc scripts are intended to be used for services (e.g. to be triggered by cron script or when a server). As I have shown in https://issues.apache.org/jira/browse/OFBIZ-7796?focusedCommentId=15402191&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15402191 starting through java -jar build/libs/ofbiz.jar is seconds faster than 'gradlew ofbiz'. These are precious seconds, when an IT department (or even an external hosting provider) must meet the requirements of an uptime SLA. With a 5 nines SLA that leaves only 26.3 seconds per month. And each custom component added to the OFBiz default increases to the startup time. And for what? ./gradlew ofbiz basically does nothing more than checking what should already be there (and it gets worse when - due to some unexplicable mishap - gradlew needs to download external libraries). To get an indication what it does before the OFBiz service actually starts, I suggest you run './gradlew ofbiz -- debut > gradlew-ofbiz-start-debugge.txt' and have a look at the generated text file. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407628#comment-15407628 ] Jacques Le Roux commented on OFBIZ-7796: BTW thinking about it, I suggest (I can do it when committing) to rather comment out the current lines, add a comment above for those who prefer to use Gradle in production. Could also be a new patch with Gradle available by default and Pierre's suggested way commented also with an explanation above both ways... > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407510#comment-15407510 ] Jacques Le Roux commented on OFBIZ-7796: I see no problems committing this patch, other opinions? > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch, > OFBIZ-7796-rc.ofbiz.for.debian-v2.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407249#comment-15407249 ] Pierre Smits commented on OFBIZ-7796: - I will proivide a correct patch for the debian rc script shortly. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15407186#comment-15407186 ] Jacques Le Roux commented on OFBIZ-7796: Should we then not close here? > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15402191#comment-15402191 ] Pierre Smits commented on OFBIZ-7796: - Hi [~jacques.le.roux], I can confirm that I now can start OFBiz with the following command: {code} java -jar build/libs/ofbiz.jar --start {start} This yielded a gain of approx *8* seconds on my dev machine. and that I can stop OFBiz with following command: {code} java -jar build/libs/ofbiz.jar --shutdown {code} > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401546#comment-15401546 ] Jacques Le Roux commented on OFBIZ-7796: Hi Pierre, I believe this has been fixed with OFBIZ-7893, please check and close if it's the case, thanks! > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381931#comment-15381931 ] Pierre Smits commented on OFBIZ-7796: - {quote} This is something I like, I'm always reluctant to black boxes... I'd commit the patch but we need to agree on the ofbiz.jar name (path included). I'd then adapt also the other rc. scripts... if nobody disagree... Opinions? {quote} Is another issue: OFBIZ-7893. Lets discuss it there. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381929#comment-15381929 ] Jacques Le Roux commented on OFBIZ-7796: Interesting, I was indeed able to shutdown/start OFBiz locally using bq. java -jar build\libs\ofbiz.jar \-\-shutdown/\-\-start I guess the name changed since the unit tests introduction. About {quote} re:: *generic enough situation* # No, it is - as the name of the script indicates - intended for *debian* based systems. # I have changed the *JAVA_BINARY* variable from hardcoded and old java version 1.4.2 to generic $JAVA_HOME # I have changed the *OFBIZ_HOME* variable from location in users home folder to more generic */opt/ofbiz* {quote} # of course :D # +1 # Why not but as said above in the script anyway: bq. # Paths - Edit for your locations {quote} re: why use java directly In UAT an PROD environments you want the entire OFBIZ setup running as clean, mean and lean as possible. That also include shortest startup time possible (argument behind that: minimal downtime with respect to SLAs). Building (or checking the build) the OFBiz implementation is not adding to that. {quote} This is something I like, I'm always reluctant to black boxes... I'd commit the patch but we need to agree on the ofbiz.jar name (path included). I'd then adapt also the other rc. scripts... *if nobody disagree*... Opinions? Ah, also while looking at it I noticed we have still the old jars in old build/lib dirs. We need to remove all the svn:ignore related, and everybody should remove their old local build dirs. I'll create a Jira for that > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381877#comment-15381877 ] Pierre Smits commented on OFBIZ-7796: - At this stage it is WIP. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381870#comment-15381870 ] Pierre Smits commented on OFBIZ-7796: - I have tested *java -jar build/libs.ofbiz-gradle.jar --start* in my dev environment and it works. In another cli I used *java -jar build/libs.ofbiz-gradle.jar --shutdownt* and it stops the task running in the first cli. re:: *generic enough situation* * No, it is - as the name of the script indicates - intended for *debian* based systems. * I have changed the *JAVA_BINARY* variable from hardcoded and old java version 1.4.2 to generic $JAVA_HOME * I have changed the *OFBIZ_HOME* variable from location in users home folder to more generic */opt/ofbiz* re: *why use java directly* In UAT an PROD environments you want the entire OFBIZ setup running as clean, mean and lean as possible. That also include shortest startup time possible (argument behind that: minimal downtime with respect to SLAs). Building (or checking the build) the OFBiz implementation is not adding to that. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381866#comment-15381866 ] Jacques Le Roux commented on OFBIZ-7796: Hi Pierre, this is tested, right? Why did you use java directly instead of gradlew? Is it in a generic enough situation? > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Sub-task >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Assignee: Pierre Smits >Priority: Blocker > Attachments: OFBIZ-77796-rc.ofbiz.for.debian.patch > > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379654#comment-15379654 ] Pierre Smits commented on OFBIZ-7796: - I don't worry that much about the 80/92 completion. That is resides more in the DEV/SIT domains than in the UAT/PROD domains. Charl brought it up, and I felt the need to relativize... But this issue is more related to the UAT/PROD domains. And that needs to be addressed properly. And the same goes for issues OFBIZ-7796, OFBIZ-7783, OFBIZ-7782 and OFBIZ-7776, while OFBIZ-7767 is more related to the SIT domain. I will consider creating a place holder to provide more overall context regarding the use case(s) of the issues. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Priority: Blocker > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379486#comment-15379486 ] Jacques Le Roux commented on OFBIZ-7796: About the 80/92% it may be a bit disturbing but if you are used to the log OFBiz produces you shoul not be worried. Anyway the best way to check things are alright is to access to the webapps. About you concern Pierre, here is what I wrote in OFBIZ-7795 at https://issues.apache.org/jira/browse/OFBIZ-7795?focusedCommentId=15379143 bq. Though I worked carefully, I could have missed something so please check (notably typos, I did not test all). Note: we had no "apply-ofbiz-patches" Ant target (in applyOfbizPatchesAndHotDeploy.sh) I mean I did not test all tools/scripts (those are provided as conveniences by the community, some even proposed to remove them), but I suppose it's OK apart possible typos. So I think we can close this issue, please confirm, thanks! > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Priority: Blocker > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379262#comment-15379262 ] Pierre Smits commented on OFBIZ-7796: - HI Charl, Re *./gradlew ofbiz command only builds to 92% and after reverting to a totally vanilla source and cleanall loaddefault I realised that I can access the different components even though it looked liked the build has not completed completely* I have discussed a similar issue (I came to 80%) with [~jacques.le.roux], and all can say that currently a lot of effort is undertaken by [~taher] and others working on perfecting the gradle implementation. We'll have to wait and see how this will be addressed. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Priority: Blocker > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379221#comment-15379221 ] Pierre Smits commented on OFBIZ-7796: - Referencing to: http://svn.apache.org/viewvc?rev=1752806&view=rev > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Priority: Blocker > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379218#comment-15379218 ] Pierre Smits commented on OFBIZ-7796: - Hi [~jacques le roux], I presume that you implemented the changes regarding the rc scripts in the tools folder with this issue in mind. Am I correct in this? > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Priority: Blocker > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7796) Running OFBiz as a service fails
[ https://issues.apache.org/jira/browse/OFBIZ-7796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379190#comment-15379190 ] charl Bouwer commented on OFBIZ-7796: - Hi Pierre Thanks this answers a question I have. Ill be doing the same procedure on a Centos 6 machine over the weekend will give you feedback on the result. Being new to OFBiz I am having some difficulty distinguishing between bugs, features and id10t errors. For instance the ./gradlew ofbiz command only builds to 92% and after reverting to a totally vanilla source and cleanall loaddefault I realised that I can access the different components even though it looked liked the build has not completed completely. Is this a 'moet so wees'(must be like that) or do I have a bug or error.. Also in my original test system I had a hostname not found in one of the components even though I was only accessing it through localhost it was looking for the machine name ofbiz.something. Easily bypassed on my side by assigning the ofbiz.something to 127.0.01. Do I need to open a Jira issue for this or is so obvious that a server hosts file should be correct. It just feels wrong that an internal process uses the hostanme. I haven’t even looked at or considered using multiple virtual hosts. At least it should be easy to reproduce if necessary. > Running OFBiz as a service fails > > > Key: OFBIZ-7796 > URL: https://issues.apache.org/jira/browse/OFBIZ-7796 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk > Environment: Ubuntu 16.04, openjdk-8-jdk >Reporter: Pierre Smits >Priority: Blocker > > In a new ubuntu environment I performed a checkout from trunk and ran the > loadDefault build script. > After this had completed, I moved the ofbiz directory from my user folder to > the /opt folder, and configured the Ubuntu environment to be able to run > OFBiz as a service. > This entails: > * deploy a script in /etc/init.d > * set the correct permissions of the service script > * create the service user > * changed the owner and ownergroup of the files and folders in /opt/ofbiz > and then fire the service: > sudo /etc/init.d/ofbiz start > This normally starts the proces java -jar ofbiz.jar > But now nothing happens. -- This message was sent by Atlassian JIRA (v6.3.4#6332)