Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
openbravo script Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Mon Jan 21, 2008 3:14 pm    Post subject: openbravo script Reply with quote

Good Day,

I am trying to install OpenBravo on SMS 1.3.3. I ran the ./sms.openbravo.sh script and then logged out.

Upon starting tomcat, I got this message:

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

help?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Jan 21, 2008 3:30 pm    Post subject: Reply with quote

Did the script, install the required packages...
Try to restart if logout login doesn't work...

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Jan 21, 2008 4:01 pm    Post subject: Reply with quote

Just run sms.openbravo.sh script. on SMS-1.3.3 LiveCD...
Here is the output after logout - login:
Code:
root@sms:~# /etc/rc.d/rc.tomcat start
Using CATALINA_BASE:   /usr/share/tomcat
Using CATALINA_HOME:   /usr/share/tomcat
Using CATALINA_TMPDIR: /usr/share/tomcat/temp
Using JRE_HOME:       /usr/lib/java


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Mon Jan 21, 2008 4:45 pm    Post subject: Reply with quote

I ran the install script again. It goes thru the install, but I did not see anything about java. It asks for postgres password. Then finishes.

I logged out and then back in. Started tomcat and got the same message.

In 1.3.3 did path variable change?
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Mon Jan 21, 2008 4:55 pm    Post subject: Reply with quote

I did searches after install for java. Could not find java or jdk. There is a /usr/bin/jdk . That's it.

So, does this mean its not installing java?

I will be away from my computer for about an hour after I post this.
Any thoughts suggestions would be appreciated.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Jan 21, 2008 5:36 pm    Post subject: Reply with quote

Once you run the script you should have those packages in the same folder you executed sms.openbravo.sh:
OpenBravo has version 2.35 now, but I don't think you'll find any trouble with that...
Code:
OpenbravoERP-2.33-linux-installer.bin
apache-ant-1.7.0-i586-bj.tgz
jdk-6u2-i586-2.tgz   //Java development tools
jre-6u2-i586-1.tgz   //Runtime enviroment
postgresql-8.2.4-i686-1mfb.tgz
tomcat-5.5.16-noarch-1stb.tgz


If those packages aren't install in /var/log/packages
Try to Download the files manually if you ain't done it already

http://sms.it-ccs.com/isos/openbravo/apache-ant-1.7.0-i586-bj.tgz
http://sms.it-ccs.com/isos/openbravo/postgresql-8.2.4-i686-1mfb.tgz
http://sms.it-ccs.com/isos/openbravo/tomcat-5.5.16-noarch-1stb.tgz
http://heanet.dl.sourceforge.net/sourceforge/openbravo/OpenbravoERP-2.35-linux-installer.bin
http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/extra/jdk-6/jdk-6u2-i586-2.tgz
http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/patches/packages/jre-6u2-i586-1.tgz

and run the script without the wget lines:
Code:
#!/bin/bash
groupadd -g 150 tomcat
useradd -g tomcat tomcat
echo " installing Packages"
installpkg *.tgz
chmod +x /etc/rc.d/rc.postgresql
chmod +x /etc/rc.d/rc.tomcat
chmod +x OpenbravoERP-2.33-linux-installer.bin
ln -s /usr/lib/jdk1.6.0_02/ /usr/lib/jdk
/etc/rc.d/rc.postgresql start

if [ $PSQLPASS="" ]; then
echo "Choose Password for Postgres"
read PSQLPASS
fi
echo "alter role postgres with password '$PSQLPASS';" >db.txt
psql -U postgres < db.txt
rm db.txt
echo "LOGOUT and LOGIN for changes to take effect
start tomcat with the command '/etc/rc.d/rc.tomcat start'
and run openbravo installer.
Prefix dirs are
java = /usr/lib/jdk
ant = /usr/lib/ant
tomcat = /usr/share/tomcat
psql-bin = /usr/bin"


Running the script again might output a lot of errors but that's normal.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com


Last edited by gerasimos_h on Mon Jan 21, 2008 7:29 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Mon Jan 21, 2008 7:16 pm    Post subject: Reply with quote

Interesting: jdk and openbravo did not install, but tomcat was there. I am now downloading the files and will run the script again.

thanks for help
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Jan 21, 2008 7:29 pm    Post subject: Reply with quote

Openbravo is not going to be installed throughout the script.
After the script finished type
./OpenbravoERP-2.35-linux-installer.bin
to execute the openbravo installer...

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Tue Jan 22, 2008 5:04 am    Post subject: Reply with quote

okay, downloading the files individually and running the script worked. Its now installing Openbravo. Will let you know progress.

thanks
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Tue Jan 22, 2008 6:38 am    Post subject: Reply with quote

Progress: Ran openbravo script ran thru and asked a series of questions. It then installs openbravo but proceeds to hang:

Please wait while Setup installs Openbravo ERP on your computer.

Installing
0% ______________ 50% ______________ 100%
######################################

It just sits here obviously hung.

any thoughts
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Jan 22, 2008 8:09 am    Post subject: Reply with quote

Look at the openbravo logs to see if there are any errors....
If you have KDE run it from X, it's more detailed in errors...
I install it in the past in my test machine, a 667MHz Pentium with 128MB RAM and took all night to compile it...
I believe the answer will be in the logs...
do a
Code:
ls -1t /opt/OpenbravoERP/install_logs_all/ | tail `head -1`

or open the last log by time.
I'll try it later today to install it again, just in case version 2.35 has some differences in setup, I doubted though, simple openbravo takes too long to install as it compiles a lot of stuff...

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Jan 22, 2008 7:47 pm    Post subject: Reply with quote

Well after ~150 minutes I had a Success story on my test machine (Pentium 667MHz 128MB RAM)
The logs are created in that order:
Code:
init.log
uncompress.log
sqlimport.log
src.log
install.log
clean.log


as for my times on a Pentium 667MHz with 128MB RAM...
Code:
==> init.log <==
BUILD SUCCESSFUL
Total time: 2 seconds

==> uncompress.log <==
BUILD SUCCESSFUL
Total time: 38 seconds

==> sqlimport.log <==
BUILD SUCCESSFUL
Total time: 12 minutes 18 seconds

==> src.log <==
BUILD SUCCESSFUL
Total time: 130 minutes 51 seconds

==> clean.log <==
BUILD SUCCESSFUL
Total time: 6 seconds


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Tue Jan 22, 2008 7:58 pm    Post subject: Reply with quote

well, mine finally said it was built. But when I try to access openbravo it gives me a 404 error, url not found.

Bummer, that it too so long for you. I tried your suggested tail call and here is what I got:

ls -1t /opt/OpenbravoERP/install_logs_all/ | tail `head -1`
tail: cannot open `clean.log' for reading: No such file or directory

Maybe I am doing something wrong. I thought you open http://host/openbravo:8080. Is that right?

I looked at clean.log and it says build successful. Install log has alot of messages that say 0 space available. This maybe normal, because I have 200Gigs available.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Jan 22, 2008 8:03 pm    Post subject: Reply with quote

http://host:8080/openbravo/

user: Openbravo
pass:openbravo

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Tue Jan 22, 2008 8:23 pm    Post subject: Reply with quote

Embarassed Got it turned around.

I now get the login page. But when I put in the user and password nothing happens. It does not even try to resolve authentication. Nothing.

Now, in the past versions of sms I always had this problem. So, I am trying to understand why it won't let me log in.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional