cancel
Showing results for 
Search instead for 
Did you mean: 

System Error when starting 3.2 community version

openeric
Champ in-the-making
Champ in-the-making
I receive this error on the UI:
Alfresco System Error    
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.

And the following error in the log:
12:26:12,272 ERROR [org.alfresco.repo.transaction.AlfrescoTransactionSupport] After completion (committed) listener exception:
   listener: org.alfresco.repo.security.person.PersonServiceImpl@1
org.alfresco.repo.security.permissions.AccessDeniedException: 07250003 Access Denied.  The system is currently in read-only mode.
4 REPLIES 4

dward
Champ on-the-rise
Champ on-the-rise
Your license has expired.

dward
Champ on-the-rise
Champ on-the-rise
Sorry. That was dumb. You said Community Version.

Another common cause for the system going read only is that you have got invalid patch configuration that has a fixesToSchema higher than the schema number in version.properties. Check you don't have an old version of wcm-boostrap-context.xml hanging around in $TOMCAT_HOME/shared/classes/alfresco/extension. It should look like this (note the fixesToSchema property).

    <!–  Patch in the WCM folders –>
    <bean id="patch.wcmFolders" class="org.alfresco.repo.admin.patch.impl.WCMFoldersPatch" parent="basePatch" >
        <property name="id"><value>patch.wcmFolders</value></property>
        <property name="description"><value>patch.wcmFolders.description</value></property>
        <property name="fixesFromSchema"><value>0</value></property>
        <property name="fixesToSchema"><value>${version.schema}</value></property>
        <property name="targetSchema"><value>10000</value></property>
        <!– helper beans for execution –>
        <property name="messageSource">
            <ref bean="bootstrapSpacesMessageSource" />
        </property>
        <property name="importerBootstrap">
            <ref bean="spacesBootstrap" />
        </property>
    </bean>

openeric
Champ in-the-making
Champ in-the-making
Thanks for the suggestion.  The file does look like what you posted.  Where is the version.schema property?

openeric
Champ in-the-making
Champ in-the-making
Not sure why, but the problem stopped and able to access the dashboard just fine.  Will update if problem happens again.  Thanks.