cancel
Showing results for 
Search instead for 
Did you mean: 

[RESOLVED] Alfresco 3 final Labs --> read-only mode?

fx3000se
Champ in-the-making
Champ in-the-making
I downloaded and installed "Alfresco 3 final Labs" (Alfresco-Labs-3Stable-Linux-x86-Install).
Now I am getting "read-only" errors whenever I try to create a space or any other "write op"…
eg:
Please correct the errors below then click Create Space.
Failed to create new space due to error: Access Denied. The system is currently in read-only mode.

Where can I switch back to non-readonly mode?

Thx
Clemens
4 REPLIES 4

fx3000se
Champ in-the-making
Champ in-the-making
I had my config files under version control and reused them after updating from 3c to 3final.

In the wcm-bootstrap-context.xml I had:
<property name="fixesToSchema"><value>9999</value></property>
but it should have been:
<property name="fixesToSchema"><value>${version.schema}</value></property>

Now out of read-only mode… 🙂

derek
Star Contributor
Star Contributor
Hi,
Well found!  You were falling prey to some new license-checking code that ensures patch version numbers aren't tweaked bypass the checks.  You don't need an explicit license, but the checks still kicked in.
Regards

varsenault
Champ in-the-making
Champ in-the-making
We had the same problem and we solved it using the same technique described here. Thanks!

ktsoi
Champ in-the-making
Champ in-the-making
I am running into the same problem, except I do not have a wcm-bootstrap-context.xml file, nor do I have a fixesToSchema property set to 9999.  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.