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

Forums / General Discussions / Sitefinity deployment

Sitefinity deployment

14 posts, 0 answered
  1. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    22 Jun 2010
    Link to this post
    Hi,

    We have a requirement where we need to install full Sitefinity installation on an internal server which we can use for the Content admin and second external server which has the copy of the internal website minus the admin folder so that site administration cannot be accessed from the external server.  Both these installations have to use the same database as content is only going to be managed from internal server.  Is this possible how? Are there any changes needed to do this or can we just copy the website folder to external server?

    I have been trying this all day today but getting errors when trying to use search. Please help me on how to achieve this.

    Thanks,

    Vipul 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    22 Jun 2010
    Link to this post
    Hello vipul patel,

    You should copy all files from your external server to the internal server. Since you will use the same database connectionString changes will not be required. Then you can remove Sitefinity/Admin/CmsAdmin folder and Sitefinity/Login.aspx file. You cannot remove the whole Sitefinity/Admin folder because there are sub folders which contain external js libraries, web services, some templates and user controls that might be used on your public website.

    There is another option which has the same effect - you can just restrict the access to the public website.com/sitefinity from IIS. IIS supports IP Address and Domain Name Restrictions.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    23 Jun 2010
    Link to this post
    Hi Ivan,

    Thanks for your reply,  is it possible to install Sitefinity on the internal server and then copy it to external server ? will it work in the same way as described by you?

    On a seperate note i would be very thankful if you can also answer my question on the email notification code issue that i have posted as i am still facing the lock problem. I have pasted my code for your reference in that post.

    Thanks,

    Vipul Patel
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Jun 2010
    Link to this post
    Hello vipul patel,

    Yes  it is possible to install it on the internal and then copy it to the external.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    23 Jun 2010
    Link to this post
    Hi Ivan,

    I have copied mywebsite from internal to external server,  my search is not working on the external server, it works fine on the internal server,  can this be an issue, is the search funtionality writing any files to file structure when a new index is created?

    Thanks,

    Vipul Patel
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Jun 2010
    Link to this post
    Hello vipul patel,

    The search index stored its segments files under App_Data/Search folder and its sub folders.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    23 Jun 2010
    Link to this post
    Hi Ivan,

    If we use the internal server to create a search index it will create the files only on the file structure of internal server so these files will not be created on the external server, if this is the case the external server will not work for any files created on the file structure of internal server by the CMSAdmin.  What is the solution of this problem? This internal and external setup can only work if all the data created from internal server CMSAdmin is done in the database so that it can be accessed by the external server. Is there any other modules that create files on file sturcture like search?
    Please help me with a solution on this issue.

    Thanks,

    Vipul
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Jun 2010
    Link to this post
    Hello vipul patel,

    You could use third party file replication tool or run the index only on a certain period of time on both the servers. I cannot recall  any other similar dependencies for now.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    23 Jun 2010
    Link to this post
    Hi Ivan,

    I tried copying the search folder contents on the external server and run the search but it throws the following error:

    Lock obtain timed out: SimpleFSLock@C:\inetpub\sitefinity\App_Data\Search\first-index\Index\write.lock

    Can you help me?

    Vipul Patel
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Jun 2010
    Link to this post
    Hello vipul patel,

    Try restarting the application. This will release the locked files. You could also delete your index and recreate it. Remove manually the files from App_Data/Search/[your index name].  The problem is that the directory AllPagesIndex\Index\ has been locked by a process that does not want to release it. You could use some external tool to identify what exactly is locking the directory and release it by terminating the process.

    You are getting the error because the index files used to store search data that are located the specified by this error path cannot be read. They are locked by another process and ASP.NET cannot unlock them. Most probably the ASP.NET account does not have full permissions over App_Data or another process uses these files.

    The files that are generated under App_Data/Search/YOUR_INDEX/Index are generated by Lucene search engine that we use. These are the segment files that collects data for the searched items. It is normal to see some changes to the file names or status of the files during indexing, because lucene is conducting its own processes. This is why this files are placed in App_Data where ASP.NET worker process should have read/write permissions.

    The error could be result if you do not have enough storage on your server The locking us used by Lucene API, because this caches the directories and ensures that there is a unique Directory,  so that synchronization on the Directory can be used to synchronize access between readers and writers. When you run the index the files from the Search folder get locked because Lucene reads them. The lock ensures that one thread does not enter a critical section of code while another thread is in the same section. Lucene also uses the Temp Windows folder in its background, so the ASP.NET account needs write permissions there


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. vipul patel
    vipul patel avatar
    37 posts
    Registered:
    12 Mar 2010
    23 Jun 2010
    Link to this post
    Hi Ivan,

    I have tried all your suggestions but still the same lock error persists, i think Lucene is trying to obtain a lock which times out.
    The server is external server running on windows 2008 R2, and has only the copy of my website from the internal server, do i need to install the full sitefinity on this server or is it because it is missing Lucene on this server as i have just copied mywebsite folder from the internal server?
    I cannot create a new search index from this external server as it does not have the full installation, so i create the index on internal server and then copy the whole mywebsite to external server.
    Please let me know what should i do to resolve this error.

    Thanks,

    Vipul Patel
  12. Lior Nabat
    Lior Nabat avatar
    1 posts
    Registered:
    30 May 2010
    12 Jul 2010
    Link to this post
    Hi,
    I have same problem you had,
    I want to know, did you manage to solve it?

    Thank you

  13. Beth Grabo
    Beth  Grabo avatar
    6 posts
    Registered:
    02 Mar 2010
    28 Jul 2010
    Link to this post
    Hi there Ivan.

    We are getting the same problem with the search index write.lock

    We have four servers, server A replicates out to servers B, C & D.  Server B & D are fine, but server C has this write.lock problem. 

    What should we do?  No one can search on server C.  The permissions are the same on all four boxes. 

    I've tried deleting and recreating the index on A, then replicating out.  But, server C still has the issue. 

    What should I do?
  14. Beth Grabo
    Beth  Grabo avatar
    6 posts
    Registered:
    02 Mar 2010
    28 Jul 2010
    Link to this post
    Hi there Ivan.  Please disregard my earlier post.  It turns out there was an explicit permission that was not set on our server, which was causing the problem.  The search is now functioning correctly on all four servers.

    Thanks.
Register for webinar
14 posts, 0 answered