Copied to clipboard

Flag this post as spam?

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


  • Frank McKenna 12 posts 83 karma points
    Mar 11, 2022 @ 16:43
    Frank McKenna
    0

    Umbraco 7.15.7 upgrade - "PostPerformInstall" 500 error

    Hello all,

    We have a Staging site (behind Cloudflare with 2FA) which I've recently upgraded from Umbraco 7.15.5 to 7.15.7.

    However, on the last screen of the upgrade I'm seeing "A server occurred this is most likely due to an error in Application Startup"

    In chrome, the Console shows a 500 error for "/install/api/PostPerformInstall"

    Opening the console error shows a "405 - HTTP verb used to access this page is not allowed"

    I have followed the upgrade guide exactly, checked for breaking changes and version specific notes. I believe I have set everything up correctly

    My web.config file has

    <add key="umbracoUseSSL" value="true" />
    

    With the rewrite rules as

        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
        </rule>
        <rule name="Exclude install folder from rewriting" stopProcessing="true">
          <match url="install/(.*)$" />
          <action type="None" />
        </rule>
    

    Looking at the potential cause of the 405, I see that in the "umbraco.Installer.js" file a POST is made to the API.

    function processInstallStep() {
      $http.post(Umbraco.Sys.ServerVariables.installApiBaseUrl + 'PostPerformInstall', _installerModel).success(function (data, status, headers, config) {
    

    I think that the issue is occurring due to the redirect in the config above causing a change to the HTTP verb for the request during the install/upgrade.

    Has anyone experienced this issue during Umbraco installations/upgrades? As far as I can see my config matches the official documentation but it looks like this will redirect HTTP to HTTPS - which in turn causes the 405 response.

    If anyone has any thoughts or experience of this I would appreciate your input.

    Thanks.

  • Frank McKenna 12 posts 83 karma points
    Mar 14, 2022 @ 20:35
    Frank McKenna
    0

    Today I discovered a (2014) post describing this same problem appeared on https://issues.umbraco.org/issue/U4-5019

    This was answered by Sebastiaan Janssen, who advised to "temporarily remove the <rewrite> section from web.config". I tried this, also removing the "umbracoUseSSL" setting - unfortunately the issue persists, I'm still seeing a 500 error (405 response).

    My conclusion is that, although the upgrade process shows this error, the upgrade itself applies correctly.

    Could anyone confirm

    • What the purpose of the /install/api/PostPerformInstall" call is? Is this just to notify the latest Umbraco version during upgrades?
    • If this issue can be ignored as the upgrade (and DB) appear to work as expected?

    At this point I have spent many hours looking into an issue on what should be a trivial upgrade process.

    Can anyone offer any advice, please?

    Thanks.

  • Geoffrey Gilson 2 posts 72 karma points
    May 06, 2022 @ 13:58
    Geoffrey Gilson
    0

    Hello,

    I have the same problem. Nothing is showing up in the log file other than

     2022-05-06 15:04:12,965 [P8672/D4/T6] DEBUG Umbraco.Web.UmbracoModule - Begin request: http://localhost:27331/install/api/PostPerformInstall/.
    
     2022-05-06 15:04:13,014 [P8672/D4/T28] DEBUG Umbraco.Web.UmbracoModule - Begin request: http://localhost:27331/umbraco/views/install/error.html.
    

    Cleaned bin folders, with incognito mode, tried with removing the rewrite rules, then excluding install/*

    The website is on v7.5.4, I tried to go to 7.5.6, 7.6.14, 7.7.*,...

    If I could get an error on the log file it would be so easy, but I'm just stuck without any tips. Error level on log4net is ALL.

    Any advice, anyone?

Please Sign in or register to post replies

Write your reply to:

Draft