Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0029275 | Openbravo ERP | A. Platform | public | 2015-03-13 15:28 | 2022-02-01 08:05 |
Reporter | egoitz | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0029275: Executing an smartbuild uses a Openbravo.properties located on a config folder on the same level than the installation folder | ||||
Description | When executing an smartbuild the Openbravo.properties file is use to get the data to connect the database. By default the file is located on the config folder on the Openbravo installation folder. If for any case you have a config folder on the parent folder of the OPenbravo installation folder with a Openbravo.properties file, that file is used. If it is not correct you will get a error. | ||||
Steps To Reproduce | Having a Openbravo installation working on the following folder: /opt/OpenbravoERP copy the config folder to have also the config folder on the following location: /opt/config Change the /opt/config/Openbravo.properties to point to a not existint database Go to /opt/OpenbravoERP execute ant smartubuild You get a error generate.entities.quick: [java] 0 [main] INFO org.openbravo.base.gen.GenerateEntitiesTask - Model has not changed since last run, not re-generating entities [java] 59 [main] ERROR org.openbravo.database.ConnectionProviderImpl - Error getting connection [java] org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. [java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136) [java] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66) [java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125) [java] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30) [java] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22) [java] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30) [java] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24) | ||||
Proposed Solution | The issue is in OBRebuildAppender: if (new File("../../config/Openbravo.properties").exists()) fProp = new File("../../config/Openbravo.properties"); else if (new File("../config/Openbravo.properties").exists()) fProp = new File("../config/Openbravo.properties"); else if (new File("config/Openbravo.properties").exists()) fProp = new File("config/Openbravo.properties"); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-03-13 15:28 | egoitz | New Issue | |||
2015-03-13 15:28 | egoitz | Assigned To | => AugustoMauch | ||
2015-03-13 15:28 | egoitz | Modules | => Core | ||
2015-03-13 15:28 | egoitz | Triggers an Emergency Pack | => No | ||
2015-03-16 08:00 | alostale | Status | new => acknowledged | ||
2015-03-17 14:37 | alostale | Assigned To | AugustoMauch => platform | ||
2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |