Skip to Content
author's profile photo Former Member
-1
Former Member

Clean database after cancelled initialization

I cancelled the initialization on our test system and tried to restart the initialization afterwards, but hybris won't stt all. Not even the command ant initialize is able to setup hybris with a partially filled database.

As a workaround I can delete all tables manually, but is there an easier way?

Add a comment
10|10000 characters needed characters exceeded

  • Former Member

    Please use the following command to perform initialization and let me know:

    \hybris\bin\platform\>ant initialize

  • Former Member Former Member

    I did that. Doesn't work. Depending on when you cancel the intialization it gives another error messages, e.g.

     EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
     at org.springframework.dao.support.DataAccessUtils.requiredSingleResult(DataAccessUtils.java:71)
    
    

Related questions

2 Answers

  • Posted on Jul 29, 2016 at 11:16 AM

    Hello Christian,

    I would expect ant initialize to drop all the tables and stfresh initializing the instance.

    I have tried the same on my 6.0.0.2 instance by killing the initialization process twice and still could restart the instance successfully and initialize the platform. It would great if you could provide the entire stacktrace that you see when the initialization fails.

    Br, Shwetha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2016 at 12:37 PM

    If nothing else will help, just drop the database and create a new one.

    MySQL: DROP DATABASE IF EXISTS yourdatabase; CREATE DATABASE IF NOT EXISTS yourdatabase DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

    HSQLDB: Just delete the hybris/data directory.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.