Uncategorized

Openbravo: Latest Version Install

We have an old Community Version of Openbravo, which is super buggy and corrupted, so starting this new year, we’re interested on trying the latest version of OB. In this case we’ll be installing Openbravo Community Edition PR18Q4.1. 

Additionally one of the reasons we want to install this is that we are going to install it on a smaller Virtual Machine (10 GBs). We currently have it installed in a 50GB VM, but the backup procedure is a pain (as we have to regularly backup 50GB and transfer to another server (which is a lot of bandwith)). 

The process was a bit buggy. 

  • We downloaded the ISO file and installed on our VM (this was a smooth process).
  • Once it was installed, we noticed that it comes pre-installed on Ubuntu. 14.04, which is a kind of old version as there are two new versions 16.X and 18.X.
  • We had to run a lot of updated as the server was not updated (apt-get update && apt-get dist-upgrade)
  • After this we went to the OB Management console to update the module (Module Manager) (here is where the problems start)
  • After update, there is an error as the new packages only accept Java 8 and the system came pre-installed with Java 7. 
  • So we had to install Java 8 and uninstall Java 7. update
  • You algo have to update the default JAVA
    • sudo update-alternatives –config java
    • sudo update-alternatives –config javac
  • Then we compiled from the cli 
    • ant smartbuild 
      • this gave us an error
    • then we used ant smartbuild -Dlocal=no (which worked)
    • then we used ant compile.complete (which also worked (not sure which one compiled it correctly)).
  • Still after compiling this this correctly Openbravo was not starting, upon an hour of trying to find out what was happening, I found out that upon upgrading JAVA, the default Openbravo Startup Script uses a default ‘path’ (/usr/lib/jvm/default-java) which is a sym link to the current installation of Java. The problems is that in our case, it was still pointing Java 7 so Tomcat’s startup was failing. We updated the Sym Link and everything starting working correctly.

 

openbravo@ubuntu:/usr/lib/jvm$ ls -l
total 4
lrwxrwxrwx 1 root root 24 Jan 19 13:47 default-java -> java-1.8.0-openjdk-amd64
lrwxrwxrwx 1 root root 20 May 17 2018 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
drwxr-xr-x 7 root root 4096 Jan 19 12:19 java-8-openjdk-amd64

 

Leave a Reply

Your email address will not be published. Required fields are marked *