New Install won't run after server reboot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

New Install won't run after server reboot

drakesridge@gmail.com
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,

Reply | Threaded
Open this post in threaded view
|

Re: New Install won't run after server reboot

Rajesh Mallah
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, [hidden email] <
[hidden email]> 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,
>
>
Reply | Threaded
Open this post in threaded view
|

Re: New Install won't run after server reboot

drakesridge@gmail.com
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 <[hidden email]> 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
>

Reply | Threaded
Open this post in threaded view
|

Re: New Install won't run after server reboot

Deepak Dixit-3
In reply to this post by drakesridge@gmail.com
Hi User,

Your email has been moderated, Please subscribe mailing list
http://ofbiz.apache.org/mailing-lists.html

Thanks & Regards
--
Deepak Dixit
www.hotwax.co

>
>
> ---------- Forwarded message ----------
> From: "[hidden email]" <[hidden email]>
> To: <[hidden email]>
> Cc:
> Bcc:
> Date: Wed, 09 May 2018 22:25:46 -0000
> Subject: Re: New Install won't run after server reboot
> I've played with this and found out that after a server reboot, the login
> page does eventually display. It just takes a long time. Instead of using
> Firefox which now has a sixty second timeout, I used Internet Explorer and
> after about twelve minutes the login page displayed. Is this normal? If
> it's now normal does anyone know what I can do to fix this issue?
>
> Thanks in advance for any assistance.
>
> Regards,
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: New Install won't run after server reboot

Rajesh Mallah
In reply to this post by drakesridge@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, [hidden email] <
[hidden email]> 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 <[hidden email]> 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
> >
>
>
Reply | Threaded
Open this post in threaded view
|

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

Mathieu Lirzin
Hello,

Rajesh Mallah <[hidden email]> 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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: Subscription requirement?

Jacques Le Roux
Administrator
Le 10/05/2018 à 13:21, Mathieu Lirzin a écrit :

> Hello,
>
> Rajesh Mallah <[hidden email]> 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 <[hidden email]> 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