Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Mike 62 posts 274 karma points
    Nov 25, 2013 @ 20:43
    Mike
    0

    uCommerce demo store install - razor scripts not loading

    I'm having a lot of issues installing the uCommerce demo store package (uCommerce_Demo_Store_-_Razor_2.0.0.13249.zip). Most of these have been permission based issues which I've worked through, however, I'm hitting one which I cannot resolve. 

    The demo site seems to install ok but when I click any of the category menus I get two Razor errors:

    • Error loading MacroEngine script (file: uCommerce/Catalog.cshtml)
    • Error loading MacroEngine script (file: uCommerce/Facets.cshtml)      

    The /App_Data/Logs/UmbracoTraceLog.txt is logging this message for each:

    2013-11-25 19:18:29,146 [5] WARN  umbraco.macro - [Thread 7] Error loading MacroEngine script (file: uCommerce/Catalog.cshtml, Type: ''. Exception: System.InvalidOperationException: Could not write to location: C:\Inetpub\vhosts\sitename.co.uk\httpdocs\App_Data/RavenDatabases/uCommerce. Make sure you have read/write permissions for this path. ---> Microsoft.Isam.Esent.Interop.EsentFileAccessDeniedException: Cannot access file, the file is locked or in use

    and

    2013-11-25 19:18:28,918 [5] WARN  umbraco.macro - [Thread 7] Error loading MacroEngine script (file: uCommerce/Facets.cshtml, Type: ''. Exception: System.InvalidOperationException: Could not write to location: C:\Inetpub\vhosts\sitename.co.uk\httpdocs\App_Data/RavenDatabases/uCommerce. Make sure you have read/write permissions for this path. ---> Microsoft.Isam.Esent.Interop.EsentFileAccessDeniedException: Cannot access file, the file is locked or in use

    The App_Data directory does have read/write permissions in place so I'm guessing it is something other than this. 

    I'm unsure whether this is because I've had to repeat the install of the demo store (2.0.0.13249) numerous times in the process of solving other permission issues. 

    - Umbraco version is 6.1.6
    - uCommerce version 4.0.6.13304
    - Demo store version 2.0.0.13249

    Any ideas that could help?

    Many thanks,
    Mike

  • Morten Skjoldager 440 posts 1499 karma points
    Nov 27, 2013 @ 09:09
    Morten Skjoldager
    0

    Can you please try to delete the ravenDatabases under App_Data and run the scratch indexer under Settings/search in uCommerce section? 

    This might resolve the issue as the folder can be locked by previous processes. Otherwise i would assume it is something regarding perms. 

  • Morten B 13 posts 66 karma points
    Mar 13, 2015 @ 09:51
    Morten B
    0

    Mike, did you get your problem solved? We are facing the very same problem and we are making no progress. We have tried giving full permissions, deleting files, etc. and right now we are kind of stuck, not able to get the production site working.

  • Thomas 30 posts 163 karma points
    Mar 24, 2015 @ 16:30
    Thomas
    0

    Hey Morten

    What hosting environment is the site running on? And would you be able to add the exception message?

    Kind regards

    Thomas Arvidsen

  • Morten B 13 posts 66 karma points
    Mar 24, 2015 @ 17:14
    Morten B
    0

    The error message was a bit misleading as it was the same as mentioned in this thread.

    It took us quite some testing to get it up and running. Our hosting environment is locked down. No permissions are given if not needed. It turns out that RavenDB requires folder list-permissions at root level, outside of the scope of the IIS instance itself.

    We isolated the problem by running only one website on IIS, monitoring process file-I/O and doing some trial and error. It took us maybe 10 hours during 3 days, as we could not find a detailed description of the file permissions needed for running RavenDB in locked down environments.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 14, 2015 @ 13:33
    Søren Spelling Lund
    0

    Hi Morten,

    Thanks for posting your results. Could you please elaborate on what you mean by, "folder list-permissions at root level, outside of the scope of the IIS instance itself". Which root level are you referring to here? c:\, root of website, something else?

    Thanks.

  • Morten B 13 posts 66 karma points
    Apr 14, 2015 @ 14:40
    Morten B
    0

    Our website resides in something like m:\web\umb\site\ - but permissions on only "site" did not work.

    We solved it by giving app pool identity "list folder content"-permissions on each folder, from m:\web\umb\site\ - up to disk root m:\

    This is what our hosting guys wrote (in Danish):"Det lader til at app_pool identity skal have "list folder content" på disken og hele vejen ned igennem mappe strukturen for at den kan indeksere korrekt i den mappe hvor app pool identity har skrive rettigheder (app_data). Jeg har derfor været nødsaget til at tillade app pool identity til at have "list folder content" på disk niveau, men har fjernet nedarvningen."

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 21, 2015 @ 13:00
    Søren Spelling Lund
    0

    Thank you for the information. I will make sure that we set up and run new test cases based on this.

    Could you mark the topic as solved please? Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft