Copied to clipboard

Flag this post as spam?

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


  • Daniel Jensen 29 posts 160 karma points
    Mar 22, 2016 @ 15:36
    Daniel Jensen
    0

    Error when loading alot of content into umbraco via contentservice: "Failed to enter the lock within timeout"

    Hi, I'm trying to create alot of nodes in Umbraco using the contentservice.

    It used to work fine while on staging, but also a few times on our live server (azure virtual machine)

    This is the Umbraco Log i'm getting from it. Does anyone have a hint to why this is happening?

    Any help is very much appreciated!

     2016-03-22 16:21:52,035 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 1' with Id '0' has been published.
     2016-03-22 16:21:53,186 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content '29' with Id '0' has been published.
     2016-03-22 16:21:53,749 [P10996/D2/T56] INFO  umbraco.content - Saved Xml to file.
     2016-03-22 16:21:54,462 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 2' with Id '0' has been published.
     2016-03-22 16:21:56,703 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 3' with Id '0' has been published.
     2016-03-22 16:21:58,063 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content '30' with Id '0' has been published.
     2016-03-22 16:21:59,942 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 4' with Id '0' has been published.
     2016-03-22 16:22:02,551 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 5' with Id '0' has been published.
     2016-03-22 16:22:05,274 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 6' with Id '0' has been published.
     2016-03-22 16:22:08,143 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 7' with Id '0' has been published.
     2016-03-22 16:22:09,144 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content '31' with Id '0' has been published.
     2016-03-22 16:22:10,242 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 8' with Id '0' has been published.
     2016-03-22 16:22:11,989 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 9' with Id '0' has been published.
     2016-03-22 16:22:13,733 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 10' with Id '0' has been published.
     2016-03-22 16:22:17,790 [P10996/D2/T32] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Title of article 11' with Id '0' has been published.
     2016-03-22 16:22:18,010 [P10996/D3/T10] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.TimeoutException: Failed to enter the lock within timeout.
       at Umbraco.Core.MainDom.Acquire()
       at Umbraco.Core.ApplicationContext.Init()
       at Umbraco.Core.CoreBootManager.CreateApplicationContext(DatabaseContext dbContext, ServiceContext serviceContext)
       at Umbraco.Core.CoreBootManager.Initialize()
       at Umbraco.Web.WebBootManager.Initialize()
       at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
    

    I have tried recycling the website + app pool multiple times. It fixes it temporarily, but then when i start the import, it just crashes over again.

    Best regards

    Daniel

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 23, 2016 @ 08:10
    Dave Woestenborghs
    0

    Hi Daniel,

    I think there is something wrong with your code because all lines in the log say

    Content 'x' with Id '0' has been published.
    

    The id being 0 is something that feels wrong to me.

    Can you post your code to see if we can locate the problem ?

    Dave

  • Mihai Savu 11 posts 75 karma points
    Jun 29, 2016 @ 10:46
    Mihai Savu
    0

    I have the same error message in Umbraco log files hosted on my machine. However the content gets published and I can find it in both backoffice and website, so the cache is being refreshed too.

    What is the actual result in the backoffice? Do you find that content or not? Does it have a valid ID? Is it published or draft? The error message is in fact an INFO, so maybe it's ok in the end.

    In my case any new node is logged with Id '0' and any update on an existing node is logged with a valid Id. Did you try to update an existing node and check the ID in the log?

    I'm also worried about the "Failed to enter the lock within timeout". See some solutions here https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/66447-web-site-fails-silently

Please Sign in or register to post replies

Write your reply to:

Draft