cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Alfresco/Tomcat bundle on Ubuntu Hardy 8.04

nicolasdiogo
Champ in-the-making
Champ in-the-making
i had few problem while installing the bundled Alfresco & Tomcat into Ubuntu Hardy 8.04.  :?

these were the problem that i had so far and their solutions:
no mysql jdbc driver on tomcat lib/ folder
download and place the driver into <tomcat>/lib/

OutOfMemory error
http://forums.alfresco.com/en/viewtopic.php?f=8&t=15119

and i have also added CATALINA_OPTS to <tomcat>/bin/catalina.sh
add the following line to the file:

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export JRE_HOME=/usr/lib/jvm/java-6-sun
export JAVA_OPTS='-Xms256m -Xmx512m -XX:MaxPermSize=256m'
export CATALINA_OPTS='-Xms256m -Xmx512m -XX:MaxPermSize=256m'

the current one gives me the following error message on the webpage:
org.alfresco.error.AlfrescoRuntimeException: Error during getUserPreferencesRef(): 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.
caused by:
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.

since it complains about write access i have run the following command on the terminal:

chown alfresco:alfresco -R /opt/alfresco

and restarted the server, without any change.

could someone have any idea how to solve this problem?

many thanks,

Nicolas
4 REPLIES 4

ktsoi
Champ in-the-making
Champ in-the-making
I'm having the same issues with a fresh 3c build and deploy of Alfrescos.  Anyone have any insight on this issue?  Thanks.

Kevin

mrogers
Star Contributor
Star Contributor
It looks like Alfresco is in read only mode.     This is usually because Alfresco Enterprise does not have a valid licence.

Have a look though the Error log to find out why and whether Alfresco is in read-only mode.

punit_oza
Champ in-the-making
Champ in-the-making
I am having the same problem while installation on Windows XP
I have checked the startup log and it shows 27 days still remaining for trial version of alfresco enterprise 3.0. Thus, i am having a valid license.

But it shows the same error while running alfresco

org.alfresco.error.AlfrescoRuntimeException: Error during getUserPreferencesRef(): 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.
caused by:
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.

Does anybody have its solution ?

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.