+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Error whne publishing page in IIS

Error whne publishing page in IIS

8 posts, 0 answered
  1. Evgeny Vdovin
    Evgeny Vdovin avatar
    11 posts
    Registered:
    05 May 2006
    13 Jul 2009
    Link to this post
     

    Server Error in '/' Application.

    Lock obtain timed out: SimpleFSLock@C:\inetpub\wwwroot\Applications\PortMetroVancouver_live\App_Data\Search\AllPages\Index\write.lock

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\inetpub\wwwroot\Applications\PortMetroVancouver_live\App_Data\Search\AllPages\Index\write.lock

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [IOException: Lock obtain timed out: SimpleFSLock@C:\inetpub\wwwroot\Applications\PortMetroVancouver_live\App_Data\Search\AllPages\Index\write.lock]
       Telerik.Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout) +368
       Telerik.Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir) +112
       Telerik.Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create) +270
       Telerik.Search.Engine.Crawler.GetIndexWriter(String indexName, Boolean createIndex) +91
       Telerik.Search.Engine.BaseIndexer..ctor(String directory, String provider, Boolean appendToIndex) +51
       Telerik.Search.Engine.IndexingManager.DeleteDocumentsFromIndex(String provider, Guid[] documentIds) +115
       Telerik.Search.Engine.IndexingService.Client_Index(Object sender, IndexEventArgs e) +39
       Telerik.Cms.Search.PageIndexProvider.OnIndex(IndexEventArgs args) +22
       Telerik.Cms.Search.PageIndexProvider.CmsManager_Executed(Object sender, ExecutedEventArgs e) +767
       Telerik.ManagerBase`1.OnExecuted(Object sender, ExecutedEventArgs args) +180
       Telerik.Cms.CmsManager.RaiseExecuted(CmsProvider sender, ExecutedEventArgs args) +10
       Telerik.Cms.Data.StagedPage.Publish() +580
       Telerik.Cms.Data.StagedPage.CheckIn() +400
       Telerik.Cms.Web.UI.ToolBar.Button_Command(Object sender, CommandEventArgs e) +123
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +108
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Jul 2009
    Link to this post
    Hi Evgeny Vdovin,

    Can you please try the following:
    1. Turn off the Auto indexing
    2. Delete all index filed under the App_Data\Search directory
    3. Make sure that the Asp.Net process have full access over the App_Data
    4. Publish your page and reindex the web site.

    For some reason the index files were locked. This might happen in rare occasions if the indexing thread hangs.

    Could you please confirm your Sitefinity version? We had such problems in the past, but they should be resolved in 3.6 SP2.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    25 Jul 2009
    Link to this post
    Hi there

    i am getting the same error in both public and administrator mode after i tranfered my site to production server


    Public Site
    -----------
     
    While i am attempt to search getting a following error:-
    Lock obtain timed out: SimpleFSLock@C:\inetpub\wwwroot\CMS\App_Data\Search\JAGRS\Index\write.lock
     
     
    Administration area
    --------------------

    when i try to create a new page or delete a page getting a following error:-
    Lock obtain timed out: SimpleFSLock@C:\inetpub\wwwroot\CMS\App_Data\Search\Hatta-Fort-Hotel\Index\write.lock

    When i try to click administration tab getting a following error:-
    Cannot create directory: C:\inetpub\wwwroot\CMS\App_Data\Search\JAIH1\Index
     
    when i try to publish a page associated with certain template getting a following error:-
    Lock obtain timed out: SimpleFSLock@C:\inetpub\wwwroot\CMS\App_Data\Search\Hatta-Fort-Hotel\Index\write.lock 

    thanks
    syed

     
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Jul 2009
    Link to this post
    Hi syed,

    Have you followed Chokov's suggestions?

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    27 Jul 2009
    Link to this post
    Hi evan

    After i cleard all file in app_data/search directory the error 'Lock obtain timed out: SimpleFSLock' is went off. But whenever i click the administration tab to control search/permission Module.  I am getting the below error : 

    Cannot create directory:C:\inetpub\wwwroot\CMS\App_Data\Search\Hatta-Fort-Hotel\Index

    i follwed his step but no solutions so far.

    thanks
    syed



  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 Jul 2009
    Link to this post
    Hello syed,

    Most probably asp.net account does not have needed permissions. If you can isolate the problem and send us a sample project it will be great. We will setup you project locally and try to reproduce the issue.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. syed
    syed avatar
    22 posts
    Registered:
    05 Mar 2009
    29 Jul 2009
    Link to this post
    hi ivan

    Provided the needed permission is fixed.
     
    one more thing and sorry for the pain
    I uploaded the masterpage via Sitefinity but while i am looking in the app_master folder for particular master/code behind page for editing.  i can't able to find those pages.



    Thanks for your support

    Thanks
    Syed
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Jul 2009
    Link to this post
    Hi syed,

    The templates are uploaded in App_Master folder of your website root. When you upload a template you are asked whether the template has a code behind or not.
    Removing the templates from Sitefinity UI removed the templates from project's root.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
8 posts, 0 answered