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
The Alfresco 'dir.root' property is set to a relative path './alf_data'.
You should remedy this.  Also, you probably started your Alfresco server from another location when you first bootstrapped.  Find the alf_data folder and copy the content-store in.

Regards

vipin
Champ in-the-making
Champ in-the-making
Hi derek,

i am continuously getting these errors ,

1. License problem
16:09:31,545 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Failed to verify license - Invalid License!
16:09:31,545 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Restricted Alfresco Repository to read-only capability

2. dir.root problem
16:09:32,311 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content stor
16:09:32,311 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.

the procedure i did is,

1. I downloaded  alfresco-enterprise-tomcat-2.0.0.tar.gz and unzipped into a directory /opt/alfresco
2. deleted those 3 files
3. changed the dir.root
4. I'll only get the UI when
system.bootstrap.config_check.strict=false
and also its in readonly mode.

whats wrong with this ?

Thanks,

vipin

derek
Star Contributor
Star Contributor
Hi,

Is this a new installation or are you attempting to reuse existing data?
Did you clear out your DB with the new installation?
What are the contents of your tomcat/shared/classes/alfresco/extension/license directory?

Regards

vipin
Champ in-the-making
Champ in-the-making
Thanks derek,

finally i got it. Smiley Tongue
now I am using php so I downloaded that library and whenever I am using that i am getting this error.
can you figure out the problem ?

ERROR
Fatal error: Uncaught exception 'Exception' with message 'No such operation 'startSession'' in /usr/local/apache2/htdocs/alfresco1.2/alfresco/BaseService.php:59 Stack trace: #0 /usr/local/apache2/htdocs/alfresco1.2/alfresco/AuthenticationService.php(33): BaseService->checkForError(Object(SOAP_Fault)) #1 /usr/local/apache2/htdocs/alfresco1.2/examples/common/login.php(42): AuthenticationService->startSession('admin', 'admin') #2 {main} thrown in /usr/local/apache2/htdocs/alfresco1.2/alfresco/BaseService.php on line 59


Thanks,

vipin

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Which veresion of the PHP library and repository are you using?

Cheers,
Roy