| [Installation](/Installation) | [Work with Openbravo](/Installation/Appliance/Openbravo) | [Configuration of appliance](/Installation/Appliance/Config) | [Howto / Optional configuration](/Installation/Appliance/Howto) | [Migration to new appliances](/Installation/Appliance/Migration) |
ℹ️ Catatan: This document refers to the appliances 12.04, 14.04 and 18.04.
Connect by ssh with openbravo user and then you can connect to the database with:
psql -h localhost -U tad openbravo
Default password: tad
Connect by ssh doing a tunnel from your local port 5433 of the server port 5432
ssh openbravo@<IP_ADDRESS> -L 5433:localhost:5432
Then in your local pgadmin in host set localhost and port 5433
PuTTY is an open source and free SSH client.
Use PuTTY to connect to PostgreSQL:
Now you can start psql, pgAdmin or your favorite client and use localhost as the host and 5433 as the port in the connection details.
The database name is openbravo, the username tad and the password tad.
Check that you are logged in with the openbravo user and in the /opt/OpenbravoERP folder.
You can check the current username with:
whoami
You can check the folder in which you are with:
pwd
Then you can compile. For example:
ant smartbuild
ℹ️ Catatan: Do not use sudo or the root user for compilation. Use the openbravo user.
The logfiles of openbravo are in the /var/log/openbravo folder.
The application logfiles:
/var/log/openbravo/catalina.out
/var/log/openbravo/openbravo.log
/var/log/openbravo/openbravo_hibernate.log
The PostgreSQL logfile
/var/log/openbravo/postgresql-9.1-main.log # Appliance 12.04
/var/log/openbravo/postgresql-9.3-main.log # Appliance 14.04
/var/log/openbravo/postgresql-10-main.log # Appliance 18.04
And the log of the periodic/automatic backups
/var/log/openbravo/openbravo-backup.log
The configuration for Tomcat is in
/etc/profile.d/tomcat.sh
If you need to set more ram to tomcat take a look to the [memory](/Installation/Appliance/Howto#Memory) recommendations.
The configuration for PostgreSQL is:
/etc/postgresql/9.1/main/ # Appliance 12.04
/etc/postgresql/9.3/main/ # Appliance 14.04
/etc/postgresql/10/main/ # Appliance 18.04
ℹ️ Catatan: The new Appliance 18.04 has the main config postgresql.conf split to several files
The appliance will contain now 2 files prepared:
/etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf # Do NOT edit this
/etc/postgresql/10/main/conf.d/91-local-custom.conf # Put your changes here
Goals behind this are:
In practice that means instead of editing main/postgresql.conf you want to typically edit conf.d/91-local-custom.conf
ℹ️ Catatan: When working with big volume databases, it may be a good idea to increase the [memory](/Installation/Appliance/Howto#Memory) assigned to postgres.
The default options should be fine for most cases, but if you need to adjust them they are in
/etc/profile.d/ant.sh
To restart Tomcat
sudo /etc/init.d/tomcat restart
Usually it is only needed to restart PostgreSQL manually when you want to apply some new configuration values.
Before restarting PostgreSQL, close all connections to postgres (openbravo, pgadmin, etc), i.e:
sudo /etc/init.d/tomcat stop
sudo /etc/init.d/postgresql restart
sudo /etc/init.d/tomcat start