cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid License?

dmrnj
Champ in-the-making
Champ in-the-making
I installed an evaluation verson of Alfresco on Debian (Sarge) earlier in November. On Friday, our log file said that we had 16 days left in the eval (which sounds about right.) Alfresco had been up and running for several days without a hitch, but then I rebooted the machine, and started Alfresco up again.

Now everything is broken, and I'm getting this error in my log file right after starting alfresco:

10:24:04,474 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
10:24:04,488 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability


This read-only capability keeps causing Java to throw these errors:
"Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition at "

Which has rendered my system useless, since I have been having it reload LDAP information on startup.

Does anyone know why my license is failing? Granted, it was a temporary license, but it should still be valid. What's especially troubling is that I don't recall making any changes to the system that would cause this.
14 REPLIES 14

derek
Star Contributor
Star Contributor
Hi,

There is a bug (fixed in 1.3.2 Enterprise and 1.4 Open) that was causing the license file to be mistaken as orphaned content.

Copy the contents of your contentstore.deleted directory into contentstore.  Override the contentStoreCleanerTrigger (see scheduled-jobs-context.xml) and leave out the schedulerFactory.

The orphaned content will not be deleted and the license will remain where it should.  This will keep you going until you upgrade to 1.4 or 1.3.2 Enterprise.

Regards

tja
Champ in-the-making
Champ in-the-making
I have the same problem. downloaded a version (1.4) yesterday.
There is no content in the contentstore.deleted.

Any idea?

Tja

derek
Star Contributor
Star Contributor
Could you post the service.descriptor.DescriptorService log entries that were created on startup?
Did it do this right from the first startup?

Regards

vipin
Champ in-the-making
Champ in-the-making
Hi

     i am having the same issue that whenever i am starting alfresco i am getting the  message,

Alfresco license: Restricted Alfresco Repository to read-only capability

what will be the problem ?
the log is given below.can u tell me why the errors (in bold letters) comes ?

Thanks in advance,

vipin

May 11, 2007 10:17:13 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_06/bin:/opt/alfresco/tomcat/bin
May 11, 2007 10:17:14 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 11, 2007 10:17:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1449 ms
May 11, 2007 10:17:14 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 11, 2007 10:17:14 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
May 11, 2007 10:17:14 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
10:17:46,351 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
10:17:50,087 WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
10:17:58,320 WARN  [service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
10:17:58,343 WARN  [service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability
10:17:59,071 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /srv/alfresco/data
10:17:59,456 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
10:17:59,457 ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
10:17:59,457 WARN  [repo.admin.ConfigurationChecker] Alfresco is starting with errors.
10:17:59,466 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
10:17:59,559 INFO  [admin.patch.PatchExecuter] No patches were required.
10:17:59,610 INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
10:18:00,106 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 508.063MB
10:18:00,107 INFO  [service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.0.0 (build-23) schema 38 - Installed version 2.0.0 (build-23) schema 38
10:18:00,207 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
   at java.lang.Thread.run(Thread.java:595)
May 11, 2007 10:18:03 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 11, 2007 10:18:03 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 11, 2007 10:18:03 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/593  config=null
May 11, 2007 10:18:03 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 11, 2007 10:18:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 50187 ms



:roll:  :roll:  :roll:

vipin
Champ in-the-making
Champ in-the-making
Hi

     i am having the same issue that whenever i am starting alfresco i am getting the  message,

Alfresco license: Restricted Alfresco Repository to read-only capability

what will be the problem ?
the log is given below.can u tell me why the errors (in bold letters) comes ?

Thanks in advance,

vipin

May 11, 2007 10:17:13 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_06/bin:/opt/alfresco/tomcat/bin
May 11, 2007 10:17:14 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 11, 2007 10:17:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1449 ms
May 11, 2007 10:17:14 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 11, 2007 10:17:14 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
May 11, 2007 10:17:14 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
10:17:46,351 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
10:17:50,087 WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
10:17:58,320 WARN  [service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
10:17:58,343 WARN  [service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability
10:17:59,071 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /srv/alfresco/data
10:17:59,456 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
10:17:59,457 ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
10:17:59,457 WARN  [repo.admin.ConfigurationChecker] Alfresco is starting with errors.
10:17:59,466 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
10:17:59,559 INFO  [admin.patch.PatchExecuter] No patches were required.
10:17:59,610 INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
10:18:00,106 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 508.063MB
10:18:00,107 INFO  [service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.0.0 (build-23) schema 38 - Installed version 2.0.0 (build-23) schema 38
10:18:00,207 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
   at java.lang.Thread.run(Thread.java:595)
May 11, 2007 10:18:03 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 11, 2007 10:18:03 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 11, 2007 10:18:03 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/593  config=null
May 11, 2007 10:18:03 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 11, 2007 10:18:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 50187 ms



:roll:  :roll:  :roll:

derek
Star Contributor
Star Contributor
Hi,

Your content is located beneath directory /srv/alfresco/data.  When the server starts up, it checks the content store for the presence of the license file as it must always be present in a bootstrapped system.  That is missing for starters, implying that you moved the location of your content but didn't copy in the content store as per your original bootstrap location.  Typically, people start the system up with the default config that creates a ./alf_data, then forget to copy that to the new config location whilst using the same database.

The read-only issue is a side effect of that.  The license service looks for the license file but is unable to find it and therefore restricts the server to read-only operation.

Either copy in the original content or drop in a new license file to shared/classes/alfresco/extension/license - but you might be missing some other content.

Regards

vipin
Champ in-the-making
Champ in-the-making
Thanks for the informations you provided, Derek,

I would like to know the following ,

1. what is a license file ? After installation i can only see a folder named license.do I can use alfresco "not in read only" mode by using this trial install?

2. what is system content ?

3. why i am getting " ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is    pointing to the correct data location."error ..

   Thanks in advance,

  
   vipin
     Smiley Tongue

derek
Star Contributor
Star Contributor
Hi,

The license file is sucked into the system on first bootstrap.  It is the only content that absolutely MUST be present in the system in any install of the Enterprise.  Which version are you running?

Regards

vipin
Champ in-the-making
Champ in-the-making

Hi derek,

10:18:00,107 INFO [service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.0.0 (build-23) schema 38 - Installed version 2.0.0 (build-23) schema 38

now the log is,


May 14, 2007 12:04:12 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_06/bin:/usr/local/tomcat/bin
May 14, 2007 12:04:12 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 14, 2007 12:04:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1424 ms
May 14, 2007 12:04:13 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 14, 2007 12:04:13 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
May 14, 2007 12:04:13 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 14, 2007 12:04:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
12:04:42,595 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
12:04:45,814 WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
12:04:52,529 WARN  [service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
12:04:52,529 WARN  [service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability
12:04:53,206 WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
12:04:53,206 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
12:04:53,710 ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:04:53,710 ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
12:04:53,710 WARN  [repo.admin.ConfigurationChecker] Alfresco is starting with errors.
12:04:53,719 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
12:04:53,771 INFO  [admin.patch.PatchExecuter] No patches were required.
12:04:53,785 INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
12:04:54,164 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 508.063MB
12:04:54,166 INFO  [service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 2.0.0 (build-23) schema 38 - Installed version 2.0.0 (build-23) schema 38
May 14, 2007 12:04:56 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 14, 2007 12:04:57 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 14, 2007 12:04:57 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/62  config=null
May 14, 2007 12:04:57 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 14, 2007 12:04:57 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 44997 ms
..
Thanks

vipin