Starting over

During development, it is quite common to have to start with a fresh repository. Usually this is because you've made a significant change to the model, and you'd rather blow everything away than clean up inconsistencies. The Alfresco repository is made up of three parts: the metadata stored in the relational database, the binary files stored on the file system and the Solr indexes. To clear out the repository, you have to clear out all three. If you delete the data directory but not the database, you will see a bunch of data integrity problems because the binary files that the database knows about are no longer there. Be sure that Alfresco is stopped.

Let's start by the database:

  1. Start PostgreSQL: service alfresco start postgresql ...

Get Alfresco One 5.x Developer's Guide - second edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.