cancel
Showing results for 
Search instead for 
Did you mean: 

Lab 3 stable fresh install forced to 'readOnly' mode

ktsoi
Champ in-the-making
Champ in-the-making
I am running into a similar problem.  All I've done is download alfresco-labs-war-3Stable.tar.gz, extracted and copied alfresco.war to my tomcat webapps directory as instructed in the install guide, ran the mysql setup script provided with the tar.gz, and started up tomcat.  I am getting the following error during startup:
Validation of patch 'patch.wcmFolders' failed. Patch is applicable to a newer schema than the schema of this build (1,002).
fixesToSchema: 9,999
targetSchema: 10,000.
If this patch should always be run once on every installation, please ensure that the 'fixesToSchema' value is set to '${version.schema}'.

When I login to alfresco, I am getting the following 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.

Why is alfresco in read-only mode, and how do I change alfresco to not 'read-only'?  Sorry for sounding frustrated, but how can something so simple (deploying the alfresco.war file) be causing so much problems?  I've seen a lot of post already with people running into the 'Write operations are not allowed in read-only mode' with no response.  Please help!  Thanks.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Somehow you are trying to bootstrap wcm with a wrong (probably old) version of the file.    As you can see from its output its trying to run against the wrong schema.    Have you by any chance got old configuration content in your tomcat/shared/classes folder?

You probably also have another error which is why you are in read-only mode.   Have you checked the alfresco log files for any errors which may give you a clue?

ktsoi
Champ in-the-making
Champ in-the-making
I did have an old config file in my tomcat/shared/classes folder.  Fixing that solved the problem.  Thanks.