Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Hewitt 65 posts 126 karma points
    Nov 08, 2013 @ 11:32
    Simon Hewitt
    0

    Licencing issues

    We have a website running on three load balanced front ends where each content page has a convert to PDF link which uses PDF creator to make the PDF on the fly.

    We have intermittent issues where one of the nodes PDF feature suddenly stops working and we need to copy the licence file from one of the other nodes to get it working again. It's never the same node and Beyond Comparing across the nodes there are no differences in the files so I'm not sure how to cure this one.

    Any thoughts appreciated.

    Thanks Simon

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 10, 2013 @ 08:39
    Darren Ferguson
    0

    Hi Simon,

    "Stops working" isn't the kind of bug report that I can help with... What actucally happens?

    Thanks.

  • Simon Hewitt 65 posts 126 karma points
    Nov 11, 2013 @ 10:43
    Simon Hewitt
    0

    Hi Darren,

    sorry I thought I had put some more detail in the post. Here's the error in the Umbraco logs;

    2013-11-07 16:21:51,926 [8] ERROR Umbraco.Web.UmbracoApplication - [Thread 12] An unhandled exception occurred
    System.Exception: You can only work with a trial license on localhost and .local domains.
       at FergusonMoriyama.Pdf.Application.Module.PdfModule.ContextPostReleaseRequestState(Object sender, EventArgs e) 
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     Looking through the windows event log I can find the matching request;

       3005
       An unhandled exception has occurred. 
       07/11/2013 16:21:51 
       07/11/2013 16:21:51 
       29f17f1f94604b4cb65ba7d2eb519140 
       104433 
       133 
       0 
       /LM/W3SVC/1/ROOT-1-130282978029448756 
       Full 
       / 
       CC-LIVE-NODE2 
        
       3688 
       w3wp.exe 
       NT AUTHORITY\NETWORK SERVICE 
       Exception 
       You can only work with a trial license on localhost and .local domains. at FergusonMoriyama.Pdf.Application.Module.PdfModule.ContextPostReleaseRequestState(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
       http://www.charitycommission.gov.uk/detailed-guidance/trustees-staff-and-volunteers/its-your-decision-charity-trustees-and-decision-making/PDF ;
    

     Which shows the request was using the domain we have licensed.

    There doesn't seem to be any trigger for this issue it just happens at a random time on a random node.

    At this point I don't know if an app pool recycle would be enough to get the license working again as when this problem has arisen our systems team have been copying the license file as mentioned above. I am monitoring the nodes now and hope to catch one in a non working state so I can have a closer look.

    Cheers

    Simon

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 11, 2013 @ 12:00
    Darren Ferguson
    100

    Hi Simon,

    This often happens when the site gets accessed on a non licensed domain - it locks up licensing for all domains, even licensed domains until such time that the app pool is recycled.

    This is/was a known issue with the Umbraco Licensing DLL and affects other core products.

    Best advice - restrict access to the PDF URLs so they are only available in the licensed domain.

    I hope this helps. Let me know.

  • Simon Hewitt 65 posts 126 karma points
    Nov 11, 2013 @ 12:35
    Simon Hewitt
    0

    That would make sense, we have internal monitoring software which will be hitting each node by its internal IP address regularly. Just to confirm (Google let me down on a quick search of the interwebs), will this lockup happen when ANY url is hit without the licensed domain or just ones that require a licence to operate correctly?

    Thankyou for such speedy responses by the way!

    Simon

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 11, 2013 @ 14:28
    Darren Ferguson
    0

    Hi Simon,

    The licensing DLL is closed - obsfucated etc so I never got around to finding out.

    I guess you could find out quite quickly on a local test env. e.g. add a hosts entry to access the site on your local PC using the licensed hostname, then a non licensed host etc.

    I'd give it a shot myself but a bit swamped just now.

  • Simon Hewitt 65 posts 126 karma points
    Nov 11, 2013 @ 15:35
    Simon Hewitt
    0

    No worries, was just hoping to pick your brain not use your time up for you.

    I will get some testing done when I have time myself.

    Many thanks

    Simon

Please Sign in or register to post replies

Write your reply to:

Draft