1 Reply Latest reply on Mar 23, 2014 8:08 AM by chieukam

    Repository cannot be restarted after being restored

    chieukam

      Hello,


      i am trying to use the backup and restore features of Modeshape in my application following the steps describe here https://docs.jboss.org/author/display/MODE/Backup+and+restore.

       

      After successful BACKUP and when trying to RESTORE the content i am getting the following error:

       

      The 'repository' repository cannot be restarted after being restored: Cache container has been stopped and cannot be reused. Recreate the cache container.

       

      Below my configuration for the cache container

       

      <!-- main repository storage -->

      <cache-container name="modeshapeCache" default-cache="repositoryCache" module="org.modeshape">

        <local-cache name="repositoryCache">

        <!-- ModeShape requires transactions -->

        <transaction mode="NON_XA"/>

        <!-- <eviction strategy="LIRS" max-entries="512"/> -->

        <string-keyed-jdbc-store datasource="java:jboss/datasources/MySqlDS" shared="true" passivation="false" purge="false">

           <property name="databaseType">MYSQL</property>

           <property name="createTableOnStart">true</property>

           <string-keyed-table prefix="stringbased">

               <id-column name="id_column" type="VARCHAR(255)"/>

               <data-column name="data_column" type="BLOB"/>

               <timestamp-column name="timestamp_column" type="BIGINT"/>

           </string-keyed-table>

        </string-keyed-jdbc-store>

        </local-cache>

      </cache-container>

       

      <!-- binary storage and metadata -->

      <cache-container name="binary_cache_container" default-cache="binary_data">

                      <local-cache name="binary_data">

                          <transaction mode="NON_XA"/>

                          <string-keyed-jdbc-store datasource="java:jboss/datasources/MySqlDS" shared="true" preload="false" passivation="false" purge="false">

                              <write-behind flush-lock-timeout="1" modification-queue-size="1024" shutdown-timeout="25000" thread-pool-size="1"/>

                              <property name="databaseType">MYSQL</property>

        <property name="createTableOnStart">true</property>

                              <string-keyed-table prefix="stringbased">

                                  <id-column name="id_column" type="VARCHAR(255)"/>

                                  <data-column name="data_column" type="BLOB"/>

                                  <timestamp-column name="timestamp_column" type="BIGINT"/>

                              </string-keyed-table>

                          </string-keyed-jdbc-store>

                      </local-cache>

                      <local-cache name="binary_metadata">

                          <transaction mode="NON_XA"/>

                          <expiration max-idle="5000" lifespan="10000" interval="1000"/> -->

                          <string-keyed-jdbc-store datasource="java:jboss/datasources/MySqlDS" shared="true" preload="false" passivation="false" purge="false">

                              <write-behind flush-lock-timeout="1" modification-queue-size="1024" shutdown-timeout="25000" thread-pool-size="1"/>

                              <property name="databaseType">MYSQL</property>

        <property name="createTableOnStart">true</property>

                              <string-keyed-table prefix="stringbased">

                                  <id-column name="id_column" type="VARCHAR(255)"/>

                                  <data-column name="data_column" type="BLOB"/>

                                  <timestamp-column name="timestamp_column" type="BIGINT"/>

                              </string-keyed-table>

                          </string-keyed-jdbc-store>

                      </local-cache>

      </cache-container>

       

      and here for the repository

       

       

      <repository name="repository" cache-name="repositoryCache" cache-container="modeshapeCache">

                      <workspaces default-workspace="samplews" allow-workspace-creation="false">

                          <workspace name="samplews">

                              <initial-content>initial-content-default.xml</initial-content>

                          </workspace>

                          <workspace name="plws"/>

                      </workspaces>

       

       

                      <indexing rebuild-upon-startup="always"/>

                        <cache-binary-storage

                                data-cache-name="binary_data"

                                metadata-cache-name="binary_metadata"

                                cache-container="binary_cache_container" />

          ...

          </repository>

       

      I am using modeshape 3.6.0.Final and JBOSS EAP 6.1.0.

       

      What am i doing wrong?

       

      Any help will be greatly appreciated.

       

      Thanks in advance.

       

      Willie

        • 1. Re: Repository cannot be restarted after being restored
          chieukam

          The restore process is successful if i remove the configuration for the cache binary store:


          <cache-binary-storage data-cache-name="binary_data" metadata-cache-name="binary_metadata" cache-container="binary_cache_container" />

           

          Can someone explains why? any hint?

           

          Thanks in advance for the help,

          Willie