You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by on 2018/05/09 18:16:58 UTC

New Install won't run after server reboot

Hi All,
I've just install ofbiz version 16.11.04 on a Centos 7 server. Everything seems to go very well and I was able to start the ofBiz web interface successfully, log in and navigate around.

However, after I rebooted the server, I could not log in any longer. I suspected that it was a Java issue so I experimented with different Java versions and setups. I first built the server with and without JRE and the installation with just JDK seemed to be adequate. I then tried Java 8.131, Java 8.171 and Java 10.01. The first two worked as I described above (failing after a reboot) but Java version 10.01 failed during the install with a permissions problem while running the following step:

 ./gradlew cleanAll loadDefault

I'm sure I must be making a stupid mistake somewhere during the installation so would someone please look at the installations steps that I took to see where I went wrong?

Here are the steps:

Step 1 - Install Java
	yum install -y jdk-8u131-linux-x64.rpm

	export JAVA_HOME=/usr/java/jdk1.8.0_131

	export PATH=$PATH:/usr/java/jdk1.8.0_131/bin

	Check Java JDK Version:
		java -version

Step 2 - Load environmental variables on startup
	echo 'export JAVA_HOME=/usr/java/jdk1.8.0_131' >> /etc/bashrc

	echo 'export PATH=$PATH:/usr/java/jdk1.8.0_131/bin' >> /etc/bashrc

Step 3 - Open port on firewall
	firewall-cmd - -zone=public - -add-port=8443/tcp - -permanent

	firewall-cmd - -reload

Step 4 - Setup ofBiz
	unzip apache-ofbiz-16.11.04.zip

	mv apache-ofbiz-16.11.04 /usr/local/ofbiz

Step 5 - Install ofBiz
	cd /usr/local/ofbiz

	./gradlew cleanAll loadDefault

	./gradlew "ofbiz --load-data readers=seed"

	./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"

Step 6 - Start ofBiz
	./gradlew ofbizBackground

Step 7 - Access ofBiz in browser

	URL:  https://<my IP>:8443/myportal/control/main

	Admin Username: admin

	Admin Password: ofbiz

Additional notes:

after I reboot and can't restart the web interface, if I run ./gradlew "ofbiz --status" , it reports that obBiz is running OK

I'm really not sure what I'm doing wrong so any tips and suggestions will be very much appreciated

Regards,


Re: Subscription requirement?

Posted by Jacques Le Roux <ja...@les7arts.com>.
Le 10/05/2018 à 13:21, Mathieu Lirzin a écrit :
> Hello,
>
> Rajesh Mallah <ma...@gmail.com> writes:
>
>> Please subscribe to the list to have a consistent and easy conversation.
> This recurring scenario of manually requesting someone to subscribe to a
> mailing list is somewhat absurd...
>
> Either an email sent to <us...@ofbiz.apache.org> by a non-subscriber
> should be automatically rejected with an automatic response telling that
> subscription is required.  Either we should drop the manual moderation
> process and replace it with somekind of quarantine only for first time
> email.  This would be a more friendly option for people foreign to the
> OFBiz community.
>
> The quarantine process is what is currently used by GNU mailing lists
> (managed with Mailman) and is quite effective to avoid SPAM.  Does
> anyone know if OFBiz mailing list could be configured with such option?
>
> Thanks.
>
Hi Mathieu,

MLs  are not handled at the OFBiz level but at the ASF level. So if you want this to happen you should discuss with the ASF Infra Team.

http://www.apache.org/dev/infra-contact
https://www.apache.org/dev/infrastructure.html
https://www.apache.org/dev/infra-mail

BTW the ASF use EZML not Mailman https://cwiki.apache.org/confluence/display/INFRA/Roadmap

If you need you can be a guest at https://apache.hipchat.com/chat/room/669587 (I can invite you if needed)

Jacques


Subscription requirement? (was: New Install won't run after server reboot)

Posted by Mathieu Lirzin <ma...@nereide.fr>.
Hello,

Rajesh Mallah <ma...@gmail.com> writes:

> Please subscribe to the list to have a consistent and easy conversation.

This recurring scenario of manually requesting someone to subscribe to a
mailing list is somewhat absurd...

Either an email sent to <us...@ofbiz.apache.org> by a non-subscriber
should be automatically rejected with an automatic response telling that
subscription is required.  Either we should drop the manual moderation
process and replace it with somekind of quarantine only for first time
email.  This would be a more friendly option for people foreign to the
OFBiz community.

The quarantine process is what is currently used by GNU mailing lists
(managed with Mailman) and is quite effective to avoid SPAM.  Does
anyone know if OFBiz mailing list could be configured with such option?

Thanks.

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37

Re: New Install won't run after server reboot

Posted by Rajesh Mallah <ma...@gmail.com>.
Please subscribe to the list to have a consistent and easy conversation.

regds
mallah.

On Thu, May 10, 2018 at 2:17 AM, drakesridge@gmail.com <
drakesridge@gmail.com> wrote:

> Thank you for your reply Mallah and although I neglected to mention it in
> my post, I did run ./gradlew ofbizBackground after the reboot
>
> Your suggestion to check for listening ports was one that I hadn't thought
> of or tried. For both before and after reboot, netstat does show the server
> listening on 8443
>
> Here's what's reported before the reboot:
>
> Before starting the web interface:
> udp6       0      0 :::47361                :::*
>       20755/java
>
> After starting the web interface:
> tcp6       0      0 :::8009                 :::*
> LISTEN      20778/java
> tcp6       0      0 :::8080                 :::*
> LISTEN      20778/java
> tcp6       0      0 :::8443                 :::*
> LISTEN      20778/java
> tcp6       0      0 127.0.0.1:10523         :::*
> LISTEN      20778/java
> udp6       0      0 :::47361                :::*
>       20755/java
>
> Here's what's reported after the reboot:
>
> Before starting the web interface:
> udp6       0      0 :::49491                :::*
>       1321/java
>
> After starting the web interface:
> tcp6       0      0 :::8009                 :::*
> LISTEN      1359/java
> tcp6       0      0 :::8080                 :::*
> LISTEN      1359/java
> tcp6       1      0 :::8443                 :::*
> LISTEN      1359/java
> tcp6       0      0 127.0.0.1:10523         :::*
> LISTEN      1359/java
> udp6       0      0 :::49491                :::*
>       1321/java
>
> Any other tips will be very helpful because I don't know what else to try?
>
> On 2018/05/09 18:53:31, Rajesh Mallah <ma...@gmail.com> wrote:
> > Hi ,
> >
> > You must somehow start the ofbiz server after the server boots.
> > there are multitude of options for that. Eg systemd , daemontools etc.
> >
> > After the system boots please check if a java program is listening @ 8443
> >
> > eg by running $ sudo netstat -lnp
> >
> > regds
> > mallah
> >
>
>

Re: New Install won't run after server reboot

Posted by .
Thank you for your reply Mallah and although I neglected to mention it in my post, I did run ./gradlew ofbizBackground after the reboot

Your suggestion to check for listening ports was one that I hadn't thought of or tried. For both before and after reboot, netstat does show the server listening on 8443

Here's what's reported before the reboot:

Before starting the web interface:
udp6       0      0 :::47361                :::*                                20755/java

After starting the web interface:
tcp6       0      0 :::8009                 :::*                    LISTEN      20778/java
tcp6       0      0 :::8080                 :::*                    LISTEN      20778/java
tcp6       0      0 :::8443                 :::*                    LISTEN      20778/java
tcp6       0      0 127.0.0.1:10523         :::*                    LISTEN      20778/java
udp6       0      0 :::47361                :::*                                20755/java

Here's what's reported after the reboot:

Before starting the web interface:
udp6       0      0 :::49491                :::*                                1321/java

After starting the web interface:
tcp6       0      0 :::8009                 :::*                    LISTEN      1359/java
tcp6       0      0 :::8080                 :::*                    LISTEN      1359/java
tcp6       1      0 :::8443                 :::*                    LISTEN      1359/java
tcp6       0      0 127.0.0.1:10523         :::*                    LISTEN      1359/java
udp6       0      0 :::49491                :::*                                1321/java

Any other tips will be very helpful because I don't know what else to try?

On 2018/05/09 18:53:31, Rajesh Mallah <ma...@gmail.com> wrote: 
> Hi ,
> 
> You must somehow start the ofbiz server after the server boots.
> there are multitude of options for that. Eg systemd , daemontools etc.
> 
> After the system boots please check if a java program is listening @ 8443
> 
> eg by running $ sudo netstat -lnp
> 
> regds
> mallah
> 


Re: New Install won't run after server reboot

Posted by Rajesh Mallah <ma...@gmail.com>.
Hi ,

You must somehow start the ofbiz server after the server boots.
there are multitude of options for that. Eg systemd , daemontools etc.

After the system boots please check if a java program is listening @ 8443

eg by running $ sudo netstat -lnp

regds
mallah

On Wed, May 9, 2018 at 11:46 PM, drakesridge@gmail.com <
drakesridge@gmail.com> wrote:

> Hi All,
> I've just install ofbiz version 16.11.04 on a Centos 7 server. Everything
> seems to go very well and I was able to start the ofBiz web interface
> successfully, log in and navigate around.
>
> However, after I rebooted the server, I could not log in any longer. I
> suspected that it was a Java issue so I experimented with different Java
> versions and setups. I first built the server with and without JRE and the
> installation with just JDK seemed to be adequate. I then tried Java 8.131,
> Java 8.171 and Java 10.01. The first two worked as I described above
> (failing after a reboot) but Java version 10.01 failed during the install
> with a permissions problem while running the following step:
>
>  ./gradlew cleanAll loadDefault
>
> I'm sure I must be making a stupid mistake somewhere during the
> installation so would someone please look at the installations steps that I
> took to see where I went wrong?
>
> Here are the steps:
>
> Step 1 - Install Java
>         yum install -y jdk-8u131-linux-x64.rpm
>
>         export JAVA_HOME=/usr/java/jdk1.8.0_131
>
>         export PATH=$PATH:/usr/java/jdk1.8.0_131/bin
>
>         Check Java JDK Version:
>                 java -version
>
> Step 2 - Load environmental variables on startup
>         echo 'export JAVA_HOME=/usr/java/jdk1.8.0_131' >> /etc/bashrc
>
>         echo 'export PATH=$PATH:/usr/java/jdk1.8.0_131/bin' >> /etc/bashrc
>
> Step 3 - Open port on firewall
>         firewall-cmd - -zone=public - -add-port=8443/tcp - -permanent
>
>         firewall-cmd - -reload
>
> Step 4 - Setup ofBiz
>         unzip apache-ofbiz-16.11.04.zip
>
>         mv apache-ofbiz-16.11.04 /usr/local/ofbiz
>
> Step 5 - Install ofBiz
>         cd /usr/local/ofbiz
>
>         ./gradlew cleanAll loadDefault
>
>         ./gradlew "ofbiz --load-data readers=seed"
>
>         ./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"
>
> Step 6 - Start ofBiz
>         ./gradlew ofbizBackground
>
> Step 7 - Access ofBiz in browser
>
>         URL:  https://<my IP>:8443/myportal/control/main
>
>         Admin Username: admin
>
>         Admin Password: ofbiz
>
> Additional notes:
>
> after I reboot and can't restart the web interface, if I run ./gradlew
> "ofbiz --status" , it reports that obBiz is running OK
>
> I'm really not sure what I'm doing wrong so any tips and suggestions will
> be very much appreciated
>
> Regards,
>
>