Copied to clipboard

Flag this post as spam?

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


  • Rhys Wynne 7 posts 27 karma points
    Feb 03, 2011 @ 11:51
    Rhys Wynne
    0

    Moved Umbraco From One Server To Another - Can't View/Edit Pages in Admin

    Hi Guys, forgive me I'm not an ASP or an Umbraco professional!

    I've been given a project which involves me moving an Umbraco installation from one server to another.

    Although the site is live on the new server & I can login fine, I cannot view the pages in the back end or make changes. Here's a screenshot of the site:-

    The server move was simply a case of recreating the database on the new server & uploading the files, given to us by the old team.

    Any help will be greatfully appreciated, let me know if you need anything else.

    Server Details:

    umbraco v 4.0.0 (Assembly version: 1.0.3327.20280)

    MS Windows Server 2003 Standard x64 Edition with Service Pack 2

    ASP.Net 3.0

    MSSQL 2008 R2

    IIS v6.0

  • Sascha Wolter 615 posts 1101 karma points
    Feb 03, 2011 @ 12:21
    Sascha Wolter
    0

    Hi Rhys and welcome!

    That looks like a permissions problem to me. See if the 'NETWORK SERVICE' account has full access to the website directory (it doesn't need to have full access to all folder, once it works you can fine tune the settings using info from here). Actually it is quite interesting that you can see the frontend after the transfer, that means it is probably just feeding from the cache with all the settings from the source server. The first thing you need to do once you've got the backend working is to right-click on the top node 'Content' and select Re-publish entire site, that will refresh the cache with all the information from your new website location.

    Hope that helps,

    Sascha

  • Tom Maton 387 posts 660 karma points
    Feb 03, 2011 @ 12:23
    Tom Maton
    0

    Hi Rhys,

    Have you tried to republish the site?

    eg. Right click on the content folder and cclick the Republish entire site?

    I've had this more and doing this has solved my problem

    Tom

  • Rhys Wynne 7 posts 27 karma points
    Feb 03, 2011 @ 13:05
    Rhys Wynne
    0

    Hi Guys,

    First of all, thanks for the help :D

    I think I've set the permissions correctly (I followed the instructions on this page - http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line, running a bat file from both the website root in httpdocs, and in the httpdocs/install folder), is there any way I can check? Apologies, I'm not an ASP/Windows guy! :(

    I've tried the right click - republish, but a menu doesn't open. It flashes up a menu for a split section with no items in it (I managed to capture a print screen - attached).

    Hope that helps :)

  • Tom Maton 387 posts 660 karma points
    Feb 03, 2011 @ 13:54
    Tom Maton
    0

    Try logging out of umbraco and then recylce the app pool on the server which Umbraco is running on.

    Then logging back into Umbraco, this should re-compile and then hopefully all the permissions should pass through.

    Tom

  • Rhys Wynne 7 posts 27 karma points
    Feb 09, 2011 @ 14:46
    Rhys Wynne
    0

    Hi Guys,

    Sorry for the delay, still no joy following a recycle.

    Is there any way of checking the permissions are set correctly? Think this could be an issue!

    Cheers

    Rhys

  • Tom Maton 387 posts 660 karma points
    Feb 09, 2011 @ 15:43
    Tom Maton
    0

    Rhys,

    You can check by doing the following:

    http://yourdomain.com/install/default.aspx?installStep=validatePermissions

    Tom

  • Patrick McAndrew 48 posts 163 karma points
    Feb 09, 2011 @ 15:45
    Patrick McAndrew
    0

    Hi Rhys,

    Can you confirm that you restored the database from the previous installation? It looks to me like you may have done a fresh install of umbraco and then copied over the files which would give you the published site, but not the content from the database.

    Cheers,

    Patrick

     

  • Rhys Wynne 7 posts 27 karma points
    Feb 09, 2011 @ 16:53
    Rhys Wynne
    0

    Hi Guys,

    Think we're getting somewhere. Permissions appear to not be working. For whatever reason. When going to the URL specified by Tom it says that the permissions aren't set. When I check how to set it, as well as a list, there was this:-

    Error message: System.UnauthorizedAccessException: 
    Access to the path 
    'C:\Inetpub\vhosts\[domainname.com]\httpdocs\data\umbraco.config' is 
    denied.
       at System.IO.__Error.WinIOError(Int32 errorCode, String 
    maybeFullPath)
       at System.IO.File.SetAttributes(String path, FileAttributes 
    fileAttributes)
       at umbraco.content.ClearDiskCache()
       at umbraco.content.SaveContentToDisk(XmlDocument xmlDoc)
       at 
    umbraco.presentation.install.steps.validatePermissions.Page_Load(Object 
    sender, EventArgs e)

    Did the permissions reset which was this:-

    C:\Documents and Settings\Administrator>cd C:\Inetpub\vhosts\[domainname.com]\httpdocs

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls css /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: css
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls . /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: .
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls app_code /grant "NETWORK SERVICE":(OI)(CI)RX
    processed file: app_code
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls app_browsers /grant "NETWORK SERVICE":(OI)(CI)RX
    processed file: app_browsers
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls app_data /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: app_data
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls bin /grant "NETWORK SERVICE":(OI)(CI)R
    processed file: bin
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls config /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: config
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls css /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: css
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls data /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: data
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls masterpages /grant "NETWORKSERVICE":(OI)(CI)M
    processed file: masterpages
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls media /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: media
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls python /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: python
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls scripts /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: scripts
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls umbraco /grant "NETWORK SERVICE":(OI)(CI)R
    processed file: umbraco
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls usercontrols /grant "NETWORK SERVICE":(OI)(CI)R
    processed file: usercontrols
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls xslt /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: xslt
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>icacls web.config /grant "NETWORK SERVICE":(OI)(CI)M
    processed file: web.config
    Successfully processed 1 files; Failed processing 0 files

    C:\Inetpub\vhosts\[domainname.com]\httpdocs>

    Recycled & it still doesn't work.

    Quick question: Does recycle pop any sort of window up (IIS Manager > select the App Pool > Right Click > Recycle)? As there's not even an egg timer that pops up.

    Patrick: I'm 99% sure the database is working. I can login & the content seems to be within the database. Unless neither of these are an indicator.

  • Christer Josefsson 55 posts 93 karma points
    Feb 09, 2011 @ 17:06
    Christer Josefsson
    0

    Have you tried to set Network Service to have full control over the directory? If your running on a IIS7 then the app pool will run with user IIS AppPool\<app pool name> by default. Try to set Network service as apppoolidentity if nothing else works...

  • Rhys Wynne 7 posts 27 karma points
    Feb 15, 2011 @ 11:55
    Rhys Wynne
    0

    Sorry, stupid question but I'm running IIS6, how would I do this?

  • Sascha Wolter 615 posts 1101 karma points
    Feb 15, 2011 @ 23:31
    Sascha Wolter
    0

    Hey Rhys,

    Since you are running IIS6 don't worry about the IIS AppPool\<app pool name> Christer mentioned as that was introduced later, but definitely try out giving the Network Service full permissions. From the command line you would use 

    icacls xslt /grant "NETWORK SERVICE":(OI)(CI)F

    and I would also choose to use :r to override any existing permissions etc (see here) and get rid of (OI)(CI), but that is just a suggestion, don't really know if that helps of not.

    As I'm a fan of the UI interface for setting permissions you can also right-click on the folder and perform these settings in the 'Security' tab.

    Hope that helps,

    Sascha

  • Rhys Wynne 7 posts 27 karma points
    Feb 16, 2011 @ 12:58
    Rhys Wynne
    0

    Right getting somehwere :) - Sascha you're a star!

    Now having a document tree, so I can see the documents, however whenever I right click on the files still getting the split second popup (but there's now a menu there, see below!)

    Also whenever I try & click on a file to edit it, then I get this error:-

    Thanks for everybody's help so far! If you're ever in Manchester I'll buy you all a beer :)

  • Rhys Wynne 7 posts 27 karma points
    Feb 17, 2011 @ 10:45
    Rhys Wynne
    0

    Update - flicky menu bars is fixed, seems to be a Firefox issue. Works fine in IE (irony)

Please Sign in or register to post replies

Write your reply to:

Draft