Copied to clipboard

Flag this post as spam?

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


  • Alex Walgreen 1 post 71 karma points
    Dec 09, 2022 @ 15:52
    Alex Walgreen
    0

    Umbraco 10.3.2 always responding with 404.

    Hey community!

    I thought I'd drop you a message as I've been spending many, many hours but I can't get my Umbraco site working.

    I've developed my Umbraco website in VS2022. Locally, everything works fine. I've built my website and got to the point to deploy it to a production environment. I use Azure DevOps so after setting up my release pipeline I thought I'd be welcomed with a working website - but that doesn't happen. I restored the MSSQL DB from my local environment on the server so I'm sure it is exactly the same database that contains all content etc. Connections etc. have been verified - all is connecting well.

    What happens is when I navigate to my homepage I get a 404. When I navigate to my backoffice at /umbraco/ I immediately get redirected to my homepage which in turn gives a 404.

    Software versions used: - .NET 6.0 - Umbraco 10.3.2 - IIS 8.5.9600.16384 - Windows Server 2012 R2

    My other Umbraco website on .NET 5 on that same server and IIS works fine.

    A small part of the log:

    {"@t":"2022-12-09T09:33:15.1289257Z","@mt":"Content root path: {contentRoot}","contentRoot":"d:\\deploy\\my-website-folder","SourceContext":"Microsoft.Hosting.Lifetime","ProcessId":3392,"ProcessName":"w3wp","ThreadId":1,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"INFO "}
    {"@t":"2022-12-09T09:33:15.1665512Z","@mt":"Begin request [{HttpRequestId}]: {RequestUrl}","@l":"Verbose","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","RequestUrl":"/umbraco/","SourceContext":"Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"ALL  ","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.1954492Z","@mt":"Creating Css bundle 'umbraco-backoffice-init-css' with 5 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.1970417Z","@mt":"Creating Css bundle 'umbraco-authorize-upgrade-css' with 3 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.1972072Z","@mt":"Creating Css bundle 'umbraco-preview-css' with 1 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.2782487Z","@mt":"Creating Js bundle 'umbraco-preview-js' with 12 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.2790895Z","@mt":"Creating Js bundle 'umbraco-tinymce-js' with 14 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.2797930Z","@mt":"Creating Js bundle 'umbraco-backoffice-js' with 36 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.3263044Z","@mt":"Creating Js bundle 'umbraco-backoffice-extensions-js' with 0 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.3289168Z","@mt":"Creating Js bundle 'umbraco-backoffice-non-optimized-js' with 0 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.3300991Z","@mt":"Creating Css bundle 'umbraco-backoffice-css' with 0 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.3302366Z","@mt":"Creating Js bundle 'umbraco-backoffice-non-optimized-css' with 0 files and a custom pipeline","@l":"Debug","SourceContext":"Smidge.BundleManager","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.6429243Z","@mt":"End Request [{HttpRequestId}]: {RequestUrl} ({RequestDuration}ms)","@l":"Verbose","HttpRequestId":"17757c53-3933-447f-861d-1628c5a3b663","RequestUrl":"/umbraco/","RequestDuration":479.2682,"SourceContext":"Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware","RequestId":"80001d23-0001-dd00-b63f-84710c7967bb","RequestPath":"/umbraco/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"ALL  ","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.6894551Z","@mt":"Begin request [{HttpRequestId}]: {RequestUrl}","@l":"Verbose","HttpRequestId":"89ceeb68-9639-493b-98e5-ca80197a66e7","RequestUrl":"/","SourceContext":"Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware","RequestId":"80002a6f-0001-f300-b63f-84710c7967bb","RequestPath":"/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"ALL  ","HttpRequestNumber":2,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:15.6920551Z","@mt":"End Request [{HttpRequestId}]: {RequestUrl} ({RequestDuration}ms)","@l":"Verbose","HttpRequestId":"89ceeb68-9639-493b-98e5-ca80197a66e7","RequestUrl":"/","RequestDuration":2.6819,"SourceContext":"Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware","RequestId":"80002a6f-0001-f300-b63f-84710c7967bb","RequestPath":"/","ProcessId":3392,"ProcessName":"w3wp","ThreadId":3,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"ALL  ","HttpRequestNumber":2,"HttpSessionId":"0"}
    {"@t":"2022-12-09T09:33:20.1603208Z","@mt":"Signaled ({Signaled}) ({SignalSource})","@l":"Debug","Signaled":"first","SignalSource":"environment","SourceContext":"Umbraco.Cms.Core.Runtime.MainDom","ProcessId":3392,"ProcessName":"w3wp","ThreadId":14,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG"}
    {"@t":"2022-12-09T09:33:20.1603901Z","@mt":"Stopping ({SignalSource})","SignalSource":"environment","SourceContext":"Umbraco.Cms.Core.Runtime.MainDom","ProcessId":3392,"ProcessName":"w3wp","ThreadId":14,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"INFO "}
    {"@t":"2022-12-09T09:33:20.1647993Z","@mt":"Stopped ({SignalSource})","@l":"Debug","SignalSource":"environment","SourceContext":"Umbraco.Cms.Core.Runtime.MainDom","ProcessId":3392,"ProcessName":"w3wp","ThreadId":14,"ApplicationId":"e1483c593e0be7527107366c08abf8e91d3e7675","MachineName":"H2399728","Log4NetLevel":"DEBUG"}
    

    It seems that at least something from Umbraco is running. However, after GETting /umbraco/ it immediately redirects and gives a 404. I can't see my website nor can I access Umbraco backoffice. Strangely enough, accessing /umbraco/ServerVariables does work and shows the server variables - nothing strange there, all looks good. I don't have ANY exceptions at all in the logs, not even when Verbose logging and Debug mode is enabled. Same applies to the Windows Event Logs: nothing there relevant to this issue.

    Anyone have any idea on WTF is happening here and why things are not working as they should?

    Thank you so much in advance!

Please Sign in or register to post replies

Write your reply to:

Draft