Copied to clipboard

Flag this post as spam?

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


  • Craig100 1136 posts 2523 karma points c-trib
    Feb 24, 2015 @ 16:29
    Craig100
    0

    Minor Upgrade to 7.2.2 failed

    Have been developing a 7.2.1 site for the last couple of weeks. Need the fixes for media upload and Multi-Media Picker order in 7.2.2 before putting on the test server. So have now tried twice to upgrade to 7.2.2. The first time it went through on Nuget I didn't allow overwriting of files, I had some funnies in the UI so binned it and restored from backup. This second time I have allowed overwriting of files but the NuGet upgrade failed. It shows some runtime exceptions which I don't know how to fix. It's on my dev machine, VS2013, Win 7. Here's the Nuget transcript:- 

    Package Manager Console Host Version 2.8.50926.663

    Type 'get-help NuGet' to see all available NuGet commands.

    PM> Update-Package UmbracoCms

    Updating 'UmbracoCms' from version '7.2.1' to '7.2.2' in project 'MyProject'.

    Removing 'UmbracoCms 7.2.1' from MyProject.

    Skipping 'config\404handlers.config' because it was modified.

    Skipping 'config\applications.config' because it was modified.

    Skipping 'config\ClientDependency.config' because it was modified.

    Skipping 'config\Dashboard.config' because it was modified.

    Skipping 'config\grid.editors.config.js' because it was modified.

    Skipping 'config\trees.config' because it was modified.

    Skipping 'config\umbracoSettings.config' because it was modified.

    Directory 'media' is not empty. Skipping...

    Successfully removed 'UmbracoCms 7.2.1' from MyProject.

    Removing 'UmbracoCms.Core 7.2.1' from MyProject.

    Successfully removed 'UmbracoCms.Core 7.2.1' from MyProject.

    Removing 'Examine 0.1.57.2941' from MyProject.

    Successfully removed 'Examine 0.1.57.2941' from MyProject.

    Adding 'Examine 0.1.60.2941' to MyProject.

    Installing 'Examine 0.1.60.2941'.

    Successfully installed 'Examine 0.1.60.2941'.

    Successfully added 'Examine 0.1.60.2941' to MyProject.

    Adding 'UmbracoCms.Core 7.2.2' to MyProject.

    Installing 'UmbracoCms.Core 7.2.2'.

    Successfully installed 'UmbracoCms.Core 7.2.2'.

    Successfully added 'UmbracoCms.Core 7.2.2' to MyProject.

    File C:\VS2012\MyProject\packages\UmbracoCms.Core.7.2.2\tools\install.ps1 cannot be loaded because the execution of scripts is disabled on thi

    s system. Please see "get-help about_signing" for more details.

    At line:1 char:2

    + & <<<<  'C:\VS2012\MyProject\packages\UmbracoCms.Core.7.2.2\tools\install.ps1' $__rootPath $__toolsPath $__package $__project

        + CategoryInfo          : NotSpecified: (:) [], PSSecurityException

        + FullyQualifiedErrorId : RuntimeException

     

    Adding 'UmbracoCms 7.2.2' to MyProject.

    Installing 'UmbracoCms 7.2.2'.

    Successfully installed 'UmbracoCms 7.2.2'.

    File Conflict

    File 'Config\umbracoSettings.config' already exists in project 'MyProject'. Do you want to overwrite it?

    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "N"):A

    Overwrite existing file 'Config\umbracoSettings.config'.

    Overwrite existing file 'Config\trees.config'.

    Overwrite existing file 'Config\grid.editors.config.js'.

    Overwrite existing file 'Config\Dashboard.config'.

    Overwrite existing file 'Config\ClientDependency.config'.

    Overwrite existing file 'Config\applications.config'.

    Overwrite existing file 'Config\404handlers.config'.

    Directory 'Config' is not empty. Skipping...

    Directory 'config' is not empty. Skipping...

    File C:\VS2012\MyProject\packages\UmbracoCms.7.2.1\tools\install.ps1 cannot be loaded because the execution of scripts is disabled on this sys

    tem. Please see "get-help about_signing" for more details.

    At line:1 char:2

    + & <<<<  'C:\VS2012\MyProject\packages\UmbracoCms.7.2.1\tools\install.ps1' $__rootPath $__toolsPath $__package $__project

        + CategoryInfo          : NotSpecified: (:) [], PSSecurityException

        + FullyQualifiedErrorId : RuntimeException

     

    File C:\VS2012\MyProject\packages\UmbracoCms.Core.7.2.1\tools\install.ps1 cannot be loaded because the execution of scripts is disabled on thi

    s system. Please see "get-help about_signing" for more details.

    At line:1 char:2

    + & <<<<  'C:\VS2012\MyProject\packages\UmbracoCms.Core.7.2.1\tools\install.ps1' $__rootPath $__toolsPath $__package $__project

        + CategoryInfo          : NotSpecified: (:) [], PSSecurityException

        + FullyQualifiedErrorId : RuntimeException

    Uninstalling 'UmbracoCms 7.2.2'.

    Successfully uninstalled 'UmbracoCms 7.2.2'.

    Uninstalling 'UmbracoCms.Core 7.2.2'.

    Successfully uninstalled 'UmbracoCms.Core 7.2.2'.

    Uninstalling 'Examine 0.1.60.2941'.

    Successfully uninstalled 'Examine 0.1.60.2941'.

    Install failed. Rolling back...

    Update-Package : Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))

    At line:1 char:15

    + Update-Package <<<<  UmbracoCms

        + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception

        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

    PM> 

    Googling would indicate something wrong with Powershell. I don't use it and haven't messed around with it at all. This is quite a showstopper. Am going to have to restore the back up again. If anyone could point me in the right direction, I'd appreciate it as I need to get this installation upgraded.

    Thanks,

    Craig

  • Craig100 1136 posts 2523 karma points c-trib
    Feb 24, 2015 @ 17:31
    Craig100
    0

    Ok, have tried again, this time, somewhat nervously issuing : "Set-ExecutionPolicy Bypass -Scope Process" in the Nuget Console before doing "Update-Package UmbracoCms" and then allowing all overwrites.  I then used right-click "Compare with unmodified" on all /config/ directory files that were marked as modified and reinserted SEOChecker and other package items that had been overwritten. Not too many actually. Performed a rebuild and then ran without debugging to allow DB changes to happen.  System is now up but I'm not too sure if it's all ok. Have done a total republish of the site. However, all media directories are empty in the right hand pane, where it used to show all the images in the directory. Is this correct or is this a fault? Might put that up as a separate question.

    HTH someone else in a similar situation.

    Craig

Please Sign in or register to post replies

Write your reply to:

Draft