cancel
Showing results for 
Search instead for 
Did you mean: 

Setup datahub for production - InitApp

S0011572494
Participant
0 Kudos

I set up a datahub project with sap-integration and some custom extensions of the product.

Up to now I developed the datahub in development mode only (means kernel.autoinitmode=create-drop). The things that I implemented work as expected.

Now I would like to deploy the application to the test server and therefore changed the property above to ignore (as stated in the datahub docs ).

Unfortunately the server doesn't start successfully with another option than create-drop. The following errors occur:

when the database tables are empty

 com.hybris.kernel.api.exceptions.ServiceBlockedException: Service call blocked: com.hybris.kernel.api.PersistenceManager.setFlushBeforeQuery; Reason System is not initialized or not up to date. Target object class com.hybris.kernel.services.persistence.impl.DefaultPersistenceManagerProxy at com.hybris.kernel.persistence.initialization.uptodate.ServiceBlocker.intercept(ServiceBlocker.java:73) ~[kernel-persistence-5.4.0.0-RC12.jar:na]

when the database is initialized from a previous create-drop (for all TargetItems of the sap-extensions)

 [c.h.d.e.l.i.DefaultExtensionImportService] Failed to create code of type BaseProduct  com.hybris.datahub.validation.ValidationException: nullValidationException{failures=[ValidationFailure{EXISTING_ITEM, name: "TargetAttributeDefinition already exists."}]} at com.hybris.datahub.validation.ComplexValidator.runThroughNestedValidators(ComplexValidator.java:47) - [datahub-service-5.4.0.0-RC9.jar:na]

The docs state that the Core+ component Init App should be used with the ignore option but I can't find any information about this in combination with the datahub.

Has anyone running a datahub in production mode? Or any tips, where I chould look at?

Kind regards Fabian

Accepted Solutions (1)

Accepted Solutions (1)

rafal_gdowski
Active Contributor
0 Kudos

Fabian,

There is already a bug written about this that the Data Hub team is working on ( https://jira.hybris.com/browse/TYF-1121). Even though there are a number of validation exceptions reported, all of your extensions should have loaded properly. You can verify that behavior by checking the following URL's:

 http://localhost:8080/datahub-webapp/v1/item-classes/raw/item-types
 http://localhost:8080/datahub-webapp/v1/item-classes/canonical/item-types/
 http://localhost:8080/datahub-webapp/v1/item-classes/raw/item-types/RawProduct/attributes

and uploading data, composing, etc..

S0011572494
Participant
0 Kudos

Hi Rafal, thank you for your fast response. Then I will not further waist my time on these errors. The application works indeed...

Do you have any informations about how to set up InitApp with the datahub?

rafal_gdowski
Active Contributor
0 Kudos

The InitApp is disabled in the Data Hub.

Answers (0)