Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034386Retail ModulesStoreServerpublic2016-11-04 09:372016-12-02 10:08
mtaal 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
RR17Q1RR17Q1 
mtaal
No
No
0034386: Store server does not start and shows no message when can be registered flag is not checked
The store server is defined in the mobile server window of the central server. When the 'can be registered' flag is not checked then the store server will not start and will stall indefinitely in the startup phase.

This can also happen it seems when the store server can't reach the central server because of network issues or something
Install multi-server
Define mobile servers, keep the 'can be registered' flag off for the store server
start store server
--> see that it doesn't start
Throw an exception/show message in the store server that registration is not possible.
Give a message that the can-be-registered should be flagged
Give a message if the central server can't be reached.
No tags attached.
Issue History
2016-11-04 09:37mtaalNew Issue
2016-11-04 09:37mtaalAssigned To => AugustoMauch
2016-11-04 09:37mtaalOBNetwork customer => No
2016-11-04 09:37mtaalTriggers an Emergency Pack => No
2016-11-21 18:53AugustoMauchStatusnew => scheduled
2016-11-22 12:41AugustoMauchReview Assigned To => mtaal
2016-11-22 12:41hgbotCheckin
2016-11-22 12:41hgbotNote Added: 0091732
2016-11-22 12:41hgbotStatusscheduled => resolved
2016-11-22 12:41hgbotResolutionopen => fixed
2016-11-22 12:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/fe78a1b4701888afdfb0a3ab18eb760ae99c9d63 [^]
2016-12-02 10:08mtaalNote Added: 0092010
2016-12-02 10:08mtaalStatusresolved => closed
2016-12-02 10:08mtaalFixed in Version => RR17Q1

Notes
(0091732)
hgbot   
2016-11-22 12:41   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: fe78a1b4701888afdfb0a3ab18eb760ae99c9d63
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Nov 22 12:40:19 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/fe78a1b4701888afdfb0a3ab18eb760ae99c9d63 [^]

Fixes issue 34386: Impoves log when a store server cannot register

Before this change, if there was a problem when a store server tried to register in the central server the store server retried until the Tomcat start timeout was reached. Now the registration.number.of.attempts parameter has been set to 2, so it the registration is only tried twice.

After those attempts, a RegistrationFailedException is thrown. There is no way to know at the point where it is captured if this was caused because the Central Server was not reachable or because the Can Be Registered flag has not been checked, so a message is shown informing of the possible causes of the registration failure:

25545 [localhost-startStop-1] ERROR org.openbravo.replication.symmetricds.SetupSymmetricListener - The Store Server was not able to register in the Central Server. This can happen because the Central Server does not respond to requests to its registration URL (http://localhost:8070/openbravo/org.openbravo.replication.symmetricds/sync [^]), or because the Can Be Registered flag is not checked for this Store Server in Mobile Server window of the Central Server
org.jumpmind.symmetric.service.RegistrationFailedException: Failed after trying to register 2 times.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
M src/org/openbravo/replication/symmetricds/templates/engine-properties.ftl
---
(0092010)
mtaal   
2016-12-02 10:08   
Reviewed and tested