cancel
Showing results for 
Search instead for 
Did you mean: 

Persistent URL tickets disappearing

rien0700
Champ in-the-making
Champ in-the-making
I'm running Alfresco Community 4.0.d and a few months ago I noticed a kind of obscure bug when using disk persistent tickets in org.alfresco.cache.ticketsCache.

I'm also using Moodle 2.2 and that is where I need the persistent tickets to be able to include and access files from alfresco. If you don't know what I mean, this is the way work material is accessed from alfresco:

…/alfresco/download/direct/workspace/SpacesStore/4bdb915f-4343-41ba-b7df-80ef100afbdb/testing.png?ticket=TICKET_334ee0e343f70f8ee2adcf03938d13af6e4f62f2

Please notice the ticket that is appended.


The bug appears very infrequently and is hard to trigger. What happens is that in some rare cases some of the tickets disappear. It's only a few tickets, maybe 1 or 2 that disappears from the ticket cache. I don't know if it is the latest or the oldest tickets that vanish. I have compared the ticket cache in tomcat/temp/org.alfresco.cache.ticketsCache.data and I have seen that they actually do disappear.


However I have managed to trigger the bug by restarting the server several times in a row and during each of the startups I logged in to alfresco via Moodle and included files with new tickets. Everything is fine so far, to trigger the bug I restart the server and it could take anything from 3 - 20 restarts before the bug appeared, i.e. tickets disappeared from the cache.


My guess is that there is a shy bug somewhere in the classes related to ticketsCache Smiley Happy
Anyone with deep insight into those classes might be able to figure out what it is all about.

Any ideas?



————————-
My Alfresco settings:

I override the EHCache defaults by moving ehcache-custom.xml here:
alfresco-4.0.d/tomcat/shared/classes/alfresco/extension/ehcache-custom.xml

And then I configure ticketsCache like this:

        name="org.alfresco.cache.ticketsCache"
        maxElementsInMemory="10000"
        eternal="true"
        overflowToDisk="true"
        diskPersistent="true"
        statistics="false"

I have tried different settings without any success.

Is there an upgraded cache module in Alfresco 4.2? I was thinking of upgrading to Alfresco Community 4.2 but then I read this:
https://forums.alfresco.com/en/viewtopic.php?f=14&t=47375
3 REPLIES 3

andy
Champ on-the-rise
Champ on-the-rise
Hi

This just looks like tickets expire. Have you configured them to last longer than the default hour?

Andy

rien0700
Champ in-the-making
Champ in-the-making
Thanks for your reply Andy!

This is not about tickets expiring. I could generate ten different tickets right now and when I reboot Alfresco 30 minutes later (or 10 weeks later for that matter) one of the tickets could disappear, the rest of them stay valid.

I have only managed to trigger the bug when doing several subsequent alfresco reboots (in between each reboot I also generated new tickets).


Configuration of ticketsCache:

name="org.alfresco.cache.ticketsCache"
maxElementsInMemory="10000"
eternal="true"
overflowToDisk="true"
diskPersistent="true"
statistics="false"

digitagangsta
Champ in-the-making
Champ in-the-making
Hi Team/Andy,
My software stack:
ubuntu 1204, moodle 2.5, alfresco 4.0.e (as i need ticket persistence), LAMP stack from Ubuntu 1204 itself.

I am facing this weird issue where I have setup persistence for tickets (we are integrating moodle with Alfresco api for video files).
After 4 days (typically on Monday 3 am PST) my tickets for certain pages expire (no stream found).

I have replicated the settings shown in this thread: i.e.
Configuration of ticketsCache:

name="org.alfresco.cache.ticketsCache"
maxElementsInMemory="10000"
eternal="true"
overflowToDisk="true"
diskPersistent="true"
statistics="false"

I think I have found the issue, need affirmation on it.

There is a cron entry in repository.properties file which talks about cleaning the cache everyday at 3 AM PST and there is an idle time in seconds.
Now I have disabled the cache cleaning. Need to know whether I am on the right path or this will affect the performance of the Server?


We are at the verge of the project and this issue is killing us. Please assist.

Rajashekhara Gopalarao
rajashekhara.g@gmail.com

Please PM me for any further details/ post in the thread so that I can provide more info on it.


Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.