cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with 3.4.6

luishuang
Champ in-the-making
Champ in-the-making
Fresh install of alfresco 3.4.6 using enterprise with default settings.

Create a wcmqs site using share and import the government template. Access the site fine. Then delete the site and create a new wcmqs site. The site is created but can't access the website. Shows a lot of errors in catalina.out which I've attached. http://pastebin.com/PRvssMiE

When I delete the first wcqms site I get a lot of errors in the logs as follow.

10:03:20,068 WARN [repo.usage.ContentUsageImpl] User usage (workspace://SpacesStore/0e9045a1-e9aa-4523-90ab-cd529fa0444c) is negative (-387) overriding to 0
10:03:20,092 WARN [repo.usage.ContentUsageImpl] User usage (workspace://SpacesStore/0e9045a1-e9aa-4523-90ab-cd529fa0444c) is negative (-1544) overriding to 0
10:03:20,106 WARN [repo.usage.ContentUsageImpl] User usage (workspace://SpacesStore/0e9045a1-e9aa-4523-90ab-cd529fa0444c) is negative (-3056) overriding to 0
10:03:20,143 WARN [repo.usage.ContentUsageImpl] User usage (workspace://SpacesStore/0e9045a1-e9aa-4523-90ab-cd529fa0444c)

Have tried this in 3.4.5 and it does not give this problem.

edit: 3.4.5 also gives the user usage is negative messages when deleting a wcmqs site. But it doesn't have the additional error messages.
6 REPLIES 6

luishuang
Champ in-the-making
Champ in-the-making
I've tested this on windows, ubuntu and redhat. Installed with default setings.

Create a site, import the webquickstart government or finance template. Delete the site then create a website and import the template again. Access the site via http://localhost:8080/wcmqs and it displays an error.

The first time you create the site and import the template it will work. As soon as you delete a webquickstart site, any newly created or old site is now broken.

bremmington
Champ on-the-rise
Champ on-the-rise
Thanks for reporting this. Please would you tell me if the request to http://localhost:8080/wcmqs/ works again if you wait 5 minutes or more? The reason I ask is because, by default, the WQS API caches "host-port-context" tuples against website id for 5 minutes. The logic behind that is that it's pretty unusual in normal situations to do what you're doing - deleting a website and then recreating a new one with the same address.

Of course, you can adjust that cache timeout down for your development server if you wish. The property is "wcmqs.api.websiteCacheSeconds" and can be overridden in wqsapi-custom.properties.

The exceptions that you're seeing after deleting the site are not what I would expect. I'll see if I can reproduce this, but I don't think they're causing the main problem of not being able to view the website.

luishuang
Champ in-the-making
Champ in-the-making
I deleted the site and created one with a different address. I didn't wait 5 minutes after deleting and creating a new site. But I rebooted the server a few times and the site is still inaccessible. Any existing or new sites created with  diferrent address would not work after that.

I also tried creating 2 sites and import the webquick start template on both. Test that both is working. As soon as I delete one of the site, the other becomes inaccessible.This only affects 3.4.6 and not 3.4.5.

The exceptions are showing on both 3.4.5 and 3.4.6

A jira issue has been raised https://issues.alfresco.com/jira/browse/ALF-12324
It says that you need to do this a couple of times, but in fact for me it occurs every time when I delete a wcmqs site.

Thanks!

bremmington
Champ on-the-rise
Champ on-the-rise
Oh, OK. I've just checked, and nothing changed in the WQS module between 3.4.5 and 3.4.6, so this must be caused by something a little deeper. Looking through the log file attached to ALF-12324, that seems to be down to the caching that I described above. The indicator of that problem is this exception:

Caused by: org.alfresco.repo.search.impl.querymodel.QueryModelException: 00090241 Object does not exist: workspace://SpacesStore/f4f20df6-6ad2-475a-81dd-a8b0b2c93e64
   at org.alfresco.repo.search.impl.querymodel.impl.lucene.functions.LuceneDescendant.addComponent(LuceneDescendant.java:113)
   at org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneFunctionalConstraint.addComponent(LuceneFunctionalConstraint.java:58)
   at org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneDisjunction.addComponent(LuceneDisjunction.java:66)
   at org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneQuery.buildQuery(LuceneQuery.java:110)
   at org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneQueryEngine.executeQuery(LuceneQueryEngine.java:177)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy117.executeQuery(Unknown Source)
   at org.alfresco.cmis.search.CMISQueryServiceImpl.query(CMISQueryServiceImpl.java:128)
   at org.alfresco.repo.cmis.rest.CMISScript.query(CMISScript.java:652)

luishuang
Champ in-the-making
Champ in-the-making
But this shoudn't stop me from creating new sites with different address would it? Any new wcmqs site I created now wouldn't work.

bremmington
Champ on-the-rise
Champ on-the-rise
No, sorry, what I was getting at was that perhaps that issue isn't describing your particular issue. When I get a chance I will see if I can reproduce it.